# 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.

- Endpoint: https://mcp.context7.com/mcp
- Transport: Streamable HTTP
- Registry: io.github.upstash/context7 4.5.0
- Publisher documentation reviewed: 2026-11-05 (connection tested)
- Guide page: https://apitracker.io/mcp-guides/context7-mcp

## Before you start

- Context7 recommends a free API key from the Context7 dashboard for higher rate limits.

## Steps

1. **Open Context7's MCP client setup instructions** <https://context7.com/docs/resources/all-clients>
2. **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").
3. **Recommended: Authorization**
4. **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.
5. **List the server's tools**

## 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

- https://context7.com/docs/resources/all-clients (checked 2026-11-05)
- https://github.com/upstash/context7 (checked 2026-11-05)
- https://registry.modelcontextprotocol.io/v0.1/servers/io.github.upstash%2Fcontext7/versions/4.5.0 (checked 2026-11-05)

Guide JSON: https://github.com/apideck-libraries/mcp-connect/blob/626f6a146170ded34891b30dca3af26f09e07466/proposals/connection-guide/0.1/reviewed/guides/context7-mcp.json
