Skip to main content
Glama

FastREA ⚑

FastREA is an ultra-lightweight, zero-overhead Model Context Protocol (MCP) server for binary decompilation. Inspired by the core concepts of morluto/rea, it eliminates heavy multi-agent loops and complex dependencies. Instead, it provides your LLM with a single, laser-focused capability: Convert native binaries into clean C source code instantly using headless Ghidra.


πŸ› οΈ Architecture Overview

The system consists of only two files:

  1. setup.py: A one-time initialization script that automatically scans your environment, detects Ghidra, and registers FastREA across your IDEs and Claude Desktop config files.

  2. main.py: The lightweight stateless MCP engine called by the model to orchestrate headless Ghidra execution and stream pure C output directly into the model context.


Related MCP server: ghidra-mcp

πŸ“¦ Dependencies & Installation

FastREA relies on minimal external components. Ensure you have Python 3.10+ and Ghidra installed locally.

Required Python Libraries

To run the MCP engine, you must install the official Model Context Protocol Python SDK. Run the following command in your terminal:

pip install mcp

πŸš€ Quick Start

1. Provision Environment

Run the automated configuration script. It will automatically scan common paths for Ghidra and inject the FastREA integration directly into Claude Desktop and Cursor configurations:

python setup.py

2. Execution & Usage

Restart your Claude Desktop application or Cursor IDE. You can now prompt your model naturally to handle binary reversing workflows:

"Use fastrea to analyze the binary at /absolute/path/to/target.exe and explain its primary protection routines."

πŸ”„ Under the Hood Process:

  1. The model detects your instruction and triggers the fastrea_analyze MCP tool inside main.py.

  2. main.py dynamically writes a clean Java decompile script and boots Ghidra in headless mode.

  3. Ghidra exports a flat target.exe_decompiled.c source file directly in the executable's directory.

  4. FastREA reads the file contents and provides the structured code back to the LLM.

  5. The model parses the pristine raw C source code flawlessly without any context bloat.


πŸ“„ License

This project is open-source and licensed under the MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A headless Ghidra server that enables AI agents to perform deep reverse-engineering tasks such as disassembly, decompilation, and patching via the Model Context Protocol. It supports extensive automation of analysis workflows in sandboxed environments through a catalog of over 200 specialized tools.
      200
      GPL 2.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to import, disassemble, and debug binaries directly so they can perform cross-reference reasoning, rename stripped functions, and recover structure layouts during native reverse-engineering workflows. It integrates with offline ELF reconnaissance output to support symbol and struct recovery without opening the Ghidra GUI.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to analyze and diff binaries by driving Ghidra headless or inside its GUI, exposing native reverse-engineering tools such as listing functions and segments, searching strings, decompiling, disassembling, and following cross-references. Ships with a devcontainer and supports local stdio or remote HTTP deployment.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Bridges Ghidra's reverse engineering capabilities into AI tools, enabling decompilation, function and data-flow analysis, structure creation, renaming and commenting, plus P-code emulation and live debugging. Exposes 209 tools with batch operations and cross-binary documentation transfer for both GUI and headless workflows.
      Apache 2.0