Skip to main content
Glama

执照 GitHub 版本(按日期排序) GitHub 星标 GitHub 分叉 GitHub 贡献者 关注@lauriewired

ghidra_MCP_logo

ghidraMCP

ghidraMCP 是一个模型上下文协议 (MLM) 服务器,允许 LLM 自主地对应用程序进行逆向工程。它向 MCP 客户端公开了 Ghidra 核心功能中的众多工具。

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

特征

MCP 服务器 + Ghidra 插件

  • 在 Ghidra 中反编译和分析二进制文件

  • 自动重命名方法和数据

  • 列出方法、类、导入和导出

安装

先决条件

Related MCP server: GhidraMCP

吉德拉

首先,从此仓库下载最新版本。其中包含 Ghidra 插件和 Python MCP 客户端。然后,你可以直接将插件导入 Ghidra。

  1. 运行 Ghidra

  2. 选择File -> Install Extensions

  3. 点击+按钮

  4. 从下载的版本中选择GhidraMCP-1-2.zip (或您选择的版本)

  5. 重启 Ghidra

  6. 确保在File -> Configure -> Developer中启用了 GhidraMCPPlugin

  7. 可选:使用Edit -> Tool Options -> GhidraMCP HTTP Server在 Ghidra 中配置端口

视频安装指南:

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

MCP 客户端

理论上,任何 MCP 客户端都可以与 ghidraMCP 兼容。下面给出了三个示例。

示例 1:Claude Desktop

要将 Claude Desktop 设置为 Ghidra MCP 客户端,请转到Claude -> Settings -> Developer -> Edit Config -> claude_desktop_config.json并添加以下内容:

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

或者,直接编辑此文件:

/Users/YOUR_USER/Library/Application Support/Claude/claude_desktop_config.json

服务器 IP 和端口可配置,应设置为指向目标 Ghidra 实例。如果未设置,则两者均默认为 localhost:8080。

示例 2:克莱恩

要将 GhidraMCP 与Cline一起使用,还需要手动运行 MCP 服务器。首先运行以下命令:

python bridge_mcp_ghidra.py --transport sse --mcp-host 127.0.0.1 --mcp-port 8081 --ghidra-server http://127.0.0.1:8080/

唯一必需的参数是传输。如果所有其他参数均未指定,则默认为上述参数。MCP 服务器启动后,打开 Cline 并选择顶部的MCP Servers

克莱恩选择

然后选择Remote Servers并添加以下内容,确保 URL 与 MCP 主机和端口匹配:

  1. 服务器名称:GhidraMCP

  2. 服务器网址: http://127.0.0.1:8081/sse 8081/sse

例 3:5ire

另一个支持后端多种模型的 MCP 客户端是5ire 。要设置 GhidraMCP,请打开 5ire,然后前往Tools -> New ,并设置以下配置:

  1. 工具密钥:ghidra

  2. 名称:GhidraMCP

  3. 命令: python /ABSOLUTE_PATH_TO/bridge_mcp_ghidra.py

从源代码构建

  1. 将以下文件从 Ghidra 目录复制到此项目的lib/目录:

  • Ghidra/Features/Base/lib/Base.jar

  • Ghidra/Features/Decompiler/lib/Decompiler.jar

  • Ghidra/Framework/Docking/lib/Docking.jar

  • Ghidra/Framework/Generic/lib/Generic.jar

  • Ghidra/Framework/Project/lib/Project.jar

  • Ghidra/Framework/SoftwareModeling/lib/SoftwareModeling.jar

  • Ghidra/Framework/Utility/lib/Utility.jar

  • Ghidra/Framework/Gui/lib/Gui.jar

  1. 通过运行以下命令使用 Maven 进行构建:

mvn clean package assembly:single

生成的 zip 文件包含构建的 Ghidra 插件及其资源。这些文件是 Ghidra 识别新扩展所必需的。

  • lib/GhidraMCP.jar

  • 扩展属性

  • 模块清单

A
license - permissive license
Not graded
quality - not tested
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
    Not graded
    quality
    D
    maintenance
    An MCP server that enables LLMs to autonomously reverse engineer applications through Cutter, allowing them to decompile binaries, analyze code, and rename methods programmatically.
    30
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that allows LLMs to autonomously reverse engineer applications by exposing Ghidra's functionality, including decompiling binaries, analyzing code, and renaming methods and data.
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An Model Context Protocol server that enables LLMs to autonomously reverse engineer applications by exposing Ghidra's decompilation and analysis tools. It allows AI agents to list code structures, rename methods, and analyze binaries directly through MCP-compatible clients.
    Apache 2.0
  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP server that allows LLMs to autonomously reverse engineer applications using Ghidra, exposing tools like decompilation, renaming, and listing methods.
    26
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

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/LaurieWired/GhidraMCP'

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