Context7
UpstashThird party
Up-to-date, version-specific docs and code examples for any library.
What it does
Context7 pulls current, version-specific documentation and code examples straight from the source into your coding agent’s context, so it does not rely on year-old training data or invent APIs that do not exist.
These steps use the OAuth address (/mcp/oauth): your agent opens a sign-in to Context7. Context7 also takes an API key as a bearer token at /mcp (a free key at context7.com/dashboard gives higher rate limits), and its page lists a local npx server that needs the key.
- Find a library by name
- Fetch its current documentation and code examples
- Pin a version by naming the library ID in your prompt
The facts
- Address
https://mcp.context7.com/mcp/oauth- Kind
- Remote: a server on the internet
- Transport
- Streamable HTTP
- Sign-in
- OAuth sign-in
- Account
- Needs a Context7 account — sign up
How to connect
Connect from Claude Code
Run this in a terminal, then start Claude Code, run /mcp and sign in (or run claude mcp login context7).
claude mcp add --transport http context7 https://mcp.context7.com/mcp/oauthConnect from Claude.ai
Claude.ai connects from Anthropic’s cloud, so it needs a public address. Follow these steps in the app.
- Open Customize > Connectors, click "+ Add", then "Add custom connector".
- Name: context7
- Remote MCP server URL: https://mcp.context7.com/mcp/oauth
- Click "Continue".
- Under Authentication choose "Sign in now", then click "Continue".
- Click "Add", then "Connect" if it asks.
- On a Team or Enterprise plan an Owner adds the connector under Organization settings > Connectors, and each member then clicks Connect.
Connect from Cursor
Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one. Cursor opens a sign-in the first time the server is used.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp/oauth"
}
}
}Connect from Codex
Add this to ~/.codex/config.toml, or to .codex/config.toml in a trusted project.
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp/oauth"
# then sign in: codex mcp login context7Upstash docsChecked on
Plugins that go with it
Developer reference for web search, scraping and documentation lookup — Firecrawl, Exa, Jina, Perplexity, Context7 MCP tools and…
v1.4.0