Requirements
Before you begin:- MCP Client: Cursor, Claude Code, VS Code, Windsurf, or another MCP-compatible IDE
- API Key (Recommended): For higher rate limits and private repositories. Get yours at context7.com/dashboard
Recommended Setup
For most users, we recommend:- Remote Server (HTTP) - Easier setup with no local dependencies
- With API Key - Higher rate limits and access to private repositories
Quick Install
Via Smithery
Install the Context7 MCP automatically for any client via Smithery:Client-Specific Installation
Cursor
Cursor
Claude Code
Claude Code
Remote Server:Local Server:
VS Code
VS Code
Add to your VS Code MCP config:Remote Server:Local Server:
Windsurf
Windsurf
Remote Server:Local Server:
Amp
Amp
Without API Key:With API Key:
Cline
Cline
Install through the Cline MCP Server Marketplace:
- Open Cline
- Click the hamburger menu (☰) → MCP Servers
- Search for Context7 in the Marketplace tab
- Click Install
Zed
Zed
Install via Zed Extensions or add to
settings.json:Augment Code
Augment Code
Via UI:
- Hamburger menu → Settings → Tools
- Click + Add MCP
- Enter command:
npx -y @upstash/context7-mcp@latest - Name: Context7
Roo Code
Roo Code
Remote Server:Local Server:
Kilo Code
Kilo Code
You can configure the Context7 MCP server in Kilo Code using either the UI or by editing your project’s MCP configuration file.Kilo Code supports two configuration levels:
- Global MCP Configuration — stored in
mcp_settings.json - Project-level MCP Configuration — stored in
.kilocode/mcp.json(recommended)
- Open Kilo Code
- Click the Settings icon in the top-right corner
- Navigate to Settings → MCP Servers
- Click Add Server
- Choose HTTP Server (Streamable HTTP Transport)
- Enter URL:
https://mcp.context7.com/mcp - Add Header - Key:
Authorization, Value:Bearer YOUR_API_KEY - Click Save
.kilocode/mcp.json):Google Antigravity
Google Antigravity
Remote Server:Local Server:
Gemini CLI
Gemini CLI
Open Local Server:
~/.gemini/settings.json and add:Remote Server:Claude Desktop
Claude Desktop
Remote Server:
Settings → Connectors → Add Custom Connector
- Name:
Context7 - URL:
https://mcp.context7.com/mcp
claude_desktop_config.json):Opencode
Opencode
Remote Server:Local Server:
OpenAI Codex
OpenAI Codex
Remote Server:Local Server:Windows: Use full paths if you encounter timeout errors:macOS: Use full Node.js path if needed:
JetBrains AI Assistant
JetBrains AI Assistant
- Go to
Settings→Tools→AI Assistant→Model Context Protocol (MCP) - Click
+ Add - Select
As JSONfrom the top-left dropdown - Add configuration:
- Click
Apply
Kiro
Kiro
- Navigate
Kiro→MCP Servers - Click
+ Add - Add configuration:
Trae
Trae
Remote Server:Local Server:
Visual Studio 2022
Visual Studio 2022
Remote Server:Local Server:
Crush
Crush
Remote Server:Local Server:
BoltAI
BoltAI
Open Settings → Plugins, then add:Use
get-library-docs in the chat with your Context7 documentation ID.Rovo Dev CLI
Rovo Dev CLI
Edit your config:Remote Server:Local Server:
Zencoder
Zencoder
- Go to Zencoder menu (…)
- Select Agent tools
- Click Add custom MCP
- Add configuration:
Qodo Gen
Qodo Gen
- Open the Qodo Gen chat panel
- Click Connect more tools
- Click + Add new MCP
Qwen Coder
Qwen Coder
See Qwen Coder MCP Configuration for details.Local Server:If the
- Open the Qwen Coder settings file. The location is
~/.qwen/settings.json(where~is your home directory). - Add the following to the
mcpServersobject in yoursettings.jsonfile:
mcpServers object does not exist, create it.Perplexity Desktop
Perplexity Desktop
- Navigate to
Perplexity→Settings→Connectors - Click
Add Connector→Advanced - Server Name:
Context7 - Add configuration:
Warp
Warp
- Navigate to
Settings→AI→Manage MCP servers - Click
+ Add - Add configuration:
Copilot Coding Agent
Copilot Coding Agent
Add the following to your Copilot configuration at:Repository → Settings → Copilot → Coding agent → MCP configuration
Copilot CLI
Copilot CLI
- Open the Copilot CLI MCP config file. The location is
~/.copilot/mcp-config.json(where~is your home directory). - Add the following to the
mcpServersobject in yourmcp-config.jsonfile:
mcp-config.json file does not exist, create it.Amazon Q Developer CLI
Amazon Q Developer CLI
Windows Configuration
Windows Configuration
On Windows, configuration differs slightly. Use
cmd with /c:Factory
Factory
Factory’s droid supports MCP servers through its CLI. See Factory MCP docs for more info.Remote Server Connection (HTTP):Run this command in your terminal:Or without an API key (basic usage with rate limits):Local Server Connection (Stdio):Run this command in your terminal:Once configured, Context7 tools will be available in your droid sessions. Type
/mcp within droid to manage servers, authenticate, and view available tools.Emdash
Emdash
Emdash is an orchestration layer for running multiple coding agents in parallel. Provider-agnostic, worktree-isolated, and local-first.What Emdash provides:
- Global toggle: Settings → MCP → “Enable Context7 MCP”
- Per-workspace enable: The Context7 button in the ProviderBar (off by default). First click enables it for that workspace. Clicking again disables it.
- ProviderBar: The Context7 button shows status, a short explanation, and a link to docs
Alternative Runtimes
Using Bun
Using Deno
Using Docker
Create aDockerfile:
Desktop Extension
Install the context7.mcpb file. See MCP bundles docs for details.Verify Installation
Test your setup with the MCP Inspector:Next Steps
Now that Context7 is installed:- Learn usage patterns - See the How-To Guides to master Context7 features like auto-invoke, specific library IDs, and token control
- Get an API key - Visit the Dashboard to create an API key for higher rate limits and access to private repositories
- Explore the API - Read the API Guide for direct API integration and best practices