Query Docs
query-docsRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework.
How it works ↓Pricing
Per call
$0.01
Model
flat
Pay only for what you use. No subscriptions.
Inputs
libraryId *
stringquery *
stringInput Parameters
Cost per run
Execution cost$0.01
About Query Docs
Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best information you have.
Frequently Asked Questions
Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best information you have.
Query Docs costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Context7 MCP endpoint to your client — Claude Code: claude mcp add --transport http context7 "https://context7.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see query-docs as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath context7/query-docs.)
Yes — that's exactly what xpay is for. You don't need a Context7 account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Query Docs immediately. Billing flows through your xpay balance.
Query Docs accepts 2 input parameters: libraryId, query. See the input schema and runnable form on this page for details and to test live.

