DAP MCP Server
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.
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
Maintainer
Works with
Installation
NPM
npx -y dap-mcpManual Installation
npx -y dap-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.jsonCreate 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"
}Start the MCP server
Launch dap-mcp, pointing it at your configuration file.
python -m dap_mcp --config /path/to/config.jsonConfigure your MCP client
Add the dap-mcp server to your claude_desktop_config.json so Claude Desktop can connect to it.
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.
DAP MCP Server Alternatives — Similar Developer Tools Servers
Looking for alternatives to DAP MCP Server? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up DAP MCP Server in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.