Introduction
Claude Code MCP is an MCP server that runs the Claude Code CLI in single-execution mode from inside Cursor, Windsurf, Claude Desktop, and other tools. 1,200+ GitHub stars, MIT open source. It turns Claude Code into an "agent inside an agent" — your primary AI tool can delegate complex file edits, Git operations, and terminal commands to Claude Code, without interactive permission prompts.
Why Use Claude Code MCP?
- Complex file editing — Claude Code outperforms most editors on multi-file refactors
- Git operations — stage, commit, push without switching tools
- Terminal execution — run build, test, and deploy commands
- Context offload — delegate tasks to Claude Code to conserve your primary tool's context window
How It Works
- The primary AI tool encounters a complex task
- It calls the
claude_codeMCP tool with a prompt - Claude Code CLI executes the task with full filesystem permissions
- Results are returned to the primary AI tool