Skip to content
Context7 MCP logo

Context7 MCP

Official Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.

Connect

  1. Copy the MCP config below.
  2. In Cursor, open Settings → MCP and add a new global server, or create .cursor/mcp.json in your project.
  3. Paste the JSON, save, and refresh MCP connections.
  4. If the server needs extra setup, follow the GitHub readme.

MCP config

Paste into Cursor (.cursor/mcp.json) or Claude Desktop

{
  "mcpServers": {
    "context7-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "github:upstash/context7-mcp"
      ]
    }
  }
}