Up-to-date code docs for any prompt
registry version 4.3.0
npm
npx -y @upstash/context7-mcpnpm
npx -y @upstash/context7-mcp@4.3.0mcpb
https://github.com/upstash/context7/releases/download/mcpb-v4.3.0/context7.mcpbStreamable HTTP
https://mcp.context7.com/mcp
Pick your client — the config below is generated for this server (both local and hosted-endpoint forms). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@4.3.0"
]
}
}
}Remote (hosted) endpoint
https://mcp.context7.com/mcp
Claude Desktop: Settings → Connectors → Add custom connector, paste this URL.
Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add context7 -- npx -y @upstash/context7-mcp
claude mcp add context7 -- npx -y @upstash/context7-mcp@4.3.0
terminal
claude mcp add --transport http context7 https://mcp.context7.com/mcp
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@4.3.0"
]
}
}
}.cursor/mcp.json (hosted endpoint)
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}{
"servers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@4.3.0"
]
}
}
}.vscode/mcp.json (hosted endpoint)
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@4.3.0"
]
}
}
}mcp_config.json (hosted endpoint)
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp"
}
}
}Format verified against the official Windsurf docs ↗.
⭐ 62,991 stars · 最近更新于 16 天前 · MIT license
These star and push figures are for the shared repository — 2 listings on this site point at the same repository.
Context7 Platform Up to date Code Docs For Any Prompt purple ) ❌ Without Context7 LLMs rely on outdated or generic information about the libraries you use. You get: ❌ Code examples are outdated and based on year old training data ❌ Hallucinated APIs that don't even exist ❌ Generic answers for old pa…
Summary from the project README — github.com/upstash/context7
Distributed as npm, mcpb, Streamable HTTP, listed under Knowledge & Memory. Review our MCP security guide before granting access to real data.
Context7 Platform Up to date Code Docs For Any Prompt purple ) ❌ Without Context7 LLMs rely on outdated or generic information about the libraries you use. You get: ❌ Code examples are outdated and based on year old training data ❌ Hallucinated APIs that don't even exist ❌ Generic answers for old pa
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/upstash/context7. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/context7/)
HTML
<a href="https://mcpnav.net/server/context7/"><img src="https://mcpnav.net/badge/context7.svg" alt="Listed on MCPNav" height="20"></a>