Command Palette

Search for a command to run...

UnylyUnyly
Browse all

GNU Debugger (GDB)

FreeNot checked

Integrates with GNU Debugger to enable execution of arbitrary GDB commands within debugging sessions for automated debugging workflows, intelligent breakpoint m

GitHubEmbed

About

Integrates with GNU Debugger to enable execution of arbitrary GDB commands within debugging sessions for automated debugging workflows, intelligent breakpoint management, and conversational program state inspection.

README

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.

Features

  • gdb-command: pass any GDB command, get back its output.
  • Minimal, self-contained script: gdb-mcp (loaded via source).

Requirements

  • GDB with Python support enabled.
  • Python 3.x and the 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.

Quick Start

  1. Start GDB with the MCP extension loaded
  • gdb -q -ex 'source ./gdb-mcp'
  • Alternatively, load from within gdb source ./gdb-mcp
  1. Launch the SSE server from within GDB
  • mcp-server 127.0.0.1 3333
  1. Connect an MCP client to the server
  • Configure your MCP client to connect to the SSE server at the host/port selected above and call tool gdb-command.

Tool: gdb-command

  • Parameters:
    • command (string): the exact GDB command to run (e.g., info registers).
  • Returns: string (captured GDB output or an error message).

Notes & Tips

  • No timeout or stop control is provided by this script. To interrupt long-running target execution, issue the interrupt command.
  • Do not bind publicly unless you trust clients; this endpoint can execute arbitrary GDB commands.
  • To auto-load, add a line to your ~/.gdbinit: source /absolute/path/to/gdb-mcp.
  • There is no builtin 'stop server' functionality. To teardown the server, exit GDB.

License

MIT — see LICENSE.

Acknowledgements

  • Built on top of the excellent fastmcp library.

from github.com/jtang613/gdb-mcp

Installing GNU Debugger (GDB)

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/jtang613/gdb-mcp

FAQ

Is GNU Debugger (GDB) MCP free?

Yes, GNU Debugger (GDB) MCP is free — one-click install via Unyly at no cost.

Does GNU Debugger (GDB) need an API key?

No, GNU Debugger (GDB) runs without API keys or environment variables.

Is GNU Debugger (GDB) hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install GNU Debugger (GDB) in Claude Desktop, Claude Code or Cursor?

Open GNU Debugger (GDB) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare GNU Debugger (GDB) with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs