Does Context7 work with Claude Code?
Yes. Context7 passed every step of our test in Claude Code on Oct 20, 2026: it installed, connected, its tools were visible, and an agent used it to finish a real task.
Result
Steps
- install OK
- connect OK
- tools visible OK
- agent task: library lookup OK
- agent task: docs fact OKfetch current library docs and answer a fact from them (any docs server, not only library-ID based ones)
From our own harness run, not the maker’s claims. How we test.
Versions tested
Claude Code 2.1.296 · @upstash/context7-mcp 4.4.4 · connected in 2.7s · tested Oct 20, 2026
Server 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.
What happened in this run
Install config we used
claude mcp add -s local context7 -- npx -y @upstash/context7-mcpConnection check
context7: npx -y @upstash/context7-mcp - ✔ ConnectedTools check
verified via task step: agent saw and called the server's tools
Agent task: library lookup
- Tool calls, in order:
mcp__context7__resolve-library-id
Agent task: docs fact
- Tool calls, in order:
mcp__context7__resolve-library-id,mcp__context7__query-docs
Raw details from our harness log for this run. Secrets redacted.
Set it up in Claude Code
Copy-paste config for every app is on the Context7 page. Not connecting? Claude Code MCP troubleshooting.
Other apps we tested it in: Cursor (passed) · Claude Desktop (passed) · ChatGPT (Codex) (passed).