Skip to content
↑↓navigate↵openescclose
Claude+372Whisper+228LangChain+168Codex+223NotebookLM+276DALL-E 3+192DeepL+249n8n+208Topaz Video AI+153LlamaIndex+161
Context7 logo
#4 · of 445 · by weekly downloadsMCP server

Context7

Pulls current, version-matched library documentation into the model's context.

0
SaveVisit website ↗
Rank
#4
of 445 · by weekly downloads
Weekly downloads
453K
npm + PyPI, last 7 days

Add it to your client

Official
Install
npx -y @upstash/context7-mcp
mcpServers
{
  "mcpServers": {
    "context7-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}
Transport
both
Runtime
Node
Tools
2
License
MIT
Tools
resolve-library-idquery-docs

A model writes code against the API it saw in training, which can be several releases behind the library you have installed. Context7 fetches current documentation and code examples for the library you name and adds them to the prompt. Mention a version ("How do I set up Next.js 14 middleware? use context7") and it picks docs for that version. Writing "use context7" in a prompt, or adding a rule to CLAUDE.md or Cursor rules, tells the agent to call it.

Setup

  • Hosted: https://mcp.context7.com/mcp with an Authorization: Bearer YOUR_API_KEY header. OAuth clients can use /mcp/oauth instead.
  • Local stdio: npx -y @upstash/context7-mcp --api-key YOUR_API_KEY.
  • npx ctx7 setup signs in with OAuth, creates a key and configures Cursor, Claude Code or opencode.

The README recommends a free key from context7.com/dashboard for higher rate limits.

What it exposes

  • resolve-library-id turns a library name and your question into a Context7 ID such as /vercel/next.js.
  • query-docs returns documentation for that ID that matches your question.

If you know the ID, put it in the prompt (use library /supabase/supabase) and the lookup step is skipped.

Limits

  • Library entries are community-contributed; Upstash does not guarantee their accuracy, completeness or security.
  • The API backend, parser and crawler are private, so the local server still depends on Context7's service.

Most useful with fast-moving frameworks, where your installed version and the model's memory disagree.

Comments(0)

Sign in to comment

No comments yet — be the first.

Similar MCP servers

Report this comment

Why are you reporting this?