Skip to main content
Glama

MCP GDB Server

by signal-slot

MCP GDB サーバー

Claude やその他の AI アシスタントで使用するための GDB デバッグ機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • GDBデバッグセッションを開始および管理する
  • 分析のためにプログラムとコアダンプをロードする
  • ブレークポイントを設定し、コードをステップ実行し、メモリを調べる
  • コールスタック、変数、レジスタを表示する
  • 任意のGDBコマンドを実行する

インストール

# Clone the repository git clone https://github.com/signal-slot/mcp-gdb.git cd mcp-gdb # Install dependencies npm install # Build the project npm run build

使用法

Claude や他の MCP 対応アシスタントと併用する

  1. このサーバーを含めるように、Claude デスクトップ アプリまたはブラウザ拡張機能で MCP 設定を構成します。
{ "mcpServers": { "gdb": { "command": "node", "args": ["/path/to/mcp-gdb/build/index.js"], "disabled": false } } }
  1. Claude を再起動するか、ページを更新してください。
  2. これで、Claude との会話で GDB ツールを使用できるようになります。

コマンド例

Claude を介して GDB MCP サーバーを使用する例をいくつか示します。

GDBセッションの開始
Use gdb_start to start a new debugging session
プログラムの読み込み
Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start
ブレークポイントの設定
Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session
プログラムの実行
Use gdb_continue to start execution
変数の検討
Use gdb_print to evaluate the expression "my_variable" in the current context
バックトレースを取得する
Use gdb_backtrace to see the current call stack
セッションを終了する
Use gdb_terminate to end the debugging session

サポートされているGDBコマンド

  • gdb_start : 新しいGDBセッションを開始する
  • gdb_load : プログラムをGDBにロードする
  • gdb_command : 任意のGDBコマンドを実行する
  • gdb_terminate : GDBセッションを終了する
  • gdb_list_sessions : アクティブなGDBセッションをすべて一覧表示する
  • gdb_attach : 実行中のプロセスにアタッチする
  • gdb_load_core : コアダンプファイルをロードする
  • gdb_set_breakpoint : ブレークポイントを設定する
  • gdb_continue : プログラムの実行を継続する
  • gdb_step : ステッププログラム実行
  • gdb_next : 関数呼び出しをステップオーバーする
  • gdb_finish : 現在の関数が戻るまで実行する
  • gdb_backtrace : コールスタックを表示する
  • gdb_print : 式の値を印刷する
  • gdb_examine : メモリを調べる
  • gdb_info_registers : レジスタを表示する

ライセンス

マサチューセッツ工科大学

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude やその他の AI アシスタントで使用するための GDB デバッグ機能を提供します。これにより、ユーザーはデバッグ セッションを管理し、ブレークポイントを設定し、変数を調べ、自然言語で GDB コマンドを実行できます。

  1. 特徴
    1. インストール
      1. 使用法
        1. Claude や他の MCP 対応アシスタントと併用する
        2. コマンド例
      2. サポートされているGDBコマンド
        1. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Enables intelligent code analysis and debugging through the Perplexity AI's API, offering detailed error analysis, pattern detection, and comprehensive solutions, with integration support for the Claude desktop client.
            Last updated -
            1
            378
            11
            JavaScript
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            Enables managing Google Cloud Platform resources through natural language commands in Claude Desktop, supporting comprehensive operations across compute, storage, databases, networking, monitoring, and IAM without manual credential setup.
            Last updated -
            56
            21
            Python
            • Apple
          • A
            security
            F
            license
            A
            quality
            Allows Claude to directly debug a NodeJS server by setting breakpoints, inspecting variables and stepping through code.
            Last updated -
            13
            738
            270
            JavaScript
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            Transforms Claude from a code generator into a programming partner capable of testing, debugging, and optimizing code automatically through a secure execution environment.
            Last updated -
            Python

          View all related MCP servers

          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/signal-slot/mcp-gdb'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server