MCP Catalogs
Home

mcp_server_gdb

by pansila·63·Score 41

MCP server that exposes GDB debugging capabilities to AI assistants through standardized tools.

developer-toolsops-infraai-llm
15
Forks
4
Open issues
8 mo ago
Last commit
2d ago
Indexed

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:

you:AI-assisted debugging of applications with natural language commands
you:Automated regression testing through programmatic control of debugging sessions
you:Remote debugging setup with AI providing guidance on complex debugging scenarios
you:What transport modes are supported?
you:Can I run multiple debugging sessions concurrently?

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 README
  • create_session

    Create a new GDB debugging session

  • get_session

    Get specific session information

  • get_all_sessions

    Get all sessions

  • close_session

    Close session

  • start_debugging

    Start debugging

  • stop_debugging

    Stop debugging

  • continue_execution

    Continue execution

  • step_execution

    Step into next line

  • next_execution

    Step over next line

  • get_breakpoints

    Get breakpoint list

  • set_breakpoint

    Set breakpoint

  • delete_breakpoint

    Delete breakpoint

Comparable tools

debugpy-mcplldb-mcpgdb-wrappervisual-studio-code-debugger

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.