Back to MCP Servers
MCP GDB Server

MCP GDB Server

Public
signal-slot/mcp-gdb

Provides GDB debugging functionality via Model Context Protocol, enabling AI assistants to start sessions, load programs, set breakpoints, step through code, inspect memory, view call stacks, and execute arbitrary GDB commands efficiently.

javascript
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with MCP GDB Server

MCP Server

Unlock the full potential of MCP GDB Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

MCP GDB Server

A Model Context Protocol (MCP) server that provides GDB debugging functionality for use with Claude or other AI assistants.

Features

  • Start and manage GDB debugging sessions
  • Load programs and core dumps for analysis
  • Set breakpoints, step through code, and examine memory
  • View call stacks, variables, and registers
  • Execute arbitrary GDB commands

Installation

# Clone the repository git clone https://github.com/signal-slot/mcp-gdb.git cd mcp-gdb # Install dependencies npm install # Build the project npm run build

Usage

Using with Claude or other MCP-enabled assistants

  1. Configure the MCP settings in the Claude desktop app or browser extension to include this server:
{ "mcpServers": { "gdb": { "command": "node", "args": ["/path/to/mcp-gdb/build/index.js"], "disabled": false } } }
  1. Restart Claude or refresh the page.

  2. Now you can use the GDB tools in your conversations with Claude.

Example Commands

Here are some examples of using the GDB MCP server through Claude:

Starting a GDB session

Use gdb_start to start a new debugging session

Loading a program

Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start

Setting a breakpoint

Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session

Running the program

Use gdb_continue to start execution

Examining variables

Use gdb_print to evaluate the expression "my_variable" in the current context

Getting a backtrace

Use gdb_backtrace to see the current call stack

Terminating the session

Use gdb_terminate to end the debugging session

Supported GDB Commands

  • gdb_start: Start a new GDB session
  • gdb_load: Load a program into GDB
  • gdb_command: Execute an arbitrary GDB command
  • gdb_terminate: Terminate a GDB session
  • gdb_list_sessions: List all active GDB sessions
  • gdb_attach: Attach to a running process
  • gdb_load_core: Load a core dump file
  • gdb_set_breakpoint: Set a breakpoint
  • gdb_continue: Continue program execution
  • gdb_step: Step program execution
  • gdb_next: Step over function calls
  • gdb_finish: Execute until the current function returns
  • gdb_backtrace: Show call stack
  • gdb_print: Print value of expression
  • gdb_examine: Examine memory
  • gdb_info_registers: Display registers

License

MIT

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • SQLite MCP Server

    A Model Context Protocol server enabling AI models to execute SQL queries, manage SQLite database sc...

    Added May 30, 2025
  • MCP Server

    Provides greeting-related tools, resources, and prompts via Model Context Protocol (MCP), enabling p...

    Added May 30, 2025
  • openrpc-mpc-server

    Provides JSON-RPC functionality via Model Context Protocol with tools for calling arbitrary methods ...

    2 tools
    Added May 30, 2025
  • TMDB MCP Server

    Provides AI assistants with seamless access to The Movie Database API via Model Context Protocol, en...

    Added May 30, 2025
  • iTerm MCP Server

    Enables AI assistants to manage and interact with iTerm2 terminal sessions on macOS via the Model Co...

    Added May 30, 2025