GhidraMCP:Ghidra 的 MCP 服务器

GhidraMCP:Ghidra 的 MCP 服务器

为 Ghidra 提供 Model Context Protocol 服务,支持 LLM 自动逆向工程。

快速入门

安装条件

Ghidra 插件安装

  1. 下载最新 Release
  2. 打开 Ghidra,选择 File -> Install Extensions
  3. 点击 + 按钮并导入下载的插件文件
  4. 重启 Ghidra 并启用插件
  5. 可选:配置端口(默认 8080)

使用 Claude Desktop 配置

编辑配置文件 claude_desktop_config.json,添加以下内容:

{
  "mcpServers": {
    "ghidra": {
      "command": "python",
      "args": [
        "/ABSOLUTE_PATH_TO/bridge_mcp_ghidra.py",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

从源码构建

  1. 复制 Ghidra 相关 JAR 文件到项目 lib/ 目录
  2. 使用 Maven 构建:运行 mvn clean package assembly:single