gdbmcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gdbmcplist my active GDB sessions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gdbmcp
GDB MCP server.
Overview
gdbmcp exposes GDB operations over the MCP (Model Context Protocol) using FastMCP. It manages GDB sessions over a socket connection (via gdbrpc) and provides MCP tools to connect, list, terminate sessions, and run GDB commands.
Related MCP server: dap-mcp
Features
Start and manage multiple GDB sessions
Execute arbitrary GDB commands through MCP
Run as MCP stdio server or HTTP server
Requirements
Python >= 3.10
gdbrpcmcpHTTP mode only:
uvicorn(required to run the HTTP server)
Installation
From PyPI:
pip install gdbmcp-serverFrom repo root:
pip install .For development:
pip install -e .Usage
Run MCP server (stdio)
python -m gdbmcp-server gdbmcp --stdioRun MCP server (HTTP)
python -m gdbmcp-serverMCP Tools
gdb_connect(host: Optional[str] = None, port: Optional[int] = None) -> str
Establish a GDB session and returns a session ID.
gdb_terminate(session_id: str) -> str
Terminate an existing session and clean up resources.
gdb_list_sessions() -> str
List all active sessions and their host/port.
gdb_command(session_id: str, command: str) -> str
Execute a GDB command in the session and return output.
Configuration
CLI flags:
--stdio: Run in stdio transport mode--port: HTTP server port (default:20819)
This server cannot be deployed
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Model Context Protocol server for Studex tools, notifications, and profile integrations
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA GDB/MI protocol server based on the MCP protocol, providing remote application debugging capabilities.68MIT
- AlicenseNot gradedqualityCmaintenanceAn implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.40AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables dynamic debugging with GDB via the MCP protocol, allowing LLMs to execute GDB commands, manage breakpoints, control execution, and inspect program state.4-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with GDB for debugging via the MCP protocol. Supports setting breakpoints, stepping through code, inspecting memory and registers, and more.85MIT