- Reverse Engineer Anything install starts with a single command:
npx rea-agents@latest setup - Two interfaces: REA ships as both a CLI and an MCP Server for AI coding agents
- Prerequisites: a supported Node.js environment and a local analysis workspace
- Diagnostics first: run
rea doctorwhen installation or agent detection fails - Local-first design: analysis runs on your machine with evidence chains, not cloud recovery
What You Install With Reverse Engineer Anything
Reverse Engineer Anything (REA) is an open-source reverse engineering toolkit built for AI coding agents. Installing it gives you two connected pieces: a CLI for terminal-driven analysis and an MCP Server that lets agents such as Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin call analysis tools directly. The project emphasizes local analysis, evidence-backed findings, and reproducible investigation workflows rather than automatic source recovery.
Before installing, confirm which entry point matches your workflow:
| Component | Purpose | Best For | Interface |
|---|---|---|---|
| REA CLI | Terminal analysis commands (analyze, inspect, search, xrefs, trace) | Scripting, batch jobs, manual investigation | Shell |
| REA MCP Server | Exposes tools to coding agents over the Model Context Protocol | Claude, Cursor, Codex, Gemini CLI, Windsurf, Devin | MCP client |
| Setup wizard | Interactive install and agent detection | First-time users | npx rea-agents@latest setup |
| Doctor command | Environment diagnostics | Troubleshooting missing dependencies | Shell |
Agent-Driven Analysis
- MCP tool calls for symbols, strings, cross-references
- Evidence recorded per investigation
- Works with 6+ coding agents
Terminal Workflows
- CLI commands for repeatable analysis
- Scriptable pipelines
- Output export for reports
Local and Reproducible
- Analysis runs locally
- Hash-verified targets
- Investigation records you can share
REA assists with analysis and reconstruction of behavior. It is not designed to recover original source code or bypass software protections. Only analyze software you are authorized to investigate.
Install Reverse Engineer Anything: Step-by-Step
The recommended install path uses the official setup command, which prepares the environment, registers the MCP Server, and detects installed coding agents.
| Requirement | Details | Why It Matters |
|---|---|---|
| Node.js runtime | Current LTS version with npm/npx | Runs the CLI and setup wizard |
| Supported OS | macOS, Linux, or Windows with a working shell | Native and Electron analysis vary by platform |
| Analysis workspace | Dedicated directory for targets and reports | Keeps originals read-only and separate from output |
| MCP client | Claude Desktop, Cursor, or another MCP-compatible agent | Required for agent-driven tool calls |
| Optional tools | Disassembler or debugger such as Ghidra or GDB | Extends native binary analysis depth |
Prepare the environment
Install a current Node.js LTS release and verify it from the terminal with node --version and npm --version. Keep REA in a dedicated project directory so analysis targets and generated reports never mix with personal files.
Run the setup wizard
Execute npx rea-agents@latest setup. The wizard confirms the install plan, initializes the CLI, and checks which coding agents are present on your machine so it can register the MCP Server in the right configuration files.
Verify with doctor
Run the diagnostic command to detect missing dependencies, path errors, or agents that were not detected. Fix anything reported before connecting an agent, since most startup failures trace back to the issues doctor surfaces.
Register the MCP Server
Add the REA server entry to your MCP client configuration using stdio transport. Point the server at your approved analysis workspace and pass only the directories it needs.
Run a first analysis
Pick a small, safe target and ask the agent a narrow question, such as listing symbols or finding string references. Confirm that tool calls appear, complete, and return evidence you can verify.
Use absolute paths in MCP configuration files and keep target directories separate from report output directories. Do not grant the server unrestricted access to your home directory.
MCP Configuration Examples
A typical stdio registration in an MCP client looks like this:
{
"mcpServers": {
"reverse-tools": {
"command": "node",
"args": ["/opt/reverse-tools/dist/index.js"],
"env": {
"REVERSE_WORKSPACE": "/analysis/workspace",
"PATH_ALLOWLIST": "/analysis/workspace/targets"
}
}
}
}
| Setting | Recommended Value | Notes |
|---|---|---|
| command | Absolute path to the runtime | Avoids agent launch failures |
| env workspace | Dedicated analysis root | Read-only for targets, writable for reports |
| transport | stdio for local setups | Host launches server as a child process |
| network | Disabled unless required | Safer default for unknown binaries |
| logging | Diagnostics to stderr or file | Keeps the protocol stream clean |
If the server exits immediately, the usual causes are a wrong executable path, missing dependencies in the environment the agent actually uses, or log text written to stdout that corrupts the protocol stream. Reproduce the exact launch command manually under the same user account to isolate the cause.
Troubleshooting the Install
| Symptom | Likely Cause | Fix |
|---|---|---|
| Server exits immediately | Bad path or missing dependency | Run the command manually; reinstall deps in the agent's environment |
| No tools discovered | Registration after init or invalid schema | Register tools at startup; restart the MCP client |
| Permission denied | Target outside approved workspace | Move inputs under the configured analysis root |
| Analysis times out | Whole-file analysis for narrow questions | Add range or function limits; split into bounded jobs |
| Behavior differs by OS | Shell syntax and path differences | Use cross-platform path handling; pin tool versions |
Post-Install Verification:
- Node.js and npx run without errors
- Setup wizard completed and detected at least one agent
- rea doctor reports no blocking issues
- MCP server appears in the agent tool list
- First narrow analysis returns verifiable evidence
If doctor cannot resolve an issue, the official GitHub Issues tracker and the Discord community linked from the REA website are the fastest channels for install questions and bug reports.
FAQ
Q: How do I install Reverse Engineer Anything?
Run `npx rea-agents@latest setup` in a terminal with a current Node.js LTS runtime. The wizard initializes the CLI, registers the MCP Server, and detects installed coding agents. Follow it with a diagnostic run to confirm the environment is healthy.
Q: Do I need both the CLI and the MCP Server?
No. The CLI serves terminal users and scripted workflows, while the MCP Server is for AI coding agents. Many users install both, but you can start with whichever matches how you plan to investigate targets.
Q: Which agents work with Reverse Engineer Anything?
The project supports MCP-compatible coding agents including Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin. Each has its own configuration format for registering the REA MCP Server.
Q: Why does my MCP server not start after install?
The most common causes are an incorrect executable path, dependencies missing from the environment the agent launches, or log output polluting stdout. Reproduce the exact server command manually under the same user, then use the doctor command to verify the environment.