| title | MCP Clients | ||
|---|---|---|---|
| description | Installation examples for MCP clients | ||
| product | Context7 | ||
| section | docs | ||
| source_url | https://context7.com/docs/resources/all-clients | ||
| fetched | 2026-09-26 | ||
| tags |
|
Installation examples for MCP clients
Context7 supports all MCP clients. Below are configuration examples for popular clients. If your client isn't listed, check its documentation for MCP server installation. To configure manually, use the Context7 server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the Authorization: Bearer YOUR_API_KEY header.
Context7 MCP server supports OAuth 2.0 authentication for MCP clients that implement the MCP OAuth specification.
To use OAuth, change the endpoint from /mcp to /mcp/oauth in your client configuration:
- "url": "https://mcp.context7.com/mcp"
+ "url": "https://mcp.context7.com/mcp/oauth"OAuth is only available for remote HTTP connections. For local MCP connections using stdio transport, use API key authentication instead.
Run this command. See Claude Code MCP docs for more info.
claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYclaude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcpGo to: Cursor Settings -> Tools & MCP -> New MCP Server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
Since Cursor 1.0, you can click the install button below for instant one-click installation.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your Opencode configuration file. See Opencode MCP docs for more info.
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"enabled": true
}
}{
"mcp": {
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
"enabled": true
}
}
}Add the hosted Context7 server with OpenClaw's MCP client registry. See the OpenClaw MCP documentation for more details.
Register the Context7 OAuth endpoint, then sign in through your browser:
openclaw mcp add context7 \
--url https://mcp.context7.com/mcp/oauth \
--transport streamable-http \
--auth oauth
openclaw mcp login context7OpenClaw also provides a code-based login fallback for headless or remote environments. See Set Up OAuth for more details.
To connect without OAuth, register the standard endpoint:
openclaw mcp add context7 \
--url https://mcp.context7.com/mcp \
--transport streamable-httpThis works without an API key at the anonymous rate limit. For higher limits, create a key in the Context7 dashboard and append this option to the command:
--header "Authorization: Bearer YOUR_API_KEY"Verify that OpenClaw can connect and discover the Context7 tools:
openclaw mcp doctor context7 --probeSee OpenAI Codex MCP docs for more info.
You can also install Context7 as a Codex plugin. It connects to the hosted MCP server and includes a documentation lookup skill. After installation, a browser window opens so you can log in via OAuth.
codex plugin marketplace add upstash/context7
codex plugin add context7@context7-marketplaceStart a new Codex thread after installation so Codex can load the plugin.
codex mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYAdd this to your Codex configuration file (~/.codex/config.toml or .codex/config.toml).
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
startup_timeout_ms = 20_000[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"
http_headers = { "Authorization" = "Bearer YOUR_API_KEY" }If you see startup timeout errors, try increasing startup_timeout_ms to 40_000.
Add this to your Antigravity MCP config file. See Antigravity MCP docs for more info.
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}The easiest way to install is the Context7 VS Code extension, which registers the server automatically and supports an API key via the context7.apiKey setting. See VS Code for details. For manual configuration, use the options below.
Add this to your VS Code MCP config file (.vscode/mcp.json). See VS Code MCP docs for more info.
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Kiro Model Context Protocol Documentation for details.
- Navigate
Kiro>MCP Servers - Add a new MCP server by clicking the
+ Addbutton. - Paste the configuration:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}To use an API key in Kiro, add:
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}See the API keys guide for how to create one.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Click
Saveto apply.
You can configure the Context7 MCP server in Kilo Code using either the UI or by editing your config file. See Kilo Code MCP docs for more info.
Kilo Code stores MCP servers in a kilo.jsonc file:
- Global —
~/.config/kilo/kilo.jsonc - Project —
kilo.jsoncin your project root or.kilo/kilo.jsonc(takes precedence)
- Click the Settings icon in the sidebar toolbar.
- Navigate to the Agent Behaviour tab.
- Select the MCP Servers sub-tab.
- Click Add Server and choose Remote (HTTP) or Local (stdio).
- Fill in the details and save.
Add Context7 under the mcp key in your kilo.jsonc.
{
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"enabled": true
}
}
}{
"mcp": {
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
"enabled": true
}
}
}Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
{
"mcpServers": {
"context7": {
"type": "streamable-http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your Devin Desktop MCP config file. See Devin Desktop MCP docs for more info.
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector. Enter the name as Context7 and the remote MCP server URL as https://mcp.context7.com/mcp.
Open Claude Desktop developer settings and edit your claude_desktop_config.json file. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}ChatGPT supports MCP servers through remote connectors via Developer Mode (beta). Available for Pro, Plus, Team, Enterprise, and Edu plans.
Go to: Settings → Apps → Advanced settings → Enable Developer Mode
Go to: Settings → Apps → Create App
Fill in the following:
| Field | Value |
|---|---|
| Name | Context7 |
| Description | Fetch up-to-date documentation and code examples for any library directly from the source |
| MCP Server URL | https://mcp.context7.com/mcp/oauth |
Accept the security notice and complete the one-time OAuth authorization.
Start a new chat → Click the plus icon → Hover over More → Select the Context7 app.
Alternatively, you can say use context7 in your prompt and ChatGPT will automatically use the Context7 app.
See OpenAI MCP docs for more info.
The ChatGPT desktop app shares apps configured on the web. Set up the app on chatgpt.com first.
Go to: Settings → Apps → Advanced settings → Enable Developer Mode
Go to: Settings → Apps → Create App
Fill in the following:
| Field | Value |
|---|---|
| Name | Context7 |
| Description | Fetch up-to-date documentation and code examples for any library directly from the source |
| MCP Server URL | https://mcp.context7.com/mcp/oauth |
Accept the security notice and complete the one-time OAuth authorization.
Open the ChatGPT desktop app → Start a new chat → ChatGPT will automatically use the Context7 app when you ask it to.
Apps configured on the web are automatically available in the desktop app.
See OpenAI MCP docs for more info.
Use the Add manually feature and fill in the JSON configuration. See Trae documentation for more details.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}You can easily install Context7 through the Cline MCP Server Marketplace by following these instructions:
- Open Cline.
- Click the hamburger menu icon to enter the MCP Servers section.
- Use the search bar within the Marketplace tab to find Context7.
- Click the Install button.
Or you can directly edit MCP servers configuration:
- Open Cline.
- Click the hamburger menu icon to enter the MCP Servers section.
- Choose Remote Servers tab.
- Click the Edit Configuration button.
- Add context7 to
mcpServers:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}To configure Context7 MCP in Augment Code, you can use either the graphical interface or manual configuration. See Augment Code MCP docs for more info.
-
Open the options menu in the upper right of the Augment panel.
-
Select Settings.
-
Navigate to the MCP section.
-
Click the + button to add a new server.
-
Enter the name Context7 and the command:
npx -y @upstash/context7-mcp@latest
In the MCP section, use Import from JSON and paste the following (a top-level mcpServers object keyed by server name):
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Gemini CLI Configuration for details.
- Open the Gemini CLI settings file at
~/.gemini/settings.json - Add the following to the
mcpServersobject:
{
"mcpServers": {
"context7": {
"httpUrl": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json, text/event-stream"
}
}
}
}Or, for a local server:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Use the Hermes CLI or edit ~/.hermes/config.yaml directly. See the Hermes CLI docs for more info.
Add this to your Hermes config file (~/.hermes/config.yaml).
mcp_servers:
context7:
url: "https://mcp.context7.com/mcp"
headers:
CONTEXT7_API_KEY: "YOUR_API_KEY"mcp_servers:
context7:
url: "https://mcp.context7.com/mcp/oauth"
auth: oauthhermes mcp add context7 --url https://mcp.context7.com/mcp/oauth --auth oauthmcp_servers:
context7:
command: "npx"
args: ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]Use these alternatives to run the local Context7 MCP server with other runtimes.
{
"mcpServers": {
"context7": {
"command": "bunx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}{
"mcpServers": {
"context7": {
"command": "deno",
"args": [
"run",
"--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
"--allow-net",
"npm:@upstash/context7-mcp"
]
}
}
}Add the following configuration to Repository -> Settings -> Code & automation -> Copilot -> MCP servers. Only secrets named with the COPILOT_MCP_ prefix are exposed to the MCP config, so store your key as a COPILOT_MCP_CONTEXT7_API_KEY Actions secret and reference it:
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer $COPILOT_MCP_CONTEXT7_API_KEY"
},
"tools": ["query-docs", "resolve-library-id"]
}
}
}See the official GitHub documentation for more info.
The easiest way is the Context7 plugin, which bundles the MCP server with a skill, an agent, and a command — see GitHub Copilot CLI. For manual configuration, open ~/.copilot/mcp-config.json and add:
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"tools": ["query-docs", "resolve-library-id"]
}
}
}Or, for a local server:
{
"mcpServers": {
"context7": {
"type": "local",
"command": "npx",
"tools": ["query-docs", "resolve-library-id"],
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your Amazon Q Developer CLI configuration file. See Amazon Q Developer CLI docs for more details.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Warp Model Context Protocol Documentation for details.
- Navigate
Settings>Agents>MCP servers. - Add a new MCP server by clicking the
+ Addbutton. - Paste the configuration:
{
"Context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
"env": {},
"working_directory": null,
"start_on_launch": true
}
}- Click
Save.
Run this command in your terminal. See Amp MCP docs for more info.
amp mcp add context7 https://mcp.context7.com/mcpamp mcp add context7 --header "Authorization=Bearer YOUR_API_KEY" https://mcp.context7.com/mcpIt can be installed via Zed Extensions or you can add this to your Zed settings.json. See Zed MCP docs for more info.
{
"context_servers": {
"Context7": {
"source": "custom",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}To install Context7 MCP Server for any client automatically via Smithery:
npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME>See the Context7 server page on Smithery for more details.
See JetBrains AI Assistant Documentation for more details.
- In JetBrains IDEs, go to
Settings->Tools->AI Assistant->Model Context Protocol (MCP) - Click
+ Add. - Select the HTTP or STDIO tab and paste the JSON configuration.
- Click
Applyto save changes.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Qwen Code MCP Configuration for details.
By default, configurations are saved to the project scope (.qwen/settings.json). Use the --scope user flag to save to the user scope (~/.qwen/settings.json) instead.
qwen mcp add --transport http context7 https://mcp.context7.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json, text/event-stream"qwen mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY- Open the Qwen Code settings file at
~/.qwen/settings.json(user scope) or.qwen/settings.json(project scope) - Add the following to the
mcpServersobject:
{
"mcpServers": {
"context7": {
"httpUrl": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json, text/event-stream"
}
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Create a
Dockerfile:
FROM node:22-alpine
WORKDIR /app
RUN npm install -g @upstash/context7-mcp
CMD ["context7-mcp", "--transport", "stdio"]- Build the image:
docker build -t context7-mcp .- Configure your MCP client:
{
"mcpServers": {
"context7": {
"command": "docker",
"args": ["run", "-i", "--rm", "context7-mcp"],
"transportType": "stdio"
}
}
}Context7 is available in the Docker MCP Catalog as a remote server, so you don't need to build, pull, or run a local image. The MCP Toolkit connects to the hosted endpoint for you.
- In Docker Desktop, open MCP Toolkit → Catalog, search for Context7, and enable it.
- (Optional) In the server's Config tab, set your Context7 API key (
CONTEXT7_API_KEY) for higher rate limits. The server also works without one. - Connect your MCP client to Docker's MCP gateway. Either run
docker mcp client connect <client>(for examplevscode,cursor, orclaude-desktop), or add the gateway to your client config manually:
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": ["mcp", "gateway", "run"],
"type": "stdio"
}
}
}The gateway exposes every server you've enabled in the MCP Toolkit, including Context7. Tools appear under the MCP_DOCKER server in your client.
The configuration on Windows is slightly different. Use cmd to run npx:
{
"mcpServers": {
"context7": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
"disabled": false,
"autoApprove": []
}
}
}See LM Studio MCP docs for more information.
- Navigate to
Program(right side) >Install>Edit mcp.json. - Paste the configuration:
{
"mcpServers": {
"Context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Click
Save.
See Visual Studio MCP Servers documentation for details.
{
"inputs": [],
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Or, for a local server:
{
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your Crush configuration file. See Crush MCP docs for more info.
{
"$schema": "https://charm.land/crush.json",
"mcp": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"$schema": "https://charm.land/crush.json",
"mcp": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Open the "Settings" page, navigate to "Plugins," and enter:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See BoltAI's Documentation for more info.
Edit your Rovo Dev CLI MCP config:
acli rovodev mcp{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Go to the Zencoder menu (...)
- Select Agent tools
- Click on Add custom MCP
- Add the name and configuration:
{
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}- Click Install.
See Qodo Gen docs for more details.
- Open Qodo Gen chat panel in VSCode or IntelliJ.
- Click Connect more tools.
- Click + Add new MCP.
- Add the configuration:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}See Local and Remote MCPs for Perplexity for more information.
- Navigate
Perplexity>Settings - Select
Connectors. - Click
Add Connector. - Select
Advanced. - Enter Server Name:
Context7 - Paste:
{
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
"command": "npx",
"env": {}
}- Click
Save.
Manus includes a built-in Context7 connector:
- Navigate
Settings>Connectors. - In the
Appstab, search forContext7. - Click
Context7to enable it.
Alternatively, add it as a custom MCP connection with your API key:
- Navigate
Settings>Connectors>Custom MCP. - Fill in the configuration:
| Field | Value |
|---|---|
| Server Name | Context7 |
| Transport Type | HTTP |
| Server URL | https://mcp.context7.com/mcp |
| Custom headers | CONTEXT7_API_KEY: YOUR_API_KEY |
- Click
Save.
Factory's droid supports MCP servers through its CLI. See Factory MCP docs for more info.
droid mcp add context7 https://mcp.context7.com/mcp --type http --header "Authorization: Bearer YOUR_API_KEY"droid mcp add context7 "npx -y @upstash/context7-mcp" --env CONTEXT7_API_KEY=YOUR_API_KEYEmdash is an orchestration layer for running multiple coding agents in parallel.
Context7 is available as a built-in entry in Emdash's MCP catalog. Enable it from the MCP view and provide your CONTEXT7_API_KEY (optional, for higher rate limits). Emdash adapts and writes the MCP config into your selected coding agent's config (Codex, Claude Code, Cursor, etc.) for you.
See the Emdash repository for more information.
Install the context7.mcpb file and add it to your client. See MCP bundles docs for more info.
AnythingLLM supports MCP Servers through GUI.
- Navigate
AnythingLLM>Agents Skills - Select
MCP Servers. - Click
Edit MCP config. - Paste.
- Click to "Refresh" button.
{
"mcpServers": {
"context7": {
"type": "streamable",
"url": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
