Skip to content

Context7 Platform -- Up-to-date docs for AI agents

Reorder clients list (#1411)

Enes Gules84c546208cec
diff --git a/docs/resources/all-clients.mdx b/docs/resources/all-clients.mdx
index b9106b90..0b333517 100644
--- a/docs/resources/all-clients.mdx
+++ b/docs/resources/all-clients.mdx
@@ -7,6 +7,24 @@ Context7 supports all MCP clients. Below are configuration examples for popular
<AccordionGroup>
+<Accordion title="Claude Code">
+
+Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp) for more info.
+
+#### Local Server Connection
+
+```sh
+claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
+```
+
+#### Remote Server Connection
+
+```sh
+claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: YOUR_API_KEY"
+```
+
+</Accordion>
+
<Accordion title="Cursor">
Go to: `Settings` -> `Cursor Settings` -> `MCP` -> `Add new global MCP server`
@@ -49,43 +67,21 @@ Since Cursor 1.0, you can click the install button below for instant one-click i
</Accordion>
-<Accordion title="Claude Code">
-
-Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp) for more info.
-
-#### Local Server Connection
-
-```sh
-claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
-```
-
-#### Remote Server Connection
-
-```sh
-claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: YOUR_API_KEY"
-```
-
-</Accordion>
-
-<Accordion title="VS Code">
-
-[<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Context7%20MCP&color=0098FF" />](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22context7%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fcontext7-mcp%40latest%22%5D%7D)
-[<img alt="Install in VS Code Insiders (npx)" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Context7%20MCP&color=24bfa5" />](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%7B%22name%22%3A%22context7%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fcontext7-mcp%40latest%22%5D%7D)
+<Accordion title="Opencode">
-Add this to your VS Code MCP config file. See [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info.
+Add this to your Opencode configuration file. See [Opencode MCP docs](https://opencode.ai/docs/mcp-servers) for more info.
#### Remote Server Connection
```json
"mcp": {
- "servers": {
- "context7": {
- "type": "http",
- "url": "https://mcp.context7.com/mcp",
- "headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY"
- }
- }
+ "context7": {
+ "type": "remote",
+ "url": "https://mcp.context7.com/mcp",
+ "headers": {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
+ },
+ "enabled": true
}
}
```
@@ -93,12 +89,12 @@ Add this to your VS Code MCP config file. See [VS Code MCP docs](https://code.vi
#### Local Server Connection
```json
-"mcp": {
- "servers": {
+{
+ "mcp": {
"context7": {
- "type": "stdio",
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
+ "type": "local",
+ "command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
+ "enabled": true
}
}
}
@@ -106,9 +102,36 @@ Add this to your VS Code MCP config file. See [VS Code MCP docs](https://code.vi
</Accordion>
-<Accordion title="Windsurf">
+<Accordion title="OpenAI Codex">
-Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.windsurf.com/windsurf/cascade/mcp) for more info.
+See [OpenAI Codex](https://github.com/openai/codex) for more information.
+
+#### Local Server Connection
+
+```toml
+[mcp_servers.context7]
+args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
+command = "npx"
+startup_timeout_ms = 20_000
+```
+
+#### Remote Server Connection
+
+```toml
+[mcp_servers.context7]
+url = "https://mcp.context7.com/mcp"
+http_headers = { "CONTEXT7_API_KEY" = "YOUR_API_KEY" }
+```
+
+<Note>
+If you see startup timeout errors, try increasing `startup_timeout_ms` to `40_000`.
+</Note>
+
+</Accordion>
+
+<Accordion title="Google Antigravity">
+
+Add this to your Antigravity MCP config file. See [Antigravity MCP docs](https://antigravity.google/docs/mcp) for more info.
#### Remote Server Connection
@@ -140,67 +163,38 @@ Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.
</Accordion>
-<Accordion title="Cline">
-
-You can easily install Context7 through the [Cline MCP Server Marketplace](https://cline.bot/mcp-marketplace) by following these instructions:
+<Accordion title="VS Code">
-1. Open **Cline**.
-2. Click the hamburger menu icon to enter the **MCP Servers** section.
-3. Use the search bar within the **Marketplace** tab to find _Context7_.
-4. Click the **Install** button.
+[<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Context7%20MCP&color=0098FF" />](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22context7%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fcontext7-mcp%40latest%22%5D%7D)
+[<img alt="Install in VS Code Insiders (npx)" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Context7%20MCP&color=24bfa5" />](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%7B%22name%22%3A%22context7%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fcontext7-mcp%40latest%22%5D%7D)
-Or you can directly edit MCP servers configuration:
+Add this to your VS Code MCP config file. See [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info.
-1. Open **Cline**.
-2. Click the hamburger menu icon to enter the **MCP Servers** section.
-3. Choose **Remote Servers** tab.
-4. Click the **Edit Configuration** button.
-5. Add context7 to `mcpServers`:
+#### Remote Server Connection
```json
-{
- "mcpServers": {
+"mcp": {
+ "servers": {
"context7": {
+ "type": "http",
"url": "https://mcp.context7.com/mcp",
- "type": "streamableHttp",
"headers": {
- "Authorization": "Bearer YOUR_API_KEY"
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
}
}
}
}
```
-</Accordion>
-
-<Accordion title="Opencode">
-
-Add this to your Opencode configuration file. See [Opencode MCP docs](https://opencode.ai/docs/mcp-servers) for more info.
-
-#### Remote Server Connection
-
-```json
-"mcp": {
- "context7": {
- "type": "remote",
- "url": "https://mcp.context7.com/mcp",
- "headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY"
- },
- "enabled": true
- }
-}
-```
-
#### Local Server Connection
```json
-{
- "mcp": {
+"mcp": {
+ "servers": {
"context7": {
- "type": "local",
- "command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
- "enabled": true
+ "type": "stdio",
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
@@ -208,91 +202,29 @@ Add this to your Opencode configuration file. See [Opencode MCP docs](https://op
</Accordion>
-<Accordion title="Amp">
-
-Run this command in your terminal. See [Amp MCP docs](https://ampcode.com/manual#mcp) for more info.
-
-#### Without API Key (Basic Usage)
-
-```sh
-amp mcp add context7 https://mcp.context7.com/mcp
-```
-
-#### With API Key (Higher Rate Limits & Private Repos)
-
-```sh
-amp mcp add context7 --header "CONTEXT7_API_KEY=YOUR_API_KEY" https://mcp.context7.com/mcp
-```
-
-</Accordion>
+<Accordion title="Kiro">
-<Accordion title="Zed">
+See [Kiro Model Context Protocol Documentation](https://kiro.dev/docs/mcp/configuration/) for details.
-It can be installed via [Zed Extensions](https://zed.dev/extensions?query=Context7) or you can add this to your Zed `settings.json`. See [Zed Context Server docs](https://zed.dev/docs/assistant/context-servers) for more info.
+1. Navigate `Kiro` > `MCP Servers`
+2. Add a new MCP server by clicking the `+ Add` button.
+3. Paste the configuration:
```json
{
- "context_servers": {
+ "mcpServers": {
"Context7": {
- "source": "custom",
"command": "npx",
- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
+ "env": {},
+ "disabled": false,
+ "autoApprove": []
}
}
}
```
-</Accordion>
-
-<Accordion title="Smithery">
-
-To install Context7 MCP Server for any client automatically via [Smithery](https://smithery.ai/server/@upstash/context7-mcp):
-
-```bash
-npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>
-```
-
-You can find your Smithery key in the [Smithery.ai webpage](https://smithery.ai/server/@upstash/context7-mcp).
-
-</Accordion>
-
-<Accordion title="Augment Code">
-
-To configure Context7 MCP in Augment Code, you can use either the graphical interface or manual configuration.
-
-### Using the Augment Code UI
-
-1. Click the hamburger menu.
-2. Select **Settings**.
-3. Navigate to the **Tools** section.
-4. Click the **+ Add MCP** button.
-5. Enter the following command:
-
- ```
- npx -y @upstash/context7-mcp@latest
- ```
-
-6. Name the MCP: **Context7**.
-7. Click the **Add** button.
-
-### Manual Configuration
-
-1. Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel
-2. Select Edit Settings
-3. Under Advanced, click Edit in settings.json
-4. Add the server configuration to the `mcpServers` array in the `augment.advanced` object
-
-```json
-"augment.advanced": {
- "mcpServers": [
- {
- "name": "context7",
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
- }
- ]
-}
-```
+4. Click `Save` to apply.
</Accordion>
@@ -341,9 +273,9 @@ Create `.kilocode/mcp.json`:
</Accordion>
-<Accordion title="Google Antigravity">
+<Accordion title="Roo Code">
-Add this to your Antigravity MCP config file. See [Antigravity MCP docs](https://antigravity.google/docs/mcp) for more info.
+Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https://docs.roocode.com/features/mcp/using-mcp-in-roo) for more info.
#### Remote Server Connection
@@ -351,7 +283,8 @@ Add this to your Antigravity MCP config file. See [Antigravity MCP docs](https:/
{
"mcpServers": {
"context7": {
- "serverUrl": "https://mcp.context7.com/mcp",
+ "type": "streamable-http",
+ "url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
}
@@ -375,9 +308,9 @@ Add this to your Antigravity MCP config file. See [Antigravity MCP docs](https:/
</Accordion>
-<Accordion title="Roo Code">
+<Accordion title="Windsurf">
-Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https://docs.roocode.com/features/mcp/using-mcp-in-roo) for more info.
+Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.windsurf.com/windsurf/cascade/mcp) for more info.
#### Remote Server Connection
@@ -385,8 +318,7 @@ Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https:
{
"mcpServers": {
"context7": {
- "type": "streamable-http",
- "url": "https://mcp.context7.com/mcp",
+ "serverUrl": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
}
@@ -410,28 +342,15 @@ Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https:
</Accordion>
-<Accordion title="Gemini CLI">
+<Accordion title="Claude Desktop">
-See [Gemini CLI Configuration](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html) for details.
+#### Remote Server Connection
-1. Open the Gemini CLI settings file at `~/.gemini/settings.json`
-2. Add the following to the `mcpServers` object:
+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`.
-```json
-{
- "mcpServers": {
- "context7": {
- "httpUrl": "https://mcp.context7.com/mcp",
- "headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY",
- "Accept": "application/json, text/event-stream"
- }
- }
- }
-}
-```
+#### Local Server Connection
-Or, for a local server:
+Open Claude Desktop developer settings and edit your `claude_desktop_config.json` file. See [Claude Desktop MCP docs](https://modelcontextprotocol.io/quickstart/user) for more info.
```json
{
@@ -446,28 +365,23 @@ Or, for a local server:
</Accordion>
-<Accordion title="Qwen Coder">
+<Accordion title="Trae">
-See [Qwen Coder MCP Configuration](https://qwenlm.github.io/qwen-code-docs/en/tools/mcp-server/#how-to-set-up-your-mcp-server) for details.
+Use the Add manually feature and fill in the JSON configuration. See [Trae documentation](https://docs.trae.ai/ide/model-context-protocol?_lang=en) for more details.
-1. Open the Qwen Coder settings file at `~/.qwen/settings.json`
-2. Add the following to the `mcpServers` object:
+#### Remote Server Connection
```json
{
"mcpServers": {
"context7": {
- "httpUrl": "https://mcp.context7.com/mcp",
- "headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY",
- "Accept": "application/json, text/event-stream"
- }
+ "url": "https://mcp.context7.com/mcp"
}
}
}
```
-Or, for a local server:
+#### Local Server Connection
```json
{
@@ -482,22 +396,32 @@ Or, for a local server:
</Accordion>
-<Accordion title="Claude Desktop">
+<Accordion title="Cline">
-#### Remote Server Connection
+You can easily install Context7 through the [Cline MCP Server Marketplace](https://cline.bot/mcp-marketplace) by following these instructions:
-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`.
+1. Open **Cline**.
+2. Click the hamburger menu icon to enter the **MCP Servers** section.
+3. Use the search bar within the **Marketplace** tab to find _Context7_.
+4. Click the **Install** button.
-#### Local Server Connection
+Or you can directly edit MCP servers configuration:
-Open Claude Desktop developer settings and edit your `claude_desktop_config.json` file. See [Claude Desktop MCP docs](https://modelcontextprotocol.io/quickstart/user) for more info.
+1. Open **Cline**.
+2. Click the hamburger menu icon to enter the **MCP Servers** section.
+3. Choose **Remote Servers** tab.
+4. Click the **Edit Configuration** button.
+5. Add context7 to `mcpServers`:
```json
{
"mcpServers": {
"context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
+ "url": "https://mcp.context7.com/mcp",
+ "type": "streamableHttp",
+ "headers": {
+ "Authorization": "Bearer YOUR_API_KEY"
+ }
}
}
}
@@ -505,100 +429,68 @@ Open Claude Desktop developer settings and edit your `claude_desktop_config.json
</Accordion>
-<Accordion title="OpenAI Codex">
-
-See [OpenAI Codex](https://github.com/openai/codex) for more information.
-
-#### Local Server Connection
-
-```toml
-[mcp_servers.context7]
-args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
-command = "npx"
-startup_timeout_ms = 20_000
-```
+<Accordion title="Augment Code">
-#### Remote Server Connection
+To configure Context7 MCP in Augment Code, you can use either the graphical interface or manual configuration.
-```toml
-[mcp_servers.context7]
-url = "https://mcp.context7.com/mcp"
-http_headers = { "CONTEXT7_API_KEY" = "YOUR_API_KEY" }
-```
+### Using the Augment Code UI
-<Note>
-If you see startup timeout errors, try increasing `startup_timeout_ms` to `40_000`.
-</Note>
+1. Click the hamburger menu.
+2. Select **Settings**.
+3. Navigate to the **Tools** section.
+4. Click the **+ Add MCP** button.
+5. Enter the following command:
-</Accordion>
+ ```
+ npx -y @upstash/context7-mcp@latest
+ ```
-<Accordion title="JetBrains AI Assistant">
+6. Name the MCP: **Context7**.
+7. Click the **Add** button.
-See [JetBrains AI Assistant Documentation](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html) for more details.
+### Manual Configuration
-1. In JetBrains IDEs, go to `Settings` -> `Tools` -> `AI Assistant` -> `Model Context Protocol (MCP)`
-2. Click `+ Add`.
-3. Click on `Command` in the top-left corner and select the As JSON option
-4. Add this configuration:
+1. Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel
+2. Select Edit Settings
+3. Under Advanced, click Edit in settings.json
+4. Add the server configuration to the `mcpServers` array in the `augment.advanced` object
```json
-{
- "mcpServers": {
- "context7": {
+"augment.advanced": {
+ "mcpServers": [
+ {
+ "name": "context7",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
- }
-}
-```
-
-5. Click `Apply` to save changes.
-
-</Accordion>
-
-<Accordion title="Kiro">
-
-See [Kiro Model Context Protocol Documentation](https://kiro.dev/docs/mcp/configuration/) for details.
-
-1. Navigate `Kiro` > `MCP Servers`
-2. Add a new MCP server by clicking the `+ Add` button.
-3. Paste the configuration:
-
-```json
-{
- "mcpServers": {
- "Context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
- "env": {},
- "disabled": false,
- "autoApprove": []
- }
- }
+ ]
}
```
-4. Click `Save` to apply.
-
</Accordion>
-<Accordion title="Trae">
+<Accordion title="Gemini CLI">
-Use the Add manually feature and fill in the JSON configuration. See [Trae documentation](https://docs.trae.ai/ide/model-context-protocol?_lang=en) for more details.
+See [Gemini CLI Configuration](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html) for details.
-#### Remote Server Connection
+1. Open the Gemini CLI settings file at `~/.gemini/settings.json`
+2. Add the following to the `mcpServers` object:
```json
{
"mcpServers": {
"context7": {
- "url": "https://mcp.context7.com/mcp"
+ "httpUrl": "https://mcp.context7.com/mcp",
+ "headers": {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY",
+ "Accept": "application/json, text/event-stream"
+ }
}
}
}
```
-#### Local Server Connection
+Or, for a local server:
```json
{
@@ -650,51 +542,58 @@ Use these alternatives to run the local Context7 MCP server with other runtimes.
</Accordion>
-<Accordion title="Using Docker">
+<Accordion title="Copilot Coding Agent">
-1. Create a `Dockerfile`:
+Add the following configuration to Repository->Settings->Copilot->Coding agent->MCP configuration:
-```Dockerfile
-FROM node:18-alpine
-WORKDIR /app
-RUN npm install -g @upstash/context7-mcp
-CMD ["context7-mcp"]
+```json
+{
+ "mcpServers": {
+ "context7": {
+ "type": "http",
+ "url": "https://mcp.context7.com/mcp",
+ "headers": {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
+ },
+ "tools": ["query-docs", "resolve-library-id"]
+ }
+ }
+}
```
-2. Build the image:
+See the [official GitHub documentation](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp) for more info.
-```bash
-docker build -t context7-mcp .
-```
+</Accordion>
-3. Configure your MCP client:
+<Accordion title="Copilot CLI">
+
+Open `~/.copilot/mcp-config.json` and add:
```json
{
"mcpServers": {
"context7": {
- "command": "docker",
- "args": ["run", "-i", "--rm", "context7-mcp"],
- "transportType": "stdio"
+ "type": "http",
+ "url": "https://mcp.context7.com/mcp",
+ "headers": {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
+ },
+ "tools": ["query-docs", "resolve-library-id"]
}
}
}
```
-</Accordion>
-
-<Accordion title="Windows">
-
-The configuration on Windows is slightly different. Use `cmd` to run npx:
+Or, for a local server:
```json
{
"mcpServers": {
"context7": {
- "command": "cmd",
- "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
- "disabled": false,
- "autoApprove": []
+ "type": "local",
+ "command": "npx",
+ "tools": ["query-docs", "resolve-library-id"],
+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
@@ -743,43 +642,94 @@ See [Warp Model Context Protocol Documentation](https://docs.warp.dev/knowledge-
</Accordion>
-<Accordion title="Copilot Coding Agent">
+<Accordion title="Amp">
-Add the following configuration to Repository->Settings->Copilot->Coding agent->MCP configuration:
+Run this command in your terminal. See [Amp MCP docs](https://ampcode.com/manual#mcp) for more info.
+
+#### Without API Key (Basic Usage)
+
+```sh
+amp mcp add context7 https://mcp.context7.com/mcp
+```
+
+#### With API Key (Higher Rate Limits & Private Repos)
+
+```sh
+amp mcp add context7 --header "CONTEXT7_API_KEY=YOUR_API_KEY" https://mcp.context7.com/mcp
+```
+
+</Accordion>
+
+<Accordion title="Zed">
+
+It can be installed via [Zed Extensions](https://zed.dev/extensions?query=Context7) or you can add this to your Zed `settings.json`. See [Zed Context Server docs](https://zed.dev/docs/assistant/context-servers) for more info.
+
+```json
+{
+ "context_servers": {
+ "Context7": {
+ "source": "custom",
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
+ }
+ }
+}
+```
+
+</Accordion>
+
+<Accordion title="Smithery">
+
+To install Context7 MCP Server for any client automatically via [Smithery](https://smithery.ai/server/@upstash/context7-mcp):
+
+```bash
+npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>
+```
+
+You can find your Smithery key in the [Smithery.ai webpage](https://smithery.ai/server/@upstash/context7-mcp).
+
+</Accordion>
+
+<Accordion title="JetBrains AI Assistant">
+
+See [JetBrains AI Assistant Documentation](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html) for more details.
+
+1. In JetBrains IDEs, go to `Settings` -> `Tools` -> `AI Assistant` -> `Model Context Protocol (MCP)`
+2. Click `+ Add`.
+3. Click on `Command` in the top-left corner and select the As JSON option
+4. Add this configuration:
```json
{
"mcpServers": {
"context7": {
- "type": "http",
- "url": "https://mcp.context7.com/mcp",
- "headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY"
- },
- "tools": ["query-docs", "resolve-library-id"]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
```
-See the [official GitHub documentation](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp) for more info.
+5. Click `Apply` to save changes.
</Accordion>
-<Accordion title="Copilot CLI">
+<Accordion title="Qwen Coder">
-Open `~/.copilot/mcp-config.json` and add:
+See [Qwen Coder MCP Configuration](https://qwenlm.github.io/qwen-code-docs/en/tools/mcp-server/#how-to-set-up-your-mcp-server) for details.
+
+1. Open the Qwen Coder settings file at `~/.qwen/settings.json`
+2. Add the following to the `mcpServers` object:
```json
{
"mcpServers": {
"context7": {
- "type": "http",
- "url": "https://mcp.context7.com/mcp",
+ "httpUrl": "https://mcp.context7.com/mcp",
"headers": {
- "CONTEXT7_API_KEY": "YOUR_API_KEY"
- },
- "tools": ["query-docs", "resolve-library-id"]
+ "CONTEXT7_API_KEY": "YOUR_API_KEY",
+ "Accept": "application/json, text/event-stream"
+ }
}
}
}
@@ -791,9 +741,7 @@ 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"]
}
}
@@ -802,6 +750,58 @@ Or, for a local server:
</Accordion>
+<Accordion title="Using Docker">
+
+1. Create a `Dockerfile`:
+
+```Dockerfile
+FROM node:18-alpine
+WORKDIR /app
+RUN npm install -g @upstash/context7-mcp
+CMD ["context7-mcp"]
+```
+
+2. Build the image:
+
+```bash
+docker build -t context7-mcp .
+```
+
+3. Configure your MCP client:
+
+```json
+{
+ "mcpServers": {
+ "context7": {
+ "command": "docker",
+ "args": ["run", "-i", "--rm", "context7-mcp"],
+ "transportType": "stdio"
+ }
+ }
+}
+```
+
+</Accordion>
+
+<Accordion title="Windows">
+
+The configuration on Windows is slightly different. Use `cmd` to run npx:
+
+```json
+{
+ "mcpServers": {
+ "context7": {
+ "command": "cmd",
+ "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
+ "disabled": false,
+ "autoApprove": []
+ }
+ }
+}
+```
+
+</Accordion>
+
<Accordion title="LM Studio">
See [LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) for more information.