mcp-gdb

mcp-gdb

23

The MCP GDB Server is designed to provide GDB debugging capabilities for AI assistants like Claude. It allows users to manage debugging sessions, execute commands, and examine code using various GDB functions integrated with MCP.

MCP GDB Server

A Model Context Protocol (MCP) server providing GDB debugging functionality for AI assistants like Claude.

Features

  • Start and manage GDB debugging sessions
  • Load programs and core dumps
  • Set breakpoints and step through code
  • Examine memory and view call stacks
  • Execute GDB commands

Usage

Configure MCP settings in Claude to use the server for debugging sessions, loading programs, managing breakpoints, examining variables, and more. Supported commands include gdb_start, gdb_load, gdb_terminate, and others.

Supported GDB Commands

  • gdb_start: Start a GDB session
  • gdb_load: Load a program
  • gdb_command: Execute commands
  • gdb_terminate: End a session
  • gdb_list_sessions: List sessions
  • gdb_attach: Attach to a process
  • gdb_load_core: Load a core dump
  • gdb_set_breakpoint: Set a breakpoint
  • gdb_continue: Continue execution
  • gdb_step: Step execution
  • gdb_next: Step over calls
  • gdb_finish: Execute until function returns
  • gdb_backtrace: Show call stack
  • gdb_print: Print expression value
  • gdb_examine: Examine memory
  • gdb_info_registers: Display registers