Context7 MCP Server
by upstashio.github.upstash/context7v4.2.0
Up-to-date code documentation for LLMs and AI code editors.
context tax
queued
security
queued
cold start
queued
freshness
Active1d ago
Install Context7 MCP server
Install in Claude Code
claude mcp add context7 -e CONTEXT7_API_KEY='<context7-api-key>' -- npx -y @upstash/context7-mcpInstall in Cursor
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<context7-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<context7-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<context7-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<context7-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| CONTEXT7_API_KEY | — | yes | API key for authentication |
Remote endpoints
- streamable-http
https://mcp.context7.com/mcp
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 1d ago · GitHub
Latest release
2026-10-08 · 1d ago · GitHub · ctx7@0.5.15
Package published
no data · npm/PyPI
Registry entry updated
2026-10-07 · 1d ago · official registry · v4.2.0
FAQ
›How do I install the Context7 MCP server in Claude Code?
Run: claude mcp add context7 -e CONTEXT7_API_KEY='<context7-api-key>' -- npx -y @upstash/context7-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Context7 require an API key?
Yes. It expects CONTEXT7_API_KEY, of which 1 is a secret.
›Can I use Context7 as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Context7 in the official MCP registry?
Yes, as io.github.upstash/context7.
Alternatives to Context7
Other notes & knowledge MCP servers.