All MCP Clients
Context7 MCP Server is compatible with 30+ MCP clients. Below are installation instructions for popular clients.For the most up-to-date list of supported clients and installation instructions, visit context7.com/docs/resources/all-clients
Quick Links
Cursor
Install in Cursor IDE
Claude Code
Install in Claude Code
Opencode
Install in Opencode
Popular Clients
Cursor
Cursor is one of the most popular AI-powered code editors. Remote Server:Claude Code
Official AI coding assistant from Anthropic. Local Server:Opencode
Open-source AI coding assistant. Remote Server:Cline (VSCode Extension)
AI coding assistant for Visual Studio Code. Configuration Location: VSCode Settings → MCP SettingsRoo Code (VSCode Extension)
Another popular VSCode AI assistant. Configuration Location: VSCode Settings → MCP SettingsContinue.dev
Open-source AI code assistant. Configuration Location:~/.continue/config.json
Zed Editor
High-performance collaborative code editor. Configuration Location: Zed Settings → MCPWindsurf
AI-powered code editor.Claude Desktop
Standalone Claude application with MCP support. Configuration Location:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Sourcegraph Cody
AI coding assistant with deep codebase understanding.Installation Patterns
Most MCP clients follow one of these patterns:Pattern 1: stdio (Local)
Local execution usingnpx and standard input/output:
Pattern 2: HTTP (Remote)
Remote connection via HTTPS:Pattern 3: Environment Variables
Using environment variables for API keys:Automated Setup
The Context7 CLI can automatically configure many popular clients:Authentication Options
All clients support both authentication methods:- API Key
- OAuth 2.0
Get a free API key at context7.com/dashboardPass via command line:Pass via environment variable:Pass via header (remote only):
Testing Installation
After installation, test Context7 with this prompt:- Context7 tools being invoked
- Library resolution (e.g., finding Next.js)
- Documentation retrieval
- Generated code with up-to-date APIs
Troubleshooting
Server not appearing in client
Server not appearing in client
- Check JSON syntax in configuration file
- Verify configuration file location is correct
- Restart the client application
- Check client logs for error messages
Authentication errors
Authentication errors
- Verify API key format (should start with
ctx7sk) - Regenerate API key at context7.com/dashboard
- Check header/environment variable names match
Connection errors
Connection errors
For local (stdio):
- Ensure Node.js is installed
- Clear npx cache:
npx clear-npx-cache - Test manually:
npx -y @upstash/context7-mcp
- Check internet connectivity
- Test endpoint:
curl https://mcp.context7.com/ping - Verify firewall settings
Additional Resources
Configuration Guide
Advanced configuration options
Troubleshooting
Common issues and solutions
MCP Specification
Learn about the MCP protocol
Discord Community
Get help from the community
Can’t Find Your Client?
If your MCP client isn’t listed here:- Check the client’s MCP documentation
- Try the standard stdio or HTTP configuration patterns
- Visit context7.com/docs/resources/all-clients for the complete list
- Ask in our Discord community