MCP DAP
MCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs.
What is MCP DAP?
MCP DAP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server to communicate with dap servers allowing ai agents the ability to debug live programs.
MCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server to communicate with DAP servers allowing AI Agent
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-dapConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP DAP
The MCP DAP Server bridges AI agents to DAP-compatible debuggers via the Debug Adapter Protocol, enabling conversational control of live debugging sessions across multiple programming languages. It exposes 13 tools that cover launching debug sessions from source or binary, setting line and function breakpoints, stepping through code, inspecting threads and stack frames, evaluating expressions, and attaching to running processes. Developers can ask an AI assistant to help locate bugs by having it set breakpoints, step through execution, and inspect variable state in real time.
Prerequisites
- Go 1.24.4 or later (to build the server from source)
- A DAP-compatible debugger for your target language (e.g., Delve for Go, lldb-dap for C/C++)
- The mcp-dap-server binary compiled and accessible on your PATH
- An MCP client such as Claude Desktop, Claude Code, or Gemini CLI
Clone and build the MCP DAP server
Clone the repository and compile the server binary using Go.
git clone https://github.com/go-delve/mcp-dap-server
cd mcp-dap-server
go build -o bin/mcp-dap-serverMove the binary to a location on your PATH
Place the compiled binary somewhere accessible so MCP clients can spawn it.
sudo mv bin/mcp-dap-server /usr/local/bin/mcp-dap-server
# Or add the bin directory to your PATHEnsure your language debugger is installed
The server delegates to a DAP-compatible debugger. For Go, install Delve. For other languages, ensure the appropriate DAP server is on your PATH.
# For Go debugging with Delve:
go install github.com/go-delve/delve/cmd/dlv@latestAdd the server to your MCP client configuration
Register mcp-dap-server in your Claude Desktop or other MCP client config. The server uses stdio transport.
{
"mcpServers": {
"dap-debugger": {
"command": "mcp-dap-server",
"args": [],
"env": {}
}
}
}Register with Claude Code (alternative)
If using Claude Code, add the server with the mcp add command pointing at the binary path.
claude mcp add mcp-dap-server /usr/local/bin/mcp-dap-serverRestart your MCP client and start a debug session
Restart Claude Desktop and ask the assistant to start debugging a specific Go file or binary. The server will launch the debugger and return the initial program state.
MCP DAP Examples
Client configuration
Claude Desktop JSON config for the MCP DAP server using the compiled binary.
{
"mcpServers": {
"dap-debugger": {
"command": "mcp-dap-server",
"args": [],
"env": {}
}
}
}Prompts to try
Example prompts that drive debugging sessions through the MCP DAP server.
- "Start debugging main.go in source mode, set a breakpoint at line 42, and run until it hits."
- "Show me the full stack trace and all local variables at the current breakpoint."
- "Step over the next line and tell me what changed in the variables."
- "Evaluate the expression 'user.ID * 2' in the current stack frame."
- "Attach to process ID 9876 and pause it so I can inspect its state."
- "Set a breakpoint on the function HandleRequest and continue execution."Troubleshooting MCP DAP
debug tool fails with 'no DAP server found' or connection refused
Ensure your language-specific debugger (e.g., dlv for Go) is installed and on PATH. The mcp-dap-server spawns the debugger process automatically, so both the mcp-dap-server binary and the debugger must be accessible.
Build fails with Go version errors
The server requires Go 1.24.4 or later. Check your version with 'go version'. Install or update Go from https://go.dev/dl/ if needed.
Breakpoints are set but the program never stops at them
Ensure the source file path passed to the debug tool matches the actual file location including any module path. For compiled binaries, ensure debug symbols are included (compile without -ldflags='-s -w'). Use stopOnEntry:true to confirm the debugger is attaching correctly.
Frequently Asked Questions about MCP DAP
What is MCP DAP?
MCP DAP is a Model Context Protocol (MCP) server that mcp server to communicate with dap servers allowing ai agents the ability to debug live programs. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP DAP?
Follow the installation instructions on the MCP DAP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP DAP?
MCP DAP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP DAP free to use?
Yes, MCP DAP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
MCP DAP Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP DAP? 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 MCP DAP 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 MCP DAP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.