# MCP Debugger MCP server

> Enables AI agents to perform step-through debugging, set breakpoints, and inspect variables across ten programming languages using the Debug Adapter Protocol.

- Repository: https://github.com/debugmcp/mcp-debugger
- Page: https://hostedmcp.org/servers/debugmcp/mcp-debugger
- Transport: stdio
- Stars: 189
- License: MIT
- Latest version: 0.26.0

## Install

### Claude Code

```sh
claude mcp add mcp-debugger -- npx -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"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-debugger]
command = "npx"
args = ["-y", "@debugmcp/mcp-debugger"]
```

### Gemini CLI (`~/.gemini/settings.json`)

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

## Tools (29)

- `create_debug_session`
- `list_debug_sessions`
- `list_supported_languages`
- `set_breakpoint`
- `list_breakpoints`
- `remove_breakpoint`
- `clear_breakpoints`
- `start_debugging`
- `restart_debugging`
- `attach_to_process`
- `detach_from_process`
- `expose_session`
- `unexpose_session`
- `get_stack_trace`
- `list_threads`
- `get_scopes`
- `get_variables`
- `get_local_variables`
- `step_over`
- `step_into`
- `step_out`
- `continue_execution`
- `wait_for_stop`
- `pause_execution`
- `evaluate_expression`
- `get_source_context`
- `get_output`
- `close_debug_session`
- `hot_reload`

## FAQ

### Does it require an IDE to work?

No, it is a headless debugger that runs in environments where IDEs cannot go, such as CI runners, Docker containers, and Kubernetes pods.

### Which programming languages are supported?

It supports Python, JS/TS, Ruby, Rust, Go, Java, .NET, C/C++, COBOL, and Dart/Flutter.
