1G

13bm/ghidramcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

151 stars 23 forks 质量 74 趋势 8Apache-2.0

13bm/ghidramcp 是从 https://github.com/13bm/ghidramcp. 导入的 MCP 服务器候选。

概览

13bm/ghidramcp 是从 https://github.com/13bm/ghidramcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

这是一个 Ghidra 扩展,通过模型上下文协议(MCP)向 AI 助手展示 70 个逆向工程工具。在 Ghidra 中打开二进制文件,启用插件,让 Claude(或任何 MCP 客户端)反编译函数、重命名符号、注释代码、搜索漏洞等。

建筑

Ghidra 插件(Java)在 Ghidra 内部启动 TCP 服务器,并自动启动 Go 桥接二进制。桥通过 stdio 向 AI 客户端传递 MCP,并通过本地 TCP 套接字转发调用 Java 插件,帧为 4 字节长度前缀的 JSON-RPC 帧。可选的 API 密钥认证保护 TCP 通道。

特色

  • 70 个 MCP 工具,涵盖查询、变异、分析、恶意软件分流、物联网/嵌入式安全、结构管理、异步反编译和多实例支持
  • 简单设置 ——插件自动启动桥接器;使用MCP>设置>写入Claude配置来配置你的MCP客户端
  • 跨平台——预建的Linux x86_64、Windows x86_64、macOS x86_64和macOS ARM64桥接二进制文件
  • 可配置 ——端口、仅本地主机绑定、API密钥认证、自动启动、通过[[T0]实现桥接启用/禁用]

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

GhidraMCP

A Ghidra extension that exposes 70 reverse-engineering tools to AI assistants through the Model Context Protocol (MCP). Open a binary in Ghidra, enable the plugin, and let Claude (or any MCP client) decompile functions, rename symbols, annotate code, search for vulnerabilities, and more.

Architecture

 AI Client (Claude Desktop / CLI)
        |  stdio + MCP JSON-RPC
        v
   Go MCP Bridge  (mcp_bridge)
        |  TCP, length-prefixed JSON-RPC
        v
   Ghidra Plugin  (MCPServerPlugin)
        |
        v
   Ghidra Program API

The Ghidra plugin (Java) starts a TCP server inside Ghidra and auto-launches the Go bridge binary. The bridge speaks MCP over stdio to the AI client and forwards calls to the Java plugin over a local TCP socket with 4-byte length-prefixed JSON-RPC framing. Optional API-key authentication protects the TCP channel.

Features

  • 70 MCP tools spanning query, mutation, analysis, malware triage, IoT/embedded security, structure management, async decompilation, and multi-instance support
  • Easy setup – plugin auto-starts the bridge; use MCP > Settings > Write to Claude Config to configure your MCP client
  • Cross-platform – prebuilt bridge binaries for Linux x86_64, Windows x86_64, macOS x86_64 and macOS ARM64
  • Configurable – port, localhost-only binding, API-key auth, auto-start, bridge enable/disable via GhidraMCP.properties
  • Multi-instance – work with multiple Ghidra windows simultaneously using target_port to route tool calls
  • Async decompilation – decompile large functions without blocking; poll for results later
  • Connection retry – the bridge reconnects automatically if Ghidra restarts or the connection drops
  • Pagination – large result sets (functions, strings, imports, …) support offset/limit for safe incremental retrieval
  • CI/CD – automated builds, Go + Java tests, Ghidra integration tests, and auto-release when a new Ghidra version drops

Quick Start

Prerequisites

Install

  1. Download the latest release ZIP from Releases
  2. In Ghidra: File > Install Extensions > “+” > select the ZIP
  3. Restart Ghidra

Enable

  1. Open a project and a program (binary)
  2. File > Configure > GhidraMCP – check MCPServerPlugin
  3. The plugin auto-starts the TCP server (default localhost:8765) and launches the bridge
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ghidra": { "command": "/path/to/mcp_bridge", "args": ["--host", "localhost", "--port", "8765"] } } }