GDB MCP Server
An MCP server that enables LLM clients to interact with GDB for debugging and binary analysis.
Multi-Debugger MCP Server (LLDB and GDB)
A Model Context Protocol server that provides debugging functionality for both GDB and LLDB debuggers, for use with Claude Desktop, VSCode Copilot, or other AI assistants.
Quick Start
uv sync
uv venv
uv run server.py
Integration
Note that you can use uv run to run the server.py script or you can use uv venv to create a virtual environment and then run /home/youruser/dev/personal/GDB-MCP/.venv/bin/python /home/youruser/dev/personal/GDB-MCP/server.py.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gdb": {
"command": "uv",
"args": ["run", "/home/youruser/dev/personal/GDB-MCP/server.py"],
"disabled": false
}
}
}
VSCode Copilot
If you're using WSL:
"mcp": {
"servers": {
"my-mcp-server-4dc36648": {
"type": "stdio",
"command": "wsl",
"args": [
"/home/youruser/dev/personal/GDB-MCP/.venv/bin/python",
"/home/youruser/dev/personal/GDB-MCP/server.py"
]
}
}
}
If you're not using WSL:
"mcp": {
"servers": {
"my-mcp-server-db89eee1": {
"type": "stdio",
"command": "/home/youruser/dev/personal/GDB-MCP/.venv/bin/python",
"args": ["/home/youruser/dev/personal/GDB-MCP/server.py"]
}
}
}
Windsurf
{
"mcpServers": {
"debugger-mcp": {
"command": "python3",
"args": ["/Users/youruser/dev/GDB-MCP/server.py"]
}
}
}
Experimental LLDB Support (macOS)
This project includes experimental native LLDB support alongside GDB, with automatic debugger selection.
Installation
To enable LLDB support on macOS, install LLVM (which includes LLDB) and python via Homebrew:
# Install LLDB for supporting python3.14 bindings
brew install llvm python3
# Install MCP and debugging dependencies
pip3 install mcp pygdbmi --break-system-packages
Available Tools
Unified Tools
debugger_status(): Show available debuggers and their statusdebugger_start(): Start debugging session with auto-detected debuggerdebugger_terminate(session_id): Terminate debugging sessiondebugger_list_sessions(): List all active debugging sessionsdebugger_command(session_id, command): Execute debugger command
LLDB Tools
lldb_start(): Start new LLDB debugging sessionlldb_terminate(session_id): Terminate LLDB debugging sessionlldb_list_sessions(): List all active LLDB sessionslldb_command(session_id, command): Execute arbitrary LLDB command
GDB Tools
gdb_start(gdb_path): Start new GDB debugging sessiongdb_terminate(session_id): Terminate GDB debugging sessiongdb_list_sessions(): List all active GDB sessionsgdb_command(session_id, command): Execute any GDB command
Use
*_command()functions for all advanced debugger operations, your LLM client should already know how to use it, but it doesn't hurt to mention it.
Checking Status
You can verify debugger availability:
from modules.lldb import LLDBSessionManager
from modules.gdb import GDBSessionManager
print("LLDB available:", LLDBSessionManager.is_available())
print("GDB available:", GDBSessionManager.is_available())
Testing
uv run python run-tests.py --check-deps
uv run python run-tests.py --type all
Examples
Check the examples directory for example prompts.
Example binaries are compiled to
arm64andamd64, pick the one that matches your system architecture.
License
This project is licensed under the GNU Version 3.0 License, see the LICENSE file for details.
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Feishu API
Fetches API information from Feishu OpenAPI for seamless integration and management within an IDE.
Copado MCP
A remote MCP server deployable on Cloudflare Workers without authentication.
shadow-cljs
Monitors shadow-cljs builds and provides real-time build status updates.
Custom MCP Server
A versatile MCP server built with Next.js, providing a range of tools and utilities with Redis state management.
MCP Create Server
A service for dynamically creating, running, and managing Model Context Protocol (MCP) servers.
TechDebtMCP
MCP server for analyzing and managing technical debt in codebases via the Model Context Protocol
PowerShell MCP Server
Automate Windows PowerShell tasks using Python. Execute scripts, manage the clipboard, and capture terminal output programmatically.
Tulip MCP Server
An MCP server for the Tulip API, allowing LLMs to interact with the Tulip manufacturing platform's tables, records, machines, and more.
Zyla API Hub MCP Server
Connect any AI agent to 7,500+ APIs on the Zyla API Hub using a single MCP tool (call_api)
UI Prototype
A modern web application prototype built with React, TypeScript, and Material-UI, featuring authentication, internationalization, and Figma integration.