mcp-dap

mcp-dap

A Model Context Protocol server that bridges MCP and the Debug Adapter Protocol, enabling AI coding agents to launch and control debug sessions, set breakpoints, step through code, and inspect variables.

Category
Visit Server

README

mcp-dap

MCP-DAP bridge for enabling code agents to debug processes via the Debug Adapter Protocol (DAP).

Overview

This package provides an MCP (Model Context Protocol) server that exposes debugging capabilities through DAP. It allows AI coding agents to:

  • Launch and attach to debug sessions
  • Set breakpoints and step through code
  • Inspect variables and evaluate expressions
  • Control execution flow (continue, step over, step into, step out)

Installation

pip install mcp-dap

Run with uvx

Run directly from this repo:

uvx --from . mcp-dap

Run directly from GitHub:

uvx --from git+https://github.com/ztripez/mcp-dap mcp-dap

For MCP client config, point the server command at uvx:

{
  "mcpServers": {
    "dap": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/ztripez/mcp-dap", "mcp-dap"]
    }
  }
}

Debug adapters

mcp-dap is the MCP bridge; language DAP servers are separate runtime tools.

  • Python (debugpy): included as a Python dependency.
  • Rust/C/C++ (codelldb): install CodeLLDB (vadimcn.vscode-lldb) or codelldb on PATH.
  • JavaScript/TypeScript (jsdebug): install Node.js and js-debug-dap (or have VS Code js-debug).
  • Java (javadebug): install JDK + VS Code Java Debug extension (vscjava.vscode-java-debug).
  • Go (godlv): install Delve (go install github.com/go-delve/delve/cmd/dlv@latest).

You can configure adapter paths with environment variables or mcp-dap.toml.

Rust evaluate tip (CodeLLDB)

When using the Rust adapter (rust/codelldb), expression evaluation in repl context is handled by LLDB's command console.

  • Prefix expressions with ? to evaluate as Rust expressions.
  • Example: ? cli.steps
  • Example: ? cli

Without the ? prefix, LLDB may interpret input as a debugger command and return errors like 'cli' is not a valid command.

If local variables appear empty at a breakpoint, set the breakpoint one or two lines after variable initialization and try again.

Example:

[adapters.codelldb]
enabled = true
codelldb_path = "/path/to/codelldb"

[adapters.jsdebug]
enabled = true
node_path = "/usr/bin/node"
jsdebug_path = "/home/user/.local/share/mcp-dap/js-debug/src/dapDebugServer.js"

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run linting
ruff check .
ruff format --check .

# Run type checking
mypy src

Usage

Configure in your MCP client:

{
  "mcpServers": {
    "dap": {
      "command": "mcp-dap"
    }
  }
}

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured