dbgmcp
ramenhost/dbgmcp · 10 stars · Rust · MIT
MCP server MCP servers for connecting debuggers to AI agents. Supports GDB, LLDB and PDB.
Install
The repo has no one-line install. Follow its README.
Files
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)
dbgmcp-demo.mp4
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
- 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.jsonfile and display it in filesystem. - 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": []
}
}
}
- Restart Claude or refresh the page.
For more details, see Claude docs.
VS Code Github Copilot
- Enable MCP support in VS Code settings. To enable MCP support in VS Code, enable the
chat.mcp.enabledsetting. - Create a
.vscode/mcp.jsonfile in your workspace. - Add required MCP servers to the
mcp.jsonfile. 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": []
}
}
}
- Restart VS Code or reload the window.
- 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
Facts
- Kind
- MCP server
- Repo
- ramenhost/dbgmcp
- Group
- Uncategorized
- Stars
- 10
- License
- MIT
- Language
- Rust
- Last push
- 2025-05-07
- Forks
- 1
- Topics
- model-context-protocol-servers, gdb, lldb, mcp-server, pdb
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k