DAP MCP Server

v1.0.0Developer Toolsstable

An implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.

dapdebugdebug-adapter-protocoldebuggingllm
Share:
40
Stars
0
Downloads
0
Weekly
0/5

What is DAP MCP Server?

DAP MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to implementation of the model context protocol (mcp) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate sour...

An implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An implementation of the Model Context Protocol (MCP) that e

Use Cases

Debugger interaction
Breakpoint management
Expression evaluation
KashunCheng

Maintainer

LicenseAGPL 3.0
Languagepython
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y dap-mcp

Manual Installation

npx -y dap-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use DAP MCP Server

dap-mcp bridges the Debug Adapter Protocol (DAP) and the Model Context Protocol, allowing AI language models to act as interactive debuggers. It lets an LLM launch debug sessions, set and remove breakpoints, step through code, inspect variables, evaluate expressions in the current frame, and navigate source files — all through a structured MCP interface. It works with any DAP-compatible debugger, including debugpy for Python and lldb for C/C++/Swift, making AI-assisted debugging practical across multiple languages.

Prerequisites

  • Python 3.10 or higher installed
  • uv package manager recommended (or pip as an alternative)
  • A DAP-compatible debugger installed (e.g., debugpy for Python: pip install debugpy)
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install dap-mcp

Install the package via pip or use uvx to run it without a permanent install.

pip install dap-mcp
# Or run directly with uv:
# uvx dap-mcp@latest --config config.json
2

Create a debugger configuration file

Create a JSON configuration file that tells dap-mcp which debugger to use, where your source files live, and how to launch the target program.

{
  "type": "debugpy",
  "debuggerPath": "/usr/local/bin/python",
  "debuggerArgs": ["-m", "debugpy.adapter"],
  "sourceDirs": ["/path/to/your/project"],
  "module": "your_module",
  "python": ["/usr/local/bin/python"],
  "cwd": "/path/to/your/project"
}
3

Start the MCP server

Launch dap-mcp, pointing it at your configuration file.

python -m dap_mcp --config /path/to/config.json
4

Configure your MCP client

Add the dap-mcp server to your claude_desktop_config.json so Claude Desktop can connect to it.

5

Begin a debugging session

Once connected, ask Claude to launch the debug adapter, set breakpoints, and step through your code interactively.

DAP MCP Server Examples

Client configuration

Claude Desktop configuration for dap-mcp using debugpy. Adjust the config path to your actual config.json location.

{
  "mcpServers": {
    "dap": {
      "command": "python",
      "args": ["-m", "dap_mcp", "--config", "/path/to/debugpy-config.json"]
    }
  }
}

Prompts to try

Sample prompts that demonstrate the debugger control capabilities of dap-mcp.

- "Launch a debug session for my project and set a breakpoint at line 42 in main.py"
- "Step into the next function call and show me the local variables"
- "Evaluate the expression 'len(data)' in the current stack frame"
- "List all active breakpoints, then continue execution until the next one hits"

Troubleshooting DAP MCP Server

dap-mcp fails to connect to the debug adapter

Verify that debuggerPath points to a Python interpreter that has debugpy installed. Test the adapter independently: python -m debugpy.adapter --help

Python version error on startup

dap-mcp requires Python 3.10 or higher due to use of newer typing syntax. Run python --version to check, and use a virtual environment with 3.10+ if your system Python is older.

Source file not found during step-through

Ensure sourceDirs in your config.json lists the absolute path to your project root. Relative paths are not resolved correctly in all environments.

Frequently Asked Questions about DAP MCP Server

What is DAP MCP Server?

DAP MCP Server is a Model Context Protocol (MCP) server that implementation of the model context protocol (mcp) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install DAP MCP Server?

Install via npm with the command: npx -y dap-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with DAP MCP Server?

DAP MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is DAP MCP Server free to use?

Yes, DAP MCP Server is open source and available under the AGPL 3.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "dap": { "command": "npx", "args": ["-y", "dap-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use DAP MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides