cursor-mcp
v1.2.3Cursor's agent (cursor-agent CLI) through MCP: any model your plan offers, resumable sessions.
Values you need
| Variable | What it is | |
|---|---|---|
CURSOR_MAX_CONCURRENCY | optional | Maximum concurrent cursor-agent processes: a positive integer; anything else is the default 3. |
CURSOR_ALLOW_YOLO | optional | 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_SANDBOX | optional | `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_MS | optional | 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.3Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: cursor_agent, cursor_reply, cursor_models, cursor_sessions, cursor_health.
- 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