Wraps the GDB command-line debugger to give Claude direct debugging capabilities through the Model Context Protocol. You can start GDB sessions, load executables or core dumps, set breakpoints, step through code execution, examine memory and registers, print variable values, and get call stack traces. Includes VS Code integration for source code viewing and supports both attaching to running processes and post-mortem debugging. Essentially turns Claude into a debugging assistant that can walk through your C/C++ programs, analyze crashes, and help troubleshoot issues by directly controlling GDB.
A Model Context Protocol (MCP) server that provides GDB debugging functionality for use with Claude or other AI assistants.
claude mcp add gdb -- npx -y mcp-gdb
Add the following to your Claude Desktop MCP configuration:
{
"mcpServers": {
"gdb": {
"command": "npx",
"args": ["-y", "mcp-gdb"]
}
}
}
git clone https://github.com/signal-slot/mcp-gdb.git
cd mcp-gdb
npm install
npm run build
Here are some examples of using the GDB MCP server through Claude:
Use gdb_start to start a new debugging session
Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start
Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session
Use gdb_continue to start execution
Use gdb_print to evaluate the expression "my_variable" in the current context
Use gdb_backtrace to see the current call stack
Use gdb_terminate to end the debugging session
gdb_start: Start a new GDB sessiongdb_load: Load a program into GDBgdb_command: Execute an arbitrary GDB commandgdb_terminate: Terminate a GDB sessiongdb_list_sessions: List all active GDB sessionsgdb_attach: Attach to a running processgdb_load_core: Load a core dump filegdb_set_breakpoint: Set a breakpointgdb_continue: Continue program executiongdb_step: Step program executiongdb_next: Step over function callsgdb_finish: Execute until the current function returnsgdb_backtrace: Show call stackgdb_print: Print value of expressiongdb_examine: Examine memorygdb_info_registers: Display registersgdb_list_source: List source code at current location or specified location with VS Code integrationMIT
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent