Home / Directory / Context7

Context7 MCP server

Current documentation for any library, version-aware. Run by Upstash.

Resolve a package or framework to its Context7 id, then pull up-to-date documentation and code examples for the version you are using, so the model stops guessing from stale training data.

Access: No sign-in needed. Anonymous use is rate limited by Context7. A free Context7 API key raises the limit: add it as a custom server with the header CONTEXT7_API_KEY. Vendor documentation

Server address: https://mcp.context7.com/mcp

Use it through the gateway

Nothing to set up. Connect the Smart Gateway once; when your assistant searches for something Context7 does, the first call connects Context7 to your account and runs it. You can also connect it with one click from the dashboard.

A third-party server: Upstash's terms apply, and its tool descriptions are text in front of your assistant. Connect only servers you trust.

Its 2 tools

ToolWhat it does
resolve-library-idResolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLES…
query-docsRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible …

More in Documentation