GDB
HTTP-SSELightweight MCP server running inside GDB for debugging command execution and automation
Lightweight MCP server running inside GDB for debugging command execution and automation
A lightweight MCP server that runs inside GDB. It exposes a single tool, gdb-command, which proxies input directly to GDB’s command interpreter and returns the textual output. The server runs over SSE and is started from within GDB via the mcp-server command.
gdb-command: pass any GDB command, get back its output.gdb-mcp (loaded via source).fastmcp library available to GDB’s embedded Python.Check Python support: gdb -q -ex "python print('ok')" -ex quit
Install FastMCP: python3 -m pip install fastmcp
If import fails in GDB, ensure fastmcp is installed to the same Python environment GDB uses.
gdb -q -ex 'source ./gdb-mcp'source ./gdb-mcpmcp-server 127.0.0.1 3333gdb-command.command (string): the exact GDB command to run (e.g., info registers).interrupt command.~/.gdbinit: source /absolute/path/to/gdb-mcp.MIT — see LICENSE.
fastmcp library.