LG

lauriewired/ghidramcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

1.2万 stars 1246 forks 品質 86 トレンド 78Apache-2.0

Ghidra 用 MCP サーバー

概要

ghidraMCPは、LLMが自律的にアプリケーションをリバースエンジニアリングできるようにするモデルコンテキストプロトコルサーバーです。これは、Ghidraのコア機能からMCPクライアントに多数のツールを公開します。 https://github.com/user-attachments/assets/36080514-f227-44bd-af84-78e29ee1d7f9 - Ghhidraでのバイナリのデコンパイルおよび解析 - メソッドとデータの自動リ名前変更 - メソッド、クラス、インポート、エクスポートのリスト まず、このリポジトリから最新リリースをダウンロードします。そこにはGhidraプラグインとPython MCPクライアントが含まれています。その後、プラグインを直接Ghidraにインポートできます。 1. Ghidra を実行する 2.ファイル -> 拡張機能をインストールする 3.+ ボタンをクリックし 4.ダウンロードしたリリースからGhidraMCP-1-2.zip(または選択したバージョン)を選択する 5.Ghidra 6 を再起動します。ファイル -> 設定 -> 開発者 7 で GhidraMCPPlugin が有効になっていることを確認してください。オプション:Ghidra でポートを設定してください 編集 ->ツールオプション -> GhidraMCP HTTP Server https://github.

概要(AI 翻訳)

ghidraMCPは、LLMが自律的にアプリケーションをリバースエンジニアリングできるようにするモデルコンテキストプロトコルサーバーです。これは、Ghidraのコア機能からMCPクライアントに多数のツールを公開します。

https://github.com/user-attachments/assets/36080514-f227-44bd-af84-78e29ee1d7f9

特徴

MCPサーバー+ギドラプラグイン

  • Ghidraでのバイナリの逆コンパイルおよび解析
  • メソッドとデータの自動リネーム
  • メソッド、クラス、インポート、エクスポートのリスト

インスタレーション

前提条件

  • ギドラ 12.1.4 のインストール
  • uv(またはPython 3.10+でpip install git+https://github.com/LaurieWired/GhidraMCP)をインストールし、以下のコマンドとしてghidra-mcpを使います)

ギドラ

まず、このリポジトリから最新リリースをダウンロードします。そこにはGhidraプラグインとPython MCPクライアントが含まれています。その後、プラグインを直接Ghidraにインポートできます。

  1. ラン・ギドラ
  2. 選択 File -> Install Extensions
  3. +ボタンをクリックします
  4. ダウンロードされたリリースからghidra_12.1.4_PUBLIC_ _GhidraMCP.zipを選択します
  5. ギドラの再起動
  6. ギドラMCPPluginがFile]->Configure]->Developerで有効であることを確認しましょう。
  7. オプション:GhidraのポートをEdit -> Tool Options -> GhidraMCP HTTP Server

ビデオインスタレーションガイド:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

ghidraMCP

ghidraMCP is an Model Context Protocol server for allowing LLMs to autonomously reverse engineer applications. It exposes numerous tools from core Ghidra functionality to MCP clients.

https://github.com/user-attachments/assets/36080514-f227-44bd-af84-78e29ee1d7f9

Features

MCP Server + Ghidra Plugin

  • Decompile and analyze binaries in Ghidra
  • Automatically rename methods and data
  • List methods, classes, imports, and exports

Installation

Prerequisites

  • Install Ghidra 12.1.4
  • Install uv (or Python 3.10+ with pip install git+https://github.com/LaurieWired/GhidraMCP, then use ghidra-mcp as the command below)

Ghidra

First, download the latest release from this repository. This contains the Ghidra plugin and Python MCP client. Then, you can directly import the plugin into Ghidra.

  1. Run Ghidra
  2. Select File -> Install Extensions
  3. Click the + button
  4. Select the ghidra_12.1.4_PUBLIC__GhidraMCP.zip from the downloaded release
  5. Restart Ghidra
  6. Make sure the GhidraMCPPlugin is enabled in File -> Configure -> Developer
  7. Optional: Configure the port in Ghidra with Edit -> Tool Options -> GhidraMCP HTTP Server

Video Installation Guide:

https://github.com/user-attachments/assets/75f0c176-6da1-48dc-ad96-c182eb4648c3

MCP Clients

Theoretically, any MCP client should work with ghidraMCP. Most clients accept a JSON config like the following:

{
  "mcpServers": {
    "ghidra": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/LaurieWired/GhidraMCP",
        "ghidra-mcp",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

The server IP and port are configurable and should be set to point to the target Ghidra instance. If not set, both will default to localhost:8080.

For clients that connect to a URL instead of launching a command, first run the MCP server yourself:

GitHub で README 全文を見る

インストール

uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --ghidra-server http://127.0.0.1:8080/
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "ghidra": { "command": "uvx", "args": [ "--from", "git+https://github.com/LaurieWired/GhidraMCP", "ghidra-mcp", "--ghidra-server", "http://127.0.0.1:8080/" ] } } }