GDB MCP Server
Multi-Debugger-MCP-Server (LLDB und GDB)
Ein Model-Context-Protocol-Server, der Debugging-Funktionen für sowohl GDB- als auch LLDB-Debugger bereitstellt, zur Verwendung mit Claude Desktop, VSCode Copilot oder anderen KI-Assistenten.
Schnellstart
uv sync
uv venv
uv run server.pyRelated MCP server: LLDB MCP Server
Integration
Beachten Sie, dass Sie uv run verwenden können, um das Skript server.py auszuführen, oder Sie können uv venv verwenden, um eine virtuelle Umgebung zu erstellen und dann /home/youruser/dev/personal/GDB-MCP/.venv/bin/python /home/youruser/dev/personal/GDB-MCP/server.py ausführen.
Claude Desktop
Fügen Sie zu Ihrer claude_desktop_config.json hinzu:
{
"mcpServers": {
"gdb": {
"command": "uv",
"args": ["run", "/home/youruser/dev/personal/GDB-MCP/server.py"],
"disabled": false
}
}
}VSCode Copilot
Wenn Sie WSL verwenden:
"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"
]
}
}
}Wenn Sie WSL nicht verwenden:
"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"]
}
}
}Experimentelle LLDB-Unterstützung (macOS)
Dieses Projekt enthält experimentelle native LLDB-Unterstützung neben GDB, mit automatischer Debugger-Auswahl.
Installation
Um die LLDB-Unterstützung unter macOS zu aktivieren, installieren Sie LLVM (das LLDB enthält) und python über Homebrew:
# Install LLDB for supporting python3.14 bindings
brew install llvm python3
# Install MCP and debugging dependencies
pip3 install mcp pygdbmi --break-system-packagesVerfügbare Werkzeuge
Einheitliche Werkzeuge
debugger_status(): Verfügbare Debugger und deren Status anzeigendebugger_start(): Debugging-Sitzung mit automatisch erkanntem Debugger startendebugger_terminate(session_id): Debugging-Sitzung beendendebugger_list_sessions(): Alle aktiven Debugging-Sitzungen auflistendebugger_command(session_id, command): Debugger-Befehl ausführen
LLDB-Werkzeuge
lldb_start(): Neue LLDB-Debugging-Sitzung startenlldb_terminate(session_id): LLDB-Debugging-Sitzung beendenlldb_list_sessions(): Alle aktiven LLDB-Sitzungen auflistenlldb_command(session_id, command): Beliebigen LLDB-Befehl ausführen
GDB-Werkzeuge
gdb_start(gdb_path): Neue GDB-Debugging-Sitzung startengdb_terminate(session_id): GDB-Debugging-Sitzung beendengdb_list_sessions(): Alle aktiven GDB-Sitzungen auflistengdb_command(session_id, command): Beliebigen GDB-Befehl ausführen
Verwenden Sie die Funktionen
*_command()für alle fortgeschrittenen Debugger-Operationen. Ihr LLM-Client sollte bereits wissen, wie man sie verwendet, aber es schadet nicht, es zu erwähnen.
Status prüfen
Sie können die Verfügbarkeit des Debuggers überprüfen:
from modules.lldb import LLDBSessionManager
from modules.gdb import GDBSessionManager
print("LLDB available:", LLDBSessionManager.is_available())
print("GDB available:", GDBSessionManager.is_available())Testen
uv run python run-tests.py --check-deps
uv run python run-tests.py --type allBeispiele
Schauen Sie sich das Verzeichnis examples für Beispiel-Prompts an.
Die Beispiel-Binärdateien sind für
arm64undamd64kompiliert. Wählen Sie diejenige aus, die zu Ihrer Systemarchitektur passt.
Lizenz
Dieses Projekt ist unter der GNU-Lizenz Version 3.0 lizenziert. Einzelheiten finden Sie in der Datei LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides GDB debugging functionality for use with Claude or other AI assistants, allowing users to manage debugging sessions, set breakpoints, examine variables, and execute GDB commands through natural language.1656158MIT
- AlicenseAqualityDmaintenanceProvides structured debugging capabilities through LLDB, enabling AI assistants to set breakpoints, inspect variables, analyze crashes, disassemble code, and evaluate expressions in C/C++ programs.173Apache 2.0
- FlicenseAqualityDmaintenanceEnables AI agents to debug embedded systems by providing a comprehensive interface for GDB operations across multiple architectures like ARM and x86. It supports remote debugging via gdbserver or QEMU, allowing for detailed inspection of memory, registers, stack frames, and variables.31
- 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
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Reasoning, code, anti-deception, memory harness MCP tools. Stdio or HTTPS api.ejentum.com/mcp
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/smadi0x86/MDB-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server