drio
Open app

dap-mcp

Source

Model Context Protocol (MCP) server that interacts with a Debugger

Catalog onlyCatalog onlySTDIO

Overview

The dap-mcp is an implementation of the Model Context Protocol (MCP) designed to manage Debug Adapter Protocol (DAP) sessions, optimizing the context window of large language models to enhance debugging workflows.

To use dap-mcp, install it via pip and run the server with a JSON configuration file specifying debugger settings and source directories. Example command: pip install dap-mcp followed by python -m dap_mcp --config config.json.

  • Integration with Debug Adapter Protocol for standardized debugging. - Utilization of MCP to optimize context for debugging. - Tools for setting, listing, and removing breakpoints, controlling execution, evaluating expressions, and viewing source code. - Customizable settings through a JSON configuration file.
  1. Streamlining debugging processes in software development.
  2. Enhancing the debugging experience for large language models.
  3. Facilitating the integration of various DAP servers through configuration.

Add to your AI client

Use these steps to connect dap-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "dap-mcp-kashuncheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "dap-mcp-kashuncheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "dap-mcp-kashuncheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "dap-mcp-kashuncheng": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "dap-mcp-kashuncheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "dap-mcp-kashuncheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dap-mcp-kashuncheng"
      ]
    }
  }
}

FAQ

What programming languages does dap-mcp support?

dap-mcp is primarily designed for Python debugging but can be extended to support other languages through additional configurations.

Is dap-mcp open source?

Yes, dap-mcp is open source and contributions are welcome.

How can I contribute to dap-mcp?

You can contribute by forking the repository, creating a new branch, writing tests, and submitting a pull request.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2868,"uuid":"83bd3027-2d6f-483f-9afb-358b521372a1","name":"dap_mcp","title":"dap-mcp","description":"Model Context Protocol (MCP) server that interacts with a Debugger","avatar_url":"https://avatars.githubusercontent.com/u/125161677?v=4","created_at":"2025-03-15T13:56:00.778+00:00","updated_at":"2025-03-15T14:14:00.727+00:00","status":"created","author_name":"KashunCheng","author_avatar_url":"https://avatars.githubusercontent.com/u/125161677?v=4","tags":"debugging,mcp,debug,dap,debug-adapter-protocol,llm,model-context-protocol","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/KashunCheng/dap_mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"2\",\"license\":\"AGPL-3.0 license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-01 09:00:38\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]