mcp-debugger
Lets your AI agent debug running programs: set breakpoints, step through code and inspect variables in ten languages.
186 stars on GitHubby debugmcpLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add debugger -- npx -y @debugmcp/mcp-debugger stdio
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Run my failing pytest and pause at the failing assert, then show me the local variables.
Set a breakpoint at the line total = sum(prices) and tell me the value of prices when it hits.
What it is
This server gives your AI agent a real debugger. It can start or attach to a program, pause at breakpoints, step through code and read variables, using the standard debug adapters for each language. It runs without an IDE, so it works in CI, containers and cloud sandboxes.
What it can do
set_breakpoint: set a breakpoint or a logpoint that does not pauselist_breakpoints,remove_breakpoint,clear_breakpoints: manage breakpointswait_for_stop: wait for the next stop instead of pollingget_output: read the program's outputrestart_debugging: relaunch with the same setuphot_reload: reload changed code in Java and Flutterexpose_session: let a person's IDE watch the session read-onlylist_supported_languages: show what is available
When to use
- βΊWhen a test fails and you want the agent to pause at the failing line and look at real values
- βΊWhen a program crashes and you want the stack and local variables at the moment of the error
- βΊWhen you need to debug a service in a container or a Kubernetes pod without an IDE
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
node-inspect-debuggerHelps your agent debug Node.js programs step by step, using breakpoints, memory snapshots, and CPU profiles to find hidden problems.node-inspect-debuggerTeaches your agent to debug Node.js programs with real breakpoints, step-by-step running and value inspection, instead of only console.log.python-debugpyTeaches your agent to debug Python code with breakpoints, the pdb debugger and remote debugging for long-running programs.Frequently asked questions
Is it free and open source?
The readme shows an MIT licence. It is available through npm and Docker.
Which languages work?
Python, JavaScript/TypeScript, Ruby, Rust, Go, Java, .NET, C/C++, COBOL and Dart/Flutter. The registry text says ten languages.
Do I need an IDE?
No. It runs headless anywhere Node.js runs. An IDE is optional via the read-only mirror.
Does it hide secrets?
Yes. Credential-shaped values are masked by default in variables and output. Set DEBUG_MCP_NO_REDACT=1 to turn that off.
Which transports does it use?
Stdio and Streamable HTTP.
How do I check my setup?
Run npx @debugmcp/mcp-debugger doctor for a toolchain report per language.
If it does not work
- βΊRun npx @debugmcp/mcp-debugger doctor to see which language toolchains are missing.
- βΊIf you installed with --omit=optional, set CODELLDB_PATH so Rust and C/C++ debugging can find its engine.
- βΊUse absolute file paths for the program and source files, since the server validates paths.
5 new skills a week. 1 minute to read.