Reverse Engineer Anything Install: Setup Guide & MCP Config - セットアップ

Reverse Engineer Anything Install: Setup Guide & MCP Config

Install Reverse Engineer Anything (REA) step by step: prerequisites, CLI setup, doctor diagnostics, MCP server configuration, and agent integration tips.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • 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 doctor when 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:

ComponentPurposeBest ForInterface
REA CLITerminal analysis commands (analyze, inspect, search, xrefs, trace)Scripting, batch jobs, manual investigationShell
REA MCP ServerExposes tools to coding agents over the Model Context ProtocolClaude, Cursor, Codex, Gemini CLI, Windsurf, DevinMCP client
Setup wizardInteractive install and agent detectionFirst-time usersnpx rea-agents@latest setup
Doctor commandEnvironment diagnosticsTroubleshooting missing dependenciesShell

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
Scope Note

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.

RequirementDetailsWhy It Matters
Node.js runtimeCurrent LTS version with npm/npxRuns the CLI and setup wizard
Supported OSmacOS, Linux, or Windows with a working shellNative and Electron analysis vary by platform
Analysis workspaceDedicated directory for targets and reportsKeeps originals read-only and separate from output
MCP clientClaude Desktop, Cursor, or another MCP-compatible agentRequired for agent-driven tool calls
Optional toolsDisassembler or debugger such as Ghidra or GDBExtends native binary analysis depth
1

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.

2

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.

3

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.

4

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.

5

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.

Configuration Tip

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"
      }
    }
  }
}
SettingRecommended ValueNotes
commandAbsolute path to the runtimeAvoids agent launch failures
env workspaceDedicated analysis rootRead-only for targets, writable for reports
transportstdio for local setupsHost launches server as a child process
networkDisabled unless requiredSafer default for unknown binaries
loggingDiagnostics to stderr or fileKeeps the protocol stream clean
Common Startup Failure

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

SymptomLikely CauseFix
Server exits immediatelyBad path or missing dependencyRun the command manually; reinstall deps in the agent's environment
No tools discoveredRegistration after init or invalid schemaRegister tools at startup; restart the MCP client
Permission deniedTarget outside approved workspaceMove inputs under the configured analysis root
Analysis times outWhole-file analysis for narrow questionsAdd range or function limits; split into bounded jobs
Behavior differs by OSShell syntax and path differencesUse 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
When to Ask for Help

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.

Related Articles