DevelopmentVerifiedTypeScript

context7

Up-to-date code docs for any prompt. Fetch real-time documentation and code examples for any library directly in Claude, Cursor, Windsurf, VS Code, and 30+ MCP clients.

Free
N/A rating (0 reviews)0 installs51,430 GitHub stars

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Compatible with

Claude DesktopCursorWindsurfVS CodeChatGPT

One-Click Install

Install in CursorInstall in VS Code

Install

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "context7": {
      "args": [
        "-y",
        "@upstash/context7-mcp",
        "--api-key",
        "YOUR_API_KEY"
      ],
      "command": "npx"
    }
  }
}

Claude Code CLI

claude mcp add context7 --url https://mcp.context7.com/mcp --header "Authorization: Bearer YOUR_API_KEY"

Config File Location

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/claude/claude_desktop_config.json

Remote Endpoint

https://mcp.context7.com/mcp

Some servers require additional setup - check the GitHub README for specific instructions.