Context7 MCP Server
Up-to-date code docs for any prompt. It runs locally over stdio via the published package.
People connecting documentation tools to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-08-24 · ★ 61,171 · #1 OF 183 MAINTAINED DOCUMENTATION · VERIFIED 2026-08-25
MIT · TypeScript servers · how we verify → /methodology
01 · Install Context7
Claude Code
claude mcp add upstash-context7 -- npx -y @upstash/context7-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"upstash-context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package @upstash/context7-mcp - published under the repo owner's npm scope (@upstash)
registry namespace io.github.upstash is GitHub-verified and matches the repo owner
03 · What Context7 can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can resolve a general library name into a Context7-compatible library ID, and retrieve documentation for a library using a Context7-compatible library ID.
The 2 tools it gives your agent
Extracted from the project's README - what Context7 lets an agent do.
- resolve-library-id
- - Resolves a general library name into a Context7-compatible library ID.
- query-docs
- - Retrieves documentation for a library using a Context7-compatible library ID.
Limitations (from the README)
If you already know exactly which library you want to use, add its Context7 ID to your prompt. That way, Context7 can skip the library-matching step and directly retrieve docs. The slash syntax tells Context7 exactly which library to load docs for.
Latest releases
@upstash/[email protected] · 2026-08-21
Advertise Clerk as the OAuth authorization server so clients validate authorization responses against the issuer that Clerk returns.
@upstash/[email protected] · 2026-08-18
Add @upstash/context7-opencode, the official Context7 plugin for OpenCode. Installing it registers the hosted Context7 MCP server and the context7-mcp skill. Authentication defaults to OAuth and falls back to…
@upstash/[email protected] · 2026-08-11
Add a 60s AbortSignal.timeout() to both Context7 API calls in lib/api.ts. Without a signal a stalled backend call rides undici's ~300s default before failing. 60s is generous: these are vector queries with p99.9 ~3.2s…
In the wild · how people use Context7
Public posts that name a concrete use case. Linked source posts - not MCPhq reviews, ratings, or endorsements.
-
@Steve8708 · · Up-to-date library docs in the agent
“don't sleep on the context7 MCP server - free, no account needed, up to date information on hundreds of libraries and frameworks”
-
@sivalabs · · Spring AI / RAG scaffolding
“With Context7 MCP server configured, I am able to build a small Spring AI application with ChatMemory, Vector Store, RAG features”
-
@cline · · Version-specific docs in Cline
“The Context7 MCP server by @upstash, now in the Cline MCP Marketplace, fetches current, version-specific docs & code examples.”
04 · Who maintains Context7
Context7 is maintained by upstash. We track 3 MCP servers from upstash - 3 actively maintained, 61,229 combined GitHub stars, oldest repo from Dec 2024. Full record: all servers from upstash.
05 · Facts
- repository
- github.com/upstash/context7
- category
- documentation - ranked #1 of 183 actively-maintained documentation servers as of 2026-08-25.
- release cadence
- 10+ releases in the last 90 days (latest 2026-08-21)
- registry
- io.github.upstash/context7 (active, first published 2025-10-22 · 3 versions)
- packages
- npm:@upstash/context7-mcp
06 · Context7 FAQ
What is Context7?
Up-to-date code docs for any prompt. It runs locally over stdio via the published package.
Is Context7 still maintained?
Yes - as of 2026-08-25, its last commit was 2026-08-24 and it shipped 10+ releases in the last 90 days. We re-verify nightly.
How do I install Context7?
Run `npx -y @upstash/context7-mcp`. You can also paste the ready-made client config above.
Does Context7 run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Context7
Alternatives to Context7
Maintained documentation servers if Context7 isn't the fit.
- Agent Skills Search Server Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server. ★ 24,633 · 2026-08-09
- Repowise Codebase intelligence for AI coding agents - graph, git history, docs, decisions, code health. ★ 6,189 · 2026-08-24
- GitLab MCP GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more. ★ 1,918 · 2026-08-24
- Microsoft Learn MCP Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs. ★ 1,853 · 2026-08-12
- Pg Aiguide Comprehensive PostgreSQL documentation and best practices, including ecosystem tools ★ 1,821 · 2026-06-26
- IWE Markdown knowledge base as agent memory. Runs against the notes directory it is started in. ★ 1,571 · 2026-08-24
Pairs well with
Servers that cover what Context7 doesn't - only shown when the pairing reason fits the companion.
head to head · Context7 vs GitLab MCP · Repowise vs Context7 · Svelte MCP vs Context7
More documentation MCP servers · Pindoc · Vercel MCP · Inkwell · Agent Base · Outline MCP Server
More TypeScript MCP servers · Upstash MCP Server · Mdshare · Android (us-all) · Agent Email · Safe Docx · see all