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.

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.

  1. mcp-server Manage Upstash databases and resources through the Upstash Developer API. ★ 58

05 · Facts

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

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