cursor-mcp

v1.2.3
io.github.qmediat/cursor-mcp Checked 1 hour ago Published 16 days ago

Cursor's agent (cursor-agent CLI) through MCP: any model your plan offers, resumable sessions.

Values you need

VariableWhat it is
CURSOR_MAX_CONCURRENCYoptional Maximum concurrent cursor-agent processes: a positive integer; anything else is the default 3.
CURSOR_ALLOW_YOLOoptional Set to `true` to run cursor-agent with --force (auto-approve every tool call) in cursor_agent and cursor_reply. DANGEROUS — trusted environments only. Never exposed as a tool parameter.
CURSOR_SANDBOXoptional `enabled` or `disabled`, passed to cursor-agent as --sandbox <mode>: confines what an auto-approved agent may run. Unset leaves the CLI's default; any other value ends the server at startup.
CURSOR_KILL_GRACE_MSoptional After SIGTERM (timeout or cancellation), a child still alive this long is sent SIGKILL. A positive integer of milliseconds; default 5000.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add cursor-mcp -- npx -y @qmediat.io/cursor-mcp@1.2.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "cursor-mcp": {
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp@1.2.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "cursor-mcp": {
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp@1.2.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "cursor-mcp": {
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp@1.2.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.cursor-mcp]
command = "npx"
args = ["-y", "@qmediat.io/cursor-mcp@1.2.3"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: cursor_agent, cursor_reply, cursor_models, cursor_sessions, cursor_health.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json