query-docs
Retrieves documentation for a library using a Context7-compatible library ID.
How to use it
query-docs is exposed by the Context7 MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the query-docs tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Context7
$
npx ctx7 setupOther tools in Context7 (4)
libraryId
(required): Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js)
libraryName
(required): The name of the library to search for
query
(required): The user's question or task (used to rank results by relevance)
resolve-library-id
Resolves a general library name into a Context7-compatible library ID.