BACK TO MCP SERVERS
searchclaude-codecursorclinewindsurf

Context7 MCP Server

Injects up-to-date documentation and code examples from official sources directly into AI prompts.

What it does

Injects version-specific library documentation and official code snippets directly into your AI assistant prompt. Prevents agents from generating code with outdated or hallucinated APIs.

Maintained officially by Upstash.

Setup

npx -y @upstash/context7-mcp --api-key YOUR_API_KEY

For Cursor ~/.cursor/mcp.json:

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

What to watch out for

An API key from the Context7 dashboard is recommended for higher rate limits. Prompting with use context7 helps trigger document resolution reliably.

GitHub SourceGitHub Stars
Last verified 2026-07-25