← Back to directory
M

MCP Debugger

Community
Debug running programs with AI agents over MCP.
Category
Dev Tools #155 of 751
Stars
★ 198 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 22+
Credentials
No credential needed
License
MIT
Last commit
Tools
29
57FMRS · C

The source describes a headless, multi-language debugging server exposed over MCP, with 29 listed tools and stdio and Streamable HTTP transports. The project is stewarded by Sycamore LLC; the source does not establish that it is maintained by the MCP protocol owner. Language capabilities depend on the relevant debugger and toolchain.

Strongest · Documentation 14/20 Weakest · Reliability 9/20

Reliability
9/20
Security and permissions
10/20
Maintenance
12/20
Documentation
14/20
Setup experience
12/20
Why each score
Reliability 9/20
The material lists stdio and Streamable HTTP transports, 29 tools, versioned packages, and multiple debugger adapters, and claims comprehensive tests and CI. It does not include workflow files, test files, or verifiable evidence of the handshake and tool behavior. Multiple language toolchains and runtime modes expand the failure surface, so the happy path appears plausible but cannot support a higher score.
Security and permissions 10/20
The documentation describes default secret masking, path validation, loopback-only HTTP binding with Host/Origin checks, and options to disable masking or broaden binding. The server can also launch processes, attach to debug processes, and inspect runtime state through expression evaluation; sessions on a shared HTTP instance are accessible to clients holding their IDs, and attaching to a Node process by PID may leave an unauthenticated inspector port open. The material does not show confirmation controls or implementation-level data boundaries, so there are meaningful permission and exposure risks, though no stated red line is established.
Maintenance 12/20
The material identifies an MIT license, version 0.27.0, maintainers and an organization, a vulnerability reporting channel, a roadmap, and supply-chain maintenance claims. Repository metadata says the project is not archived, but also lists 148 open issues. No commit history, release cadence, or issue response record is available to verify, so maintenance merits a moderate score.
Documentation 14/20
The README provides installation examples for multiple clients, a tool list, language prerequisites, HTTP security configuration, Docker limitations, and links to language guides and troubleshooting. It also discloses several known costs and limitations. The linked documents and complete tool parameter and response specifications are not included here, and some capability descriptions are complex, so the documentation is useful but its completeness cannot be confirmed.
Setup experience 12/20
The material gives concrete npx, npm, Docker, and client configuration examples, along with the Node.js 22+ requirement and language toolchain prerequisites. Different languages, platforms, and container modes add dependencies or limitations, while remote HTTP setup requires understanding binding and host checks. The setup score remains within the static calibration cap because verifiable CI and committed test evidence were not provided.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • AI agent workflows that need debugging through structured MCP tools.
  • Developers who can provide the target source, runtime, and required debugging tools.
  • Teams debugging from terminals, containers, or remote environments.

Not for

  • Users who need a graphical IDE as their primary debugging interface.
  • Environments that cannot provide the target process, source, or required language debugging dependencies.
  • Users expecting identical capabilities across every language and deployment mode.

Required permissions

  • When starting a debug session, the server may need access to project files and permission to launch the target program.
  • Attaching requires access to the target process or its debugging port; native code can be attached to by process ID.
  • Docker use requires mounting the host workspace at /workspace in the container.
  • HTTP mode accepts debugger tool requests; it binds to 127.0.0.1 by default, and a non-loopback bind should have an appropriate access boundary.

Risks and side effects

  • Debugging tools can start programs, pause processes, and inspect runtime variables; attaching to a production service may affect its operation.
  • The README says credential-shaped values in variables, expressions, and output are redacted by default, but this does not establish that every sensitive value will be detected.
  • The README notes that logpoints can slow some programs; after attaching to a Node.js process by PID, the inspector port may remain open after detaching.
  • Clients of one HTTP server process share its debug sessions; a client holding a session ID can access that session.

Setup

Before you start

Runtime:Node.js 22+

Other optional settings (8)
MCP_DEBUG_SESSION_IDLE_MS optional Sets the idle timeout in milliseconds for debug-session trees; disabled by default.
DEBUG_MCP_NO_REDACT optional Set to `1` to disable the default masking of secrets in variable, expression, and output results.
CODELLDB_PATH optional Sets the path to a CodeLLDB binary, for example when optional dependencies are omitted.
MCP_HTTP_BIND optional Sets the address used by the Streamable HTTP server to listen.
MCP_HTTP_ALLOWED_HOSTS optional Sets a comma-separated list of allowed HTTP host names.
MCP_HTTP_STREAM_LOST_SESSION_MS optional Configures when MCP sessions with lost streams are reaped.
MCP_HTTP_STALE_SESSION_MS optional Configures when stale MCP sessions are reaped.
SKIP_ADAPTER_VENDOR optional Set to `true` to skip downloading debug adapters during dependency installation.

Add a stdio server to your MCP client configuration with command npx and arguments -y, @debugmcp/mcp-debugger, stdio. The server requires Node.js 22 or later. The language being debugged may also require its own runtime, debugger, or toolchain; availability varies by language and mode. A Docker image is also available; mount the project workspace as described by the project.

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

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

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

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mcp-debugger]
command = "npx"
args = ["-y", "@debugmcp/mcp-debugger", "stdio"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mcp-debugger -- npx -y @debugmcp/mcp-debugger stdio

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that `create_debug_session` and `list_supported_languages` appear in your MCP client's tool list, then call `list_supported_languages` to see which debug languages are available.

Troubleshooting

  1. Confirm the server environment has Node.js 22 or later.
  2. Check that the target language's runtime, debugger, and toolchain are installed; use list_supported_languages to see mode availability and reasons.
  3. Verify the script path, workspace mount, and source path mapping.
  4. The stdio client configuration must include the stdio argument; for HTTP, check the port, bind address, and allowed Host list.
  5. If the program will not start or a breakpoint does not trigger, check the language guide and adapter requirements.

Things to try

Once connected, you can ask your AI assistant things like:

  • Create a Python debug session and run the project's tests, pausing if a test fails.
  • Show me the stack trace and local variables for the current debug session.
  • Set a breakpoint in the program, continue execution, and inspect the output when it pauses.

Tools 29

create_debug_session writes
Create a debugging session.
list_debug_sessions read-only
List active debugging sessions.
list_supported_languages read-only
Show available language adapters and their supported modes.
set_breakpoint writes
Set a breakpoint in a file.
list_breakpoints read-only
List a session's breakpoints and their verification state.
remove_breakpoint writes
Remove a breakpoint by ID or by file and line.
clear_breakpoints writes
Clear all breakpoints or those in a specified file.
start_debugging writes
Start debugging a program or test.
Show 21 more tools
restart_debugging writes
Relaunch debugging with the same configuration and reapply breakpoints.
attach_to_process writes
Attach the debugger to a running process.
detach_from_process writes
Detach the debugger from a process.
expose_session writes
Open a read-only DAP mirror endpoint for an IDE to inspect the session.
unexpose_session writes
Close the mirror endpoint and disconnect IDE clients.
get_stack_trace read-only
Get the current stack trace.
list_threads read-only
List threads in the debugging session.
get_scopes read-only
Get variable scopes for a stack frame.
get_variables read-only
Get variables in a scope.
get_local_variables read-only
Get local variables in the current frame.
step_over writes
Step over the current line.
step_into writes
Step into a function.
step_out writes
Step out of the current function.
continue_execution writes
Continue program execution.
wait_for_stop read-only
Wait until the session pauses or ends.
pause_execution writes
Pause running execution.
evaluate_expression writes
Evaluate an expression in the debugging context.
get_source_context read-only
Get source code context.
get_output read-only
Read captured standard output and standard error.
close_debug_session destructive
Close a debugging session.
hot_reload writes
Apply code changes to a running program while preserving its state; support depends on the language and runtime.

Use cases

Use breakpoints and stepping to help an AI agent locate program defects.
Inspect stacks, variables, and output from a running process.
Debug without an IDE in CI, containers, or Kubernetes environments.
Hot reload code or restart a debugging session for supported programs.

Supported clients

Claude DesktopPartial support
CodexPartial support
Claude CodePartial support
pi coding agentPartial support

Listed from the project's documentation, not tested by this site.

Overview

MCP Debugger is a headless debugging server that exposes breakpoints, stepping, variable inspection, and expression evaluation as structured tools. It drives language debuggers through the Debug Adapter Protocol and supports Python, Ruby, JavaScript/TypeScript, Rust, Go, Java, .NET, C/C++, COBOL, and Dart/Flutter. It offers stdio and Streamable HTTP transports and can launch programs or attach to running processes.

Similar servers

Source revision 349823971b17 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-debugger.svg)](https://followmcp.com/en/servers/mcp-debugger)