
lauriewired/ghidramcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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にインポートできます。
- ラン・ギドラ
- 選択
File->Install Extensions +ボタンをクリックします- ダウンロードされたリリースから
ghidra_12.1.4_PUBLIC_ _GhidraMCP.zipを選択します - ギドラの再起動
- ギドラMCPPluginが
File]->Configure]->Developerで有効であることを確認しましょう。 - オプション: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 useghidra-mcpas 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.
- Run Ghidra
- Select
File->Install Extensions - Click the
+button - Select the
ghidra_12.1.4_PUBLIC__GhidraMCP.zipfrom the downloaded release - Restart Ghidra
- Make sure the GhidraMCPPlugin is enabled in
File->Configure->Developer - 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:
インストール
uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --ghidra-server http://127.0.0.1:8080/設定
{
"mcpServers": {
"ghidra": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/LaurieWired/GhidraMCP",
"ghidra-mcp",
"--ghidra-server",
"http://127.0.0.1:8080/"
]
}
}
}