Skip to main content
Glama

Multi-Debugger MCP Server (LLDB and GDB)

GDB と LLDB の両デバッガーにデバッグ機能を提供する Model Context Protocol サーバーで、Claude Desktop、VSCode Copilot、その他の AI アシスタントで使用できます。

クイックスタート

uv sync
uv venv
uv run server.py

Related 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 ディレクトリにサンプルプロンプトがあります。

サンプルバイナリは arm64amd64 用にコンパイルされています。システムアーキテクチャに一致するものを選択してください。

ライセンス

このプロジェクトは GNU Version 3.0 License の下でライセンスされています。詳細は LICENSE ファイルを参照してください。

Install Server
A
license - permissive license
C
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

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

  • A
    license
    B
    quality
    C
    maintenance
    Provides 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.
    16
    56
    158
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides structured debugging capabilities through LLDB, enabling AI assistants to set breakpoints, inspect variables, analyze crashes, disassemble code, and evaluate expressions in C/C++ programs.
    17
    3
    Apache 2.0
  • F
    license
    A
    quality
    D
    maintenance
    Enables 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
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables dynamic debugging with GDB via the MCP protocol, allowing LLMs to execute GDB commands, manage breakpoints, control execution, and inspect program state.
    4

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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