REA MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
REA MCP
A hosted, Ghidra-backed remote MCP server for Claude and other MCP clients.
REA MCP lets an AI assistant submit a binary to a remote service, have Ghidra analyze it, and inspect the saved static-analysis report through structured MCP tools.
This is an independent project and is not affiliated with the upstream REA project or the National Security Agency. Ghidra is maintained separately by the NSA.
MCP tools
Analysis lifecycle
Tool | Purpose |
| Upload a Base64 binary and run Ghidra headless analysis. Returns an analysis ID. |
| List stored analyses and their status. |
| Get format, language, compiler, address range, and analysis counts. |
| Compact report dashboard with analysis coverage and available capabilities. |
Functions and decompilation
Tool | Purpose |
| Browse discovered functions with pagination and optional name filtering. |
| Search function names, signatures, and saved pseudocode. |
| Resolve an exact entry address to a function. |
| Get a consolidated function card with pseudocode and bounded assembly. |
| Retrieve Ghidra decompiler pseudocode. |
| Retrieve captured assembly for a function. |
| Search captured assembly lines by mnemonic or text fragment. |
| Find call-like instructions in captured assembly (bounded scan, not a complete call graph). |
| Retrieve two functions side-by-side for AI-assisted comparison. |
Strings
Tool | Purpose |
| Browse/search extracted strings. |
| Search extracted strings by case-insensitive substring with pagination. |
All analysis tools are read-only after import. Uploaded binaries are parsed by Ghidra and are never executed by this service. Assembly and call-site search are limited to instructions captured in the analysis report; they are not a substitute for a full live Ghidra query.
Related MCP server: pyghidra-mcp
Deploy to Render
Push this repository to GitHub.
In Render, create a new Blueprint and select this repository. Render reads
render.yaml.Wait for the Docker build and deployment.
Copy the generated
MCP_API_KEYfrom the Render environment settings. Keep it private.Confirm
https://YOUR-SERVICE.onrender.com/healthzreports"ghidraAvailable": true.The MCP endpoint is
https://YOUR-SERVICE.onrender.com/mcp.
The Docker build downloads Ghidra from the official NSA GitHub releases. The service stores uploaded binaries and reports on the persistent disk mounted at /var/data. Ghidra is memory intensive; 4 GB RAM is a sensible starting point, with larger services recommended for large native libraries. The default upload limit is 64 MiB.
Connect Claude
Configure a remote custom connector in Claude's web settings, then enable it in the Android app.
Open Claude web settings and navigate to Connectors.
Add a custom connector named
REA MCP.Set its URL to
https://YOUR-SERVICE.onrender.com/mcp.Configure bearer-token authentication using the header
Authorization: Bearer YOUR_MCP_API_KEY.Save, then enable REA MCP from Claude Android's tools/connectors control.
Claude's remote MCP requests originate from Anthropic's cloud infrastructure, so the service needs a public HTTPS endpoint. Never put the API key in a prompt or commit it to this repository.
Local development
Requirements: Node.js 22+, npm, Java compatible with your Ghidra release, and a local Ghidra distribution.
npm install
cp .env.example .env
# Set GHIDRA_HOME to your local Ghidra directory.
npm run typecheck
npm test
npm run build
npm startConfiguration
Variable | Default | Description |
|
| HTTP listen port. |
| unset | Bearer token; required in production. |
|
| Ghidra installation directory. |
|
| Persistent analysis storage. |
|
| Maximum decoded upload size. |
|
| Maximum functions recorded per analysis. |
|
| Maximum functions decompiled per analysis. |
|
| Maximum strings recorded per analysis. |
|
| Maximum assembly instructions captured per function. |
|
| Headless analysis timeout (15 minutes). |
Security and limitations
The service is intended for a single owner/API key. Add per-user authentication, quotas, retention controls, and isolated storage before offering public multi-user access.
Uploaded binaries remain on persistent storage. Only upload files you are authorized to analyze.
Ghidra parses untrusted input, so keep it updated and do not treat static parsing as risk-free.
The current tools do not execute uploaded programs, attach to live processes, patch binaries, or run arbitrary shell commands.
Decompilation is capped; a listed function may not have saved pseudocode if it is outside the configured cap or Ghidra cannot decompile it.
License
MIT for this repository's code. Ghidra is a separate third-party dependency under its own license.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to autonomously reverse engineer applications by exposing Ghidra's core functionality through MCP tools. Supports decompiling binaries, analyzing code structure, and automatically renaming methods and data.2Apache 2.0
- AlicenseNot gradedqualityBmaintenanceExposes Ghidra reverse engineering capabilities via MCP, enabling LLMs and agents to analyze binaries, decompile, search, and edit programs headlessly or with GUI integration.465Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA PyGhidra-based MCP server that exposes Ghidra's reverse engineering capabilities to AI agents, enabling binary analysis via tools like overview, search, view, list, edit, script execution, and version control.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely fetch malware samples, run isolated headless Ghidra static analysis, and retrieve decompiled function logic, imports, and strings through callable MCP tools.MIT