MCP DAP

v1.0.0Developer Toolsstable

MCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs.

agentic-aiagentsaidapdebugging
Share:
85
Stars
0
Downloads
0
Weekly
0/5

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

Debug Adapter Protocol integration
Live program debugging through AI
Multi-language debugging support
go-delve

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-dap

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 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
1

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-server
2

Move 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 PATH
3

Ensure 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@latest
4

Add 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": {}
    }
  }
}
5

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-server
6

Restart 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.

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": { "mcp-dap": { "command": "npx", "args": ["-y", "mcp-dap"] } } }

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

Read the full setup guide →

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.

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