GDB MCP Server
Multi-Debugger MCP Server (LLDB and GDB)
Сервер Model Context Protocol, который предоставляет функции отладки для обоих отладчиков GDB и LLDB, для использования с Claude Desktop, VSCode Copilot или другими ИИ-ассистентами.
Быстрый старт
uv sync
uv venv
uv run server.pyRelated MCP server: LLDB MCP Server
Интеграция
Обратите внимание, что вы можете использовать uv run для запуска скрипта server.py или использовать uv venv для создания виртуальной среды, а затем запустить /home/youruser/dev/personal/GDB-MCP/.venv/bin/python /home/youruser/dev/personal/GDB-MCP/server.py.
Claude Desktop
Добавьте в ваш claude_desktop_config.json:
{
"mcpServers": {
"gdb": {
"command": "uv",
"args": ["run", "/home/youruser/dev/personal/GDB-MCP/server.py"],
"disabled": false
}
}
}VSCode Copilot
Если вы используете 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"
]
}
}
}Если вы не используете 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"]
}
}
}Экспериментальная поддержка LLDB (macOS)
Этот проект включает экспериментальную нативную поддержку LLDB наряду с GDB, с автоматическим выбором отладчика.
Установка
Чтобы включить поддержку LLDB на macOS, установите LLVM (который включает LLDB) и python через Homebrew:
# Install LLDB for supporting python3.14 bindings
brew install llvm python3
# Install MCP and debugging dependencies
pip3 install mcp pygdbmi --break-system-packagesДоступные инструменты
Унифицированные инструменты
debugger_status(): Показать доступные отладчики и их статусdebugger_start(): Запустить сеанс отладки с автоматически определенным отладчикомdebugger_terminate(session_id): Завершить сеанс отладкиdebugger_list_sessions(): Список всех активных сеансов отладкиdebugger_command(session_id, command): Выполнить команду отладчика
Инструменты LLDB
lldb_start(): Запустить новый сеанс отладки LLDBlldb_terminate(session_id): Завершить сеанс отладки LLDBlldb_list_sessions(): Список всех активных сеансов LLDBlldb_command(session_id, command): Выполнить произвольную команду LLDB
Инструменты GDB
gdb_start(gdb_path): Запустить новый сеанс отладки GDBgdb_terminate(session_id): Завершить сеанс отладки GDBgdb_list_sessions(): Список всех активных сеансов GDBgdb_command(session_id, command): Выполнить любую команду GDB
Используйте функции
*_command()для всех расширенных операций отладчика, ваш LLM-клиент уже должен знать, как их использовать, но не помешает упомянуть об этом.
Проверка статуса
Вы можете проверить доступность отладчика:
from modules.lldb import LLDBSessionManager
from modules.gdb import GDBSessionManager
print("LLDB available:", LLDBSessionManager.is_available())
print("GDB available:", GDBSessionManager.is_available())Тестирование
uv run python run-tests.py --check-deps
uv run python run-tests.py --type allПримеры
Проверьте каталог examples для примеров подсказок.
Примеры бинарных файлов скомпилированы для
arm64иamd64, выберите тот, который соответствует архитектуре вашей системы.
Лицензия
Этот проект лицензирован в соответствии с GNU Version 3.0 License, подробности см. в файле 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