Context7
Version-aware library documentation retrieval for coding agents, available as a hosted MCP endpoint.
Overview
Context7 retrieves current library documentation and code examples for coding agents. It provides a hosted MCP endpoint as well as a local package, and is designed to reduce reliance on a model's memory of API versions. Results should still be checked against the project's installed version and official upstream documentation.
Capabilities
- Library documentation
- Version-specific snippets
- Code examples
- Hosted MCP endpoint
Connection profile
- Transports
- stdio, Streamable HTTP
- Authentication
- Optional API key; None for basic hosted access
- License
- MIT
- Vendor
- Upstash
- Repository
- github.com/upstash/context7
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
https://mcp.context7.com/mcp
Security notes
- Retrieved documentation is third-party content and can contain prompt-injection text.
- Do not send proprietary source code in queries unless your agreement with the service permits it.
- Pin documentation to the version you actually run; latest-version examples can be wrong for older dependencies.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Used in these workflows
Related failure modes
The client tried to launch a local MCP server but could not find the executable named in the command field. This is an environment and PATH problem, not a protocol problem: the server process never starts.
JSON-RPC -32601 Method not foundThe request named a method the server does not implement. MCP clients normally negotiate capabilities during initialization; a method-not-found error often means the client called an unsupported capability, the server is an older version, or the endpoint is not an MCP server at all.
Client does not support the selected MCP transportA configuration was copied from one client to another, but the target client does not implement that transport. Codex, for example, documents stdio and Streamable HTTP but not legacy SSE; other clients differ in field names and transport support.
Sources & evidence
- github.com/upstash/context7Repository · checked Oct 23, 2026 · documented
The project repository documents Context7's hosted endpoint, local MCP package, and documentation retrieval workflow.