GDB MCP Server
Multi-Debugger MCP Server (LLDB and GDB)
GDB と LLDB の両デバッガーにデバッグ機能を提供する Model Context Protocol サーバーで、Claude Desktop、VSCode Copilot、その他の AI アシスタントで使用できます。
クイックスタート
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)
このプロジェクトには、GDB に加えて実験的なネイティブ LLDB サポートが含まれており、デバッガーが自動選択されます。
インストール
macOS で LLDB サポートを有効にするには、Homebrew 経由で LLVM (LLDB を含む) と python をインストールします:
# 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(): 新しい LLDB デバッグセッションを開始しますlldb_terminate(session_id): LLDB デバッグセッションを終了しますlldb_list_sessions(): アクティブな LLDB セッションをすべて一覧表示しますlldb_command(session_id, command): 任意の LLDB コマンドを実行します
GDB ツール
gdb_start(gdb_path): 新しい GDB デバッグセッションを開始しますgdb_terminate(session_id): GDB デバッグセッションを終了しますgdb_list_sessions(): アクティブな GDB セッションをすべて一覧表示しますgdb_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