How to connect the Context7 MCP server
To connect the official Context7 MCP server, add https://mcp.context7.com/mcp to your MCP client as a Streamable HTTP server, then send a bearer token in the Authorization header. Context7 documents setup for Claude Code, Cursor, VS Code, Claude, Codex and ChatGPT.
Docs reviewed 5 Nov 2026Connection tested.
Try in the browser, no sign-in →
Endpoint https://mcp.context7.com/mcp · Registry io.github.upstash/context7 4.5.0
Add Context7 MCP to your client
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer ${CONTEXT7_API_KEY}"
}
}
}
}Set CONTEXT7_API_KEY in your environment. Never paste keys into a shared file.Connect Context7 MCP step by step
Before you start
- Context7 recommends a free API key from the Context7 dashboard for higher rate limits. github.com/upstash
Authentication
- Your client → Context7 MCP
- Bearer token. context7.com/docsgithub.com/upstashregistry.modelcontextprotocol.io/v0.1
- Context7 MCP → Context7 API
- Not established by this guide.
Steps
- Open Context7's MCP client setup instructions
- Add the Context7 MCP server to your client
Add https://mcp.context7.com/mcp as a remote MCP server that uses the Streamable HTTP transport (often labelled "http").
- Recommended: Authorization
- To sign in with OAuth instead of an API key, use the OAuth endpoint
Context7 supports MCP OAuth for remote connections at a separate endpoint: https://mcp.context7.com/mcp/oauth. Use that URL instead of the standard one and approve access in your browser. Context7's ChatGPT setup and its Codex plugin use OAuth.
- List the server's tools
Your client should list the server's tools. That confirms the connection, not every API permission.
What we observed
- 5 Nov 2026: HTTP 200; the server returned an initialize result (Context7 4.5.0) without credentials and no WWW-Authenticate challenge.
- 5 Nov 2026: initialize and tools/list succeeded without credentials from the API Tracker browser explorer: 2 tools (resolve-library-id, query-docs).
Context7 MCP questions
What is the Context7 MCP server URL?
The official Context7 MCP server is at https://mcp.context7.com/mcp and uses the Streamable HTTP transport.
How do I authenticate with the Context7 MCP server?
Send a bearer token in the Authorization header.
Which AI clients can use the Context7 MCP server?
Context7's documentation covers Claude Code, Cursor, VS Code, Claude, Codex and ChatGPT. Other clients that support remote Streamable HTTP MCP servers may also work.
What do I need before connecting Context7 MCP?
Context7 recommends a free API key from the Context7 dashboard for higher rate limits.
Has this Context7 MCP guide been tested?
Context7's documentation was reviewed on 2026-11-05. The connection was tested.
Sources and review
Context7's documentation was checked on the dates shown. This guide follows the MCP Connect connection-guide draft, bound to the exact Registry record it describes. It is not a tested connection: your account and permissions decide which tools work.
Guide source and binding
MCP connection guide (draft 0.1) for io.github.upstash/context7 4.5.0, bound to /remotes/0 of the Registry record by SHA-256 a1a96c37acc5….
- context7.com/docs/resources/all-clients · checked 5 Nov 2026
- github.com/upstash/context7 · checked 5 Nov 2026
- registry.modelcontextprotocol.io/v0.1/servers/io.github.upstash%2Fcontext7/versions/4.5.0 · checked 5 Nov 2026