Context7
Pulls current, version-specific library docs into the agent's context so code suggestions match the real API.
SourcesGitHubupstash/context7
Test results
Last passed 2026-10-13Claude CodePassed2026-10-13 · install, connect, tools, agent task
CursorPassed2026-10-13 · install, connect, tools, agent task
Claude DesktopNot tested—
ChatGPT (Codex)Not tested—
Protocol: starts, 2 tools listed · 2026-10-13
Install
claude mcp add context7 -- npx -y @upstash/context7-mcpRun in your terminal. This exact command is what our harness runs in Claude Code; see the results above.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.
Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)
Test history
| Date | Check | Result | Version |
|---|---|---|---|
| 2026-10-13 | Protocol (direct stdio) | Protocol: starts, 2 tools listed | 4.4.1 |
| 2026-10-13 | Claude Code | Passed install, connect, tools, agent task | 2.1.296 (Claude Code) |
| 2026-10-13 | Cursor | Passed install, connect, tools, agent task | 2026.10.12-d47ca18 |
Tools seen by our harness (2)
resolve-library-idquery-docs