Cursor Delegate — Claude Code MCP server: what it does, install
This MCP server hands implementation work to Cursor CLI and returns a structured result for review. It fits multi-file changes and codebase questions.
claude mcp add cursor-delegate-mcp -- npx -y cursor-delegate-mcpWhat Cursor Delegate does
Cursor Delegate connects an MCP client to Cursor CLI. The calling agent prepares the brief, while cursor-agent carries out the implementation and returns the outcome, plan, changed files, and session ID. With plan, you can inspect a proposed approach before implementation; ask handles questions about the codebase.
It uses plain stdio and can be connected to Claude Code, Codex, Cursor, Gemini CLI, and other listed clients. A doctor tool checks the setup. If Cursor needs clarification, the current turn ends with a question that the agent can answer before resuming. Node.js 20+ and a logged-in Cursor CLI are required, using cursor-agent login; without them, the setup cannot complete.
What it helps with
- delegate multi-file edits to Cursor CLI
- review a plan before code changes
- return changed files with the final result
- ask questions about a codebase
- diagnose an MCP setup
Example prompts for the agent
- Delegate this task to Cursor: migrate
src/apifrom callbacks to async/await, update the tests, and explain the resulting diff. - Create a plan for changing
src/api, wait for my approval, then implement it in the same session. - Ask Cursor where API errors are handled in this project, and check the server setup.
How to install Cursor Delegate
Platform CLI
claude mcp add cursor-delegate-mcp -- npx -y cursor-delegate-mcpPlatform CLI
codex mcp add cursor-delegate -- npx -y cursor-delegate-mcpConfig file
{
"mcpServers": {
"cursor-delegate": {
"command": "npx",
"args": [
"-y",
"cursor-delegate-mcp"
]
}
}
}Config file
{
"servers": {
"cursor-delegate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cursor-delegate-mcp"
]
}
}
}Platform CLI
gemini mcp add cursor-delegate npx -y cursor-delegate-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Cursor Delegate
How do I install Cursor Delegate in Claude Code?
Run these commands in order: claude mcp add cursor-delegate-mcp -- npx -y cursor-delegate-mcp, then claude mcp add cursor-delegate -- npx -y cursor-delegate-mcp.
What does Cursor Delegate do?
It sends an implementation brief to Cursor CLI and returns a structured result with the plan, changed files, final response, and session ID. It also supports plan and ask modes.
What is required to run Cursor Delegate?
You need Node.js 20+ and an authenticated Cursor CLI session. Log in with cursor-agent login; the MCP server communicates over stdio.