Context7Context7

Cursor · install guide

Install Context7 MCP in Cursor

In Cursor, add mcpServers.context7 with url https://mcp.context7.com/mcp. Restart Cursor. The JSON is on this page. API keys: context7.com/dashboard.

Cursor does not use claude mcp add. It reads a JSON file. This page is the remote HTTP setup, not the local npx process.

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}
Get API key

Add Context7 to Cursor

Put that JSON in ~/.cursor/mcp.json, or the Windows equivalent. You can also open Settings → Cursor Settings → MCP → Add new global MCP server and paste it there. Restart Cursor when the file is saved. Claude Code users should use the add command on /install instead. The remote URL is https://mcp.context7.com/mcp

  1. Open ~/.cursor/mcp.json (or Settings → MCP → Add new global MCP server).
  2. Add mcpServers.context7 with url https://mcp.context7.com/mcp.
  3. Restart Cursor.
  4. On a prompt that needs current docs, add use context7.

After it is connected

Ask for something version-sensitive and add use context7. If the server does not show up, you likely saved the JSON in the wrong file, or you still have a local npx context7 entry under the same name. One server named context7 is enough.

Optional API key

You can try Cursor without a key. For rate limits, create one at context7.com/dashboard and send it as an Authorization Bearer header on the same https://mcp.context7.com/mcp endpoint.