Cursor MCP Setup

Cursor supports MCP servers via the same mcpServers JSON format as Claude Desktop. This guide walks you through adding servers to Cursor.

Config file location

  • macOS/Linux: ~/.cursor/mcp.json
  • Windows: %USERPROFILE%\.cursor\mcp.json

Config format

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/you/projects"
      ]
    }
  }
}

Setup steps

  1. Open or create the config file at the path above.
  2. Add your servers inside the mcpServers object.
  3. Save and restart Cursor.
  4. Check the MCP panel in Cursor's sidebar to confirm servers appear.

Generate your Cursor config

Use the builder and select "Cursor" as the target app.

Open Config Builder →