Context7 Live Documentation MCP
Context7 (by Upstash) resolves library names and returns current, version-specific docs โ the fix for agents hallucinating outdated APIs. Public endpoint, no key required.
- Provider
- Upstash โ
- Source
- https://github.com/upstash/context7 โ
- Categories
- ๐ Documentation, Search & Context๐ ๏ธ Developer Tools & Git
ไธญๆ็ฎไป
Upstash Context7 ๅ ่ดนๅ ็ปๅฝ MCP ๆๅกๅจใๅฎๆถๆๅๆๅฎ็ๆฌ็ๅบๆๆกฃ๏ผ็ดๆฅๆณจๅ ฅ AI ไธไธๆ๏ผ้ฟๅ ่ฟๆ APIใ
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}claude mcp add --transport http context7 https://mcp.context7.com/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://mcp.context7.com/mcp - No authentication needed โ tools are available immediately.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.context7.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp"
}
}
}๐งฐ Tools exposed by Context7 MCP (2)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| resolve-library-id | ๐ข Read | Resolve a library/product name to a Context7-compatible library id. | libraryName*: stringquery*: string |
| get-library-docs | ๐ข Read | Fetch up-to-date documentation for a resolved Context7 library id. | context7CompatibleLibraryID*: stringtopic: stringtokens: number |
๐ OAuth 2.1 & Security
- Auth type
- None (public)
- Dynamic Client Registration
- โ
- PKCE S256
- โ
- Protected resource metadata
- https://mcp.context7.com/.well-known/oauth-protected-resource (expected location)
๐งฉ Recommended Agent Skills
๐ Guide
Context7 MCP โ Remote MCP Server
Context7's trick is fetching the documentation for the exact version of a library you are using โ 'use context7' in a prompt is now a common incantation in Cursor and Claude Code workflows. The hosted endpoint at mcp.context7.com is free and unauthenticated, with a two-step flow: resolve the library id, then pull the docs.
Endpoint & Transport
- Endpoint URL:
https://mcp.context7.com/mcp - Transport: Streamable HTTP
Authentication
Context7 MCP is public and unauthenticated โ no OAuth, no API key, no headers. Any MCP client can connect and call its tools directly, which also makes it a great endpoint for smoke-testing your own MCP client or proxy.
Available Tools (2)
| Tool | Safety | Description |
|---|---|---|
resolve-library-id |
read | Resolve a library/product name to a Context7-compatible library id. |
get-library-docs |
read | Fetch up-to-date documentation for a resolved Context7 library id. |
Connect in 30 Seconds
Claude Code โ one command:
claude mcp add --transport http context7 https://mcp.context7.com/mcp
Cursor โ add to ~/.cursor/mcp.json:
{ "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp" } } }
VS Code โ add to .vscode/mcp.json:
{ "servers": { "context7": { "type": "http", "url": "https://mcp.context7.com/mcp" } } }
Claude Desktop & stdio clients โ bridge with mcp-remote:
{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.context7.com/mcp"] } } }
Troubleshooting
- "Session expired" / stale
Mcp-Session-Idโ just re-sendinitialize; stateless clients can ignore session headers entirely. - No authentication โ rate limits apply per IP.
- Two-tool flow: call resolve-library-id first, then get-library-docs with the returned id.
๐ How to Connect
- Copy the Context7 MCP endpoint URLThe remote endpoint is https://mcp.context7.com/mcp.
- Add it to your MCP clientClaude Code:
claude mcp add --transport http context7 https://mcp.context7.com/mcp. Cursor: add"context7": { "url": "https://mcp.context7.com/mcp" }undermcpServersin ~/.cursor/mcp.json. Other clients work similarly. - Verify with the online inspectorPaste https://mcp.context7.com/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm Context7 MCP's 2 tools respond.
โ FAQ
What is the Context7 MCP remote MCP endpoint?
The primary endpoint is https://mcp.context7.com/mcp. It is a community-hosted server operated by Upstash, speaking the Streamable HTTP transport.
How do I authenticate with Context7 MCP?
You don't โ Context7 MCP is public and unauthenticated. Connect and start calling tools; no OAuth flow or API key is needed.
I'm getting a 401 Unauthorized from Context7 MCP โ what's wrong?
Context7 MCP is authless, so a 401 is unusual. Check that you're hitting https://mcp.context7.com/mcp exactly (including the path) and not an API endpoint that requires a different credential.
Which MCP clients work with Context7 MCP?
Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http context7 https://mcp.context7.com/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, and Claude Desktop via the `mcp-remote` bridge.
What tools does Context7 MCP expose?
2 tools are cataloged in this directory โ including `resolve-library-id`, `get-library-docs`. Use our online inspector to fetch the live tool list straight from the endpoint.
๐ Connect Guides
๐ Embed Status Badge in README
Related Servers
Cloudflare's free, authless documentation MCP server. Agents can search the full Cloudflare docs corpus โ no account or token required.
Cognition Devin's free DeepWiki MCP. Ask questions and read AI-generated wiki documentation for any public GitHub repository โ no auth required.
Hugging Face's official remote MCP server at huggingface.co/mcp. Search models, datasets, Spaces and papers with your HF access token.
Exa's hosted MCP server for AI-native web search. Semantic web search, research-paper search, company research and page crawling with an API key.