context7-mcp

v1.0.6
@buggyhunter/context7-mcp Checked 4 hours ago Published 1 year ago

MCP server for Context7

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

resolve-library-id

Resolves a package/product name to a Context7-compatible library ID and returns a list of matching libraries. You MUST call this function before 'get-library-docs' to obtain a valid Context7-compatible library ID. Selection Process: 1. Analyze the query to understand what library/package the user is looking for 2. Return the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Trust score (consider libraries with scores of 7-10 mo…

ParameterTypeDescription
libraryName *stringLibrary name to search for and retrieve a Context7-compatible library ID.

get-library-docs

Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.

ParameterTypeDescription
context7CompatibleLibraryID *stringExact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'.
tokensnumberMaximum number of tokens of documentation to retrieve (default: 10000). Higher values provide more context but consume more tokens.
topicstringTopic to focus documentation on (e.g., 'hooks', 'routing').