Context7
- MCP server
- 2 callable tools
- Read only
- 4 capabilities
Overview
Upstash's MCP server that gives AI agents access to up-to-date, version-specific documentation and code examples for programming libraries and frameworks.
Capabilities:
- Resolve a library name to a Context7-compatible library ID
- Retrieve up-to-date documentation for a library
- Get code examples for programming libraries and frameworks
- Rank code examples by the programming language being used
Works with
The products your agent can work with through this server.
Tools
The callable functions your agent uses to work with this server.
| Tool | What it does |
|---|---|
resolve-library-id | Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. |
query-docs | Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. |
Installation
Follow the installation guide for supported clients, authentication and required permissions.
Add Context7 to Claude Code
Run this in your terminal:
If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.
Add Context7 to Cursor
Add it with the Add to Cursor button below, or add it to .cursor/mcp.json in your project (~/.cursor/mcp.json for every project):
Add Context7 to VS Code
Add it to .vscode/mcp.json in your workspace. VS Code uses servers rather than mcpServers. Or run MCP: Add Server from the Command Palette and choose HTTP.
Add Context7 to Codex
Run this in your terminal:
Or add it to ~/.codex/config.toml:
If the server uses OAuth, sign in with codex mcp login context7-2.
Add Context7 to Claude
Add it as a custom connector with this URL:
- Open Customize, then Connectors.
- Click + Add, then Add custom connector.
- Name it, paste the URL and click Continue.
- Choose how to sign in, then click Add.
On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.
Add Context7 to other clients
For any other client that connects to remote MCP servers over HTTP, use this URL:
Related MCP servers
Other servers for the same products, or from the same vendor.
Sources
Documentation and source code reviewed on 19 November 2026.