mcp_server_gdb
by pansila·★ 63·Score 41
MCP server that exposes GDB debugging capabilities to AI assistants through standardized tools.
Overview
This MCP server implements a GDB/MI protocol interface, allowing AI assistants to remotely control debugging sessions. It provides comprehensive debugging capabilities including session management, execution control, breakpoint handling, and inspection of stack frames, variables, registers, and memory contents. The server supports both stdio and SSE transport modes, making it flexible for different integration scenarios.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need program debugging capabilities through AI assistants, particularly for C/C++ applications, and prefer a native Rust implementation with concurrent session support.
When NOT to choose this
Avoid this if you need debugging capabilities for non-C/C++ languages, or if you require authentication mechanisms for secure multi-user environments, as none are currently documented.
Tools this server exposes
12 tools extracted from the READMEcreate_sessionCreate a new GDB debugging session
get_sessionGet specific session information
get_all_sessionsGet all sessions
close_sessionClose session
start_debuggingStart debugging
stop_debuggingStop debugging
continue_executionContinue execution
step_executionStep into next line
next_executionStep over next line
get_breakpointsGet breakpoint list
set_breakpointSet breakpoint
delete_breakpointDelete breakpoint
Comparable tools
Installation
Installation
**Pre-built Binaries:** Download from the releases page for your platform.
**Build from Source:**
cargo build --release
cargo run**Using Nix:**
# Run locally
nix run .
# Run from GitHub
nix run "git+https://github.com/pansila/mcp_server_gdb.git" -- --help**Claude Desktop Configuration:** Add to claude_desktop_config.json:
{
"mcpServers": {
"gdb": {
"command": "path/to/mcp-server-gdb",
"args": []
}
}
}FAQ
- What transport modes are supported?
- The server supports two transport modes: stdio (default) and SSE (Server-Sent Events) at http://127.0.0.1:8080 by default.
- Can I run multiple debugging sessions concurrently?
- Yes, the server supports concurrent multi-session debugging with tools to create, manage, and close multiple sessions independently.
Compare mcp_server_gdb with
Last updated · Auto-generated from public README + GitHub signals.