Context7
Pulls current, version-specific library docs into the agent's context so code suggestions match the real API.
Found React's library ID and looked up Vite's default dev-server port (5173) in its docs, in both Claude Code and Cursor (6 calls in total), and it passed its library-ID task in ChatGPT (Codex) on Oct 15 (the Vite task hasn't run there yet). No runner-up: Docfork's search failed on every call ('fetch failed': its docs API didn't respond on Oct 15; the repo is archived), and mcpdoc failed to start in both clients. Confirmed Oct 20, 2026: a second run in Claude Code and Cursor passed both tasks again (Context7 4.4.4).
Test results
Last passed 2026-10-20Server package tested: @upstash/context7-mcp 4.4.4 (npm, Node v20.19.2; resolved 2026-10-20)
Direct and key dependencies as resolved: @modelcontextprotocol/node 2.1.1 · @modelcontextprotocol/server 2.3.1 · @opentelemetry/api 1.9.1 · @opentelemetry/exporter-prometheus 0.222.0 · @opentelemetry/instrumentation-runtime-node 0.35.0 · @opentelemetry/resources 2.12.0 · @opentelemetry/sdk-metrics 2.12.0 · @types/express 5.0.6 · commander 13.1.0 · express 5.3.0 · jose 6.2.12 · undici 7.30.1 · zod 4.6.7
All 99 resolved dependencies
@hono/node-server==1.19.17
@modelcontextprotocol/core==2.3.1
@modelcontextprotocol/node==2.1.1
@modelcontextprotocol/server==2.3.1
@opentelemetry/api==1.9.1
@opentelemetry/api-logs==0.222.0
@opentelemetry/core==2.11.0, 2.12.0
@opentelemetry/exporter-prometheus==0.222.0
@opentelemetry/instrumentation==0.222.0
@opentelemetry/instrumentation-runtime-node==0.35.0
@opentelemetry/resources==2.11.0, 2.12.0
@opentelemetry/sdk-metrics==2.11.0, 2.12.0
@opentelemetry/semantic-conventions==1.43.0
@types/body-parser==1.19.6
@types/connect==3.4.38
@types/express==5.0.6
@types/express-serve-static-core==5.1.3
@types/http-errors==2.0.5
@types/node==26.6.5
@types/qs==6.15.1
@types/range-parser==1.2.7
@types/send==1.2.1
@types/serve-static==2.2.0
accepts==2.0.0
body-parser==2.3.0
bytes==3.1.2
call-bind-apply-helpers==1.0.2
call-bound==1.0.4
cjs-module-lexer==2.3.0
commander==13.1.0
content-disposition==2.0.1
content-type==2.1.0
cookie==0.7.2
cookie-signature==1.2.2
debug==4.4.3
depd==2.0.0
dunder-proto==1.0.1
ee-first==1.1.1
encodeurl==2.0.0
es-define-property==1.0.1
es-errors==1.3.0
es-module-lexer==3.0.4
es-object-atoms==1.1.2
escape-html==1.0.3
etag==1.8.1
express==5.3.0
finalhandler==2.1.1
forwarded==0.2.0
fresh==2.0.0
function-bind==1.1.2
get-intrinsic==1.3.0
get-proto==1.0.1
gopd==1.2.0
has-symbols==1.1.0
hasown==2.0.4
hono==4.13.13
http-errors==2.0.1
iconv-lite==0.7.3
import-in-the-middle==3.5.2
inherits==2.0.4
ipaddr.js==1.9.1
is-promise==4.0.0
jose==6.2.12
math-intrinsics==1.1.0
media-typer==1.1.1
merge-descriptors==2.0.0
mime-db==1.54.0
mime-types==3.0.2
module-details-from-path==1.0.4
ms==2.1.3
negotiator==1.1.0
object-inspect==1.13.4
on-finished==2.4.1
once==1.4.0
parseurl==1.3.3
path-to-regexp==8.4.2
proxy-addr==2.0.8
qs==6.16.1
range-parser==1.3.0
raw-body==3.0.2
require-in-the-middle==8.0.1
router==2.2.0
safer-buffer==2.1.2
send==1.2.1
serve-static==2.2.1
setprototypeof==1.2.0
side-channel==1.1.1
side-channel-list==1.0.1
side-channel-map==1.0.1
side-channel-weakmap==1.0.2
statuses==2.0.2
toidentifier==1.0.1
type-is==2.1.0
undici==7.30.1
undici-types==8.9.0
unpipe==1.0.0
vary==1.1.2
wrappy==1.0.2
zod==4.6.7Captured with: npm ls --all --json in the npx env.
Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?
Real test
PassedOne run from our records. When two runs share a date, we show a failure if there is one.
- Client
- Cursor · Cursor CLI 2026.10.19-6bbf2c4
- Date
- Oct 20, 2026
- The task we gave
Using only the context7 MCP tools, find the documentation library ID for React and reply with it.
- What it promised
- details not recorded for this run
- What happened
Tool calls:
context7:resolve-library-idOther calls recorded:
getMcpToolsToolCallTool result
{"success": {"content": [{"text": {"text": "Available Libraries:\n\n- Title: React\n- Context7-compatible library ID: /reactjs/react.dev\n- Description: React.dev is the official documentation website for React, a JavaScript library for building user interfaces, providing guides, API references, and tutorials.\n- Code Snippets: 4342\n- Source Reputation: High\n- Benchmark Score: 84.23\n- Versions: __branch__v18\n----------\n- Title: React\n- Context7-compatible library ID: /react/react\n- Description: React is a JavaScript library for building user interfaces.\n- Code Snippets: 5468\n- Source Reputation: High\n- Benchmark Score: 66.25\n- Versions: v19.2.7, v18.2.0, v19.2.8, v18.3.1\n----------\n- Title: React\n- Context7-compatible library ID: /websites/react_dev\n- Description: React is a JavaScript library for building user interfaces. It allows developers to create interactive web and native applications using reusable components, enabling efficient and scalable UI development.\n- Code Snippets: 5159\n- Source Reputation: High\n- Benchmark Score: 85.11\n----------\n- Title: React\n- Context7-compatible library ID: /websites/react_dev_reference\n- Description: React is a JavaScript library for building user interfaces with reusable components, hooks, and APIs for managing state and side effects.\n- Code Snippets: 2673\n- Source Reputation: High\n- Benchmark Score: 83.64\n----------\n- Title: React\n- Context7-compatible library ID: /websites/react_dev_reference_react\n- DesAgent reply
I’ll use the `context7` MCP resolver to look up React’s library ID directly, then return just that ID.`/reactjs/react.dev`- Verdict
- Passed
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 | Versions tested |
|---|---|---|---|
| 2026-10-20 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · @upstash/context7-mcp 4.4.4 |
| 2026-10-20 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.19-6bbf2c4 · @upstash/context7-mcp 4.4.4 |
| 2026-10-18 | Claude Desktop | Passed install, connect, tools, agent task | Claude Desktop 2.37337.1 (Linux beta) · package version not recorded |
| 2026-10-15 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · package version not recorded |
| 2026-10-15 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · package version not recorded |
| 2026-10-15 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.12-d47ca18 · package version not recorded |
| 2026-10-13 | Protocol (direct stdio) | Protocol: starts, 2 tools listed | server reported v4.4.1 |
Tested on ToolPassed badge
Maker of Context7? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-20. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.
[](https://toolpassed.com/mcp/context7/)Tools seen by our harness (2)
resolve-library-idquery-docs