1G

13bm/ghidramcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

151 stars 22 forks Качество 74 Тренд 8Apache-2.0

13bm/ghidramcp — это кандидат на MCP-сервер, импортированный из https://github.com/13bm/ghidramcp.

Обзор

13bm/ghidramcp — это кандидат на MCP-сервер, импортированный из https://github.com/13bm/ghidramcp.

Обзор (машинный перевод)

Расширение Ghidra, которое предоставляет 70 инструментов обратного инжиниринга для ассистентов ИИ через протокол Model Context Protocol (MCP). Откройте бинарный файл в Ghidra, включите плагин и позвольте Claude (или любому клиенту MCP) декомпилировать функции, переименовывать символы, аннотировать код, искать уязвимости и многое другое.

Архитектура

Плагин Ghidra (Java) запускает TCP-сервер внутри Ghidra и автоматически запускает бинарный файл Go bridge. Мост передаёт MCP через stdio с AI-клиентом и пересылает вызовы на Java-плагин через локальный TCP-сокет с фрейминг JSON-RPC с префиксом JSON-RPC длиной 4 байта. Опциональная аутентификация API-ключа защищает TCP-канал.

Особенности

  • 70 MCP-инструментов охватывающих запросы, мутации, анализ, сортировку вредоносного ПО, IoT/встроенную безопасность, управление структурами, асинхронную декомпиляцию и поддержку нескольких экземпляров
  • Простая настройка — плагин автоматически запускает мост; используйте MCP > Настройки > Запись в Claude Config для настройки вашего MCP-клиента
  • Кроссплатформенный — готовые мостовые бинарные коды для Linux x86_64, Windows x86_64, macOS x86_64 и macOS ARM64
  • Configurable – порт, привязка только localhost, аутентификация API-ключа, автозапуск, включать/отключить мост через GhidraMCP.properties

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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
Открыть полный README на GitHub

Установка

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

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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