# mcp-debugger

> mcp-debugger is an MCP server for developer tools. Headless debugger for AI agents: breakpoints, stepping and live variables in CI and pods. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, Linux, macOS, Windows
- **Website:** https://debugmcp.io
- **Repository:** https://github.com/debugmcp/mcp-debugger
- **MCP Registry name:** io.github.debugmcp/mcp-debugger
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-14

## About

mcp-debugger turns real debuggers into structured tool calls so an agent can pause a running program and look at its state without an IDE. It speaks the Debug Adapter Protocol, using debugpy for Python, js-debug for JavaScript and TypeScript, rdbg for Ruby, CodeLLDB for Rust and C/C++, Delve for Go, netcoredbg for .NET, a JDI bridge for Java, and GnuCOBOL with CodeLLDB for COBOL. The README also describes Dart and Flutter support from version 0.26.0.

Breakpoints can be addressed by statement text, function name or line with an expected-content check, so they survive the agent's own edits. Logpoints record a value without pausing. Remote attach covers pods through port-forward and a kubectl debug ephemeral sidecar, and a GitHub Action example debugs failing tests in CI.

A doctor command prints which language toolchains are installed. Secret redaction is on by default, and the README contrasts the design with Microsoft's VS Code-bound DebugMCP.

## Features

- **Many language engines:** Drives each language's own debugger through DAP.
- **Content-addressed breakpoints:** Target a statement or function so edits do not break them.
- **Remote attach:** Attach to Kubernetes pods or by PID with an ephemeral sidecar.
- **Logpoints:** Log values without pausing the process.
- **Stop snapshots:** Each stop reports the exception, top frames and locals.
- **Secret redaction:** Variable and output masking is on by default.

## Good for

- Let an agent find the root cause of a failing CI test
- Inspect a misbehaving Kubernetes pod without redeploying
- Step through Python or Go code from a cloud coding agent
- Watch a value in a running service via logpoints

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-debugger -- npx -y @debugmcp/mcp-debugger
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@debugmcp/mcp-debugger"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@debugmcp/mcp-debugger"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-debugger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@debugmcp/mcp-debugger"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@debugmcp/mcp-debugger"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@debugmcp/mcp-debugger"
      ]
    }
  }
}
```

## Tools

- `create_debug_session`: Start a debug session for a given language.
- `attach_to_process`: Attach to a running process, for example by port.
- `set_breakpoint`: Set a breakpoint by file, line, statement or function.
- `get_local_variables`: Read local variables at the current stop.
- `evaluate_expression`: Evaluate an expression in the paused frame.
- `continue_execution`: Resume a paused program.
- `wait_for_stop`: Block until the next stop instead of polling.
- `expose_session`: Mirror the agent's session into an IDE read-only.

## FAQ

### Does mcp-debugger need an IDE?

No. It runs as a standalone Node process on CI runners, containers, pods and SSH boxes.

### How is mcp-debugger installed?

Through npx or npm, a Docker image, or a PyPI launcher.

### Which transports does mcp-debugger support?

stdio and Streamable HTTP.

### How is mcp-debugger different from DebugMCP?

The README says DebugMCP needs a running VS Code, while mcp-debugger runs headless.

### How do I add mcp-debugger to Claude Code?

Run this command in your terminal: claude mcp add mcp-debugger -- npx -y @debugmcp/mcp-debugger

### What are the best alternatives to mcp-debugger?

The closest alternatives to mcp-debugger are Chrome DevTools MCP, Chrome DevTools MCP, Flutter MCP Toolkit, MobileBuildMCP and droidprobe.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Flutter MCP Toolkit](https://ai-powered.com/mcp/flutter-mcp-toolkit): Flutter MCP Toolkit is an open-source MCP server for developer tools.
- [MobileBuildMCP](https://ai-powered.com/mcp/mobilebuildmcp): MobileBuildMCP is an open-source MCP server for developer tools.
- [droidprobe](https://ai-powered.com/mcp/droidprobe): droidprobe is an open-source MCP server for developer tools.
- [Windbg MCP](https://ai-powered.com/mcp/windbg-mcp): Windbg MCP is an open-source MCP server for developer tools.
- [jadx-ai-mcp](https://ai-powered.com/mcp/jadx-ai-mcp): jadx-ai-mcp is an open-source MCP server for developer tools.
- [Next Devtools MCP](https://ai-powered.com/mcp/next-devtools-mcp): Next Devtools MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-debugger-2
