Skip to main content
Glama
MCP Debugger
by darknoon

MCP Debugger

Image demonstrating the debugger

An Model Context Protocol (MCP) server that provides debugging capabilities for Python, C, C++, Rust, Swift, and more through the Debug Adapter Protocol (DAP).

  • Get breakpoints, step-by-step evaluation, and segfault stack traces.

  • Read program stdout/stderr in pages (lines: 0-100, etc...) without flooding the context window.

  • Programs run async, debug multiple applications at once.

Installation

Cursor:

Install MCP Server

Claude Code:

claude mcp add --transport stdio Debugger -- npx -y mcp-debugger-dap@latest

Manual configuration:

"Debugger": {
  "command": "npx",
  "args": ["-y", "mcp-debugger-dap@latest"]
}

Related MCP server: MCP Debugger

Supported debuggers

mcp-debugger-dap supports either Python (debugpy) or LLDB supported languages (tested: C, C++, Rust, Swift). Probably more such as Objective-C, Zig, etc... are supported through LLDB.

Python (debugpy)

Python 3 and pip must be installed.

The debugpy wheel is automatically downloaded to ~/.mcp-debugger.

LLDB

LLDB support requires a recent binary of lldb-dap.

For macOS users: On macOS Sequoia+ I confirmed tested, before this YMMV, comes included with XCode Command Line Tools.

For Linux users: I recommend the Helix editor guide to installing lldb-dap.

Demo

The demo/ directory contains example scripts demonstrating race conditions and other bugs that can be debugged using this MCP server.

cd demo
# Use Claude Code or another MCP client to debug:
# "Let's use the debugger to find the race condition in order_processor.py"

References

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform interactive Python debugging with breakpoints, step execution, and variable inspection using the Debug Adapter Protocol (DAP) through an MCP server interface.
      8
      1
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI agents to perform step-through debugging of Python, JavaScript/Node.js, and Rust programs using the Debug Adapter Protocol, with support for breakpoints, variable inspection, and stack traces.
      29
      188
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables debugging of Python, JavaScript/TypeScript, Go, and Rust code using real debuggers with breakpoints, stepping, variable inspection, and stack trace navigation through the Debug Adapter Protocol.
      21
      18 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to debug JavaScript and TypeScript applications by connecting to Chrome DevTools Protocol-compatible debuggers, allowing them to set breakpoints, step through code, inspect variables, and evaluate expressions with full source map support.
      18
      10 npm
      2
      Apache 2.0