Sponsored by Deepsite.site

dbgmcp

Created By
ramenhost7 months ago
MCP servers for connecting debuggers to AI agents. Supports GDB, LLDB and PDB.
Content

GitHub release (latest by date) Follow @ramenhost

dbgmcp

A collection of MCP servers to connect various debuggers to LLM agents using Model Context Protocol. Supported debuggers include:

  • GDB (GNU Debugger)
  • LLDB (LLVM Debugger)
  • PDB (Python Debugger)

https://github.com/user-attachments/assets/fa745e69-2bd9-482c-b5f1-59b42e458760

Features

  • Separate servers for each debugger. Enable or disable them as needed.
  • Load programs into the debugger.
  • Execute arbitrary commands in the debugger.
  • Supports multiple simultaneous connections.

CAUTION

AI agents can execute arbitrary commands inside debuggers, including shell commands. Use at your own risk.

Installation

Simple way is to pick a pre-built binary for your platform from the releases page. Currently, pre-built binaries are available for the following platforms:

  • Linux x86_64 (x86_64-unknown-linux-musl)

The binaries are named according to the debugger they support:

  • gdb-mcp
  • lldb-mcp
  • pdb-mcp.

If pre-built binaries are not available for your platform, you can build the project from source.

Building from source

Requires Rust and Cargo to be installed. You can install them using rustup.

git clone https://github.com/ramenhost/dbgmcp
cd dbgmcp

cargo build --release

This will create MCP server binaries in target/release/ folder.

Usage

Claude Desktop

  1. Open the Claude desktop settings. Click on “Developer” in the left-hand bar of the settings pane, and then click on “Edit Config”. The will create a claude_desktop_config.json file and display it in filesystem.
  2. Add required MCP servers to the claude_desktop_config.json. Below configuration includes all debuggers in Claude (GDB, LLDB and PDB). You can include only the servers you need.
{
  "mcpServers": {
    "gdb": {
      "command": "/path/to/gdb-mcp",
      "args": []
    },
    "lldb": {
      "command": "/path/to/lldb-mcp",
      "args": []
    },
    "pdb": {
      "command": "/path/to/pdb-mcp",
      "args": []
    }
  }
}
  1. Restart Claude or refresh the page.

For more details, see Claude docs.

VS Code Github Copilot

  1. Enable MCP support in VS Code settings. To enable MCP support in VS Code, enable the chat.mcp.enabled setting.
  2. Create a .vscode/mcp.json file in your workspace.
  3. Add required MCP servers to the mcp.json file. Below configuration includes all debuggers in VS Code (GDB, LLDB and PDB). You can include only the servers you need.
{
    "servers": {
        "gdb": {
            "type": "stdio",
            "command": "/path/to/gdb-mcp",
            "args": []
        },
        "lldb": {
            "type": "stdio",
            "command": "/path/to/lldb-mcp",
            "args": []
        },
        "pdb": {
            "type": "stdio",
            "command": "/path/to/pdb-mcp",
            "args": []
        }
    }
}
  1. Restart VS Code or reload the window.
  2. Now, the debugger tools are avilable in Agent mode of Github Copilot chat.

For more details, see VS Code docs.

Credits

  • GDB functionality is rust rewrite of mcp-gdb
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server