Reverse Engineer Anything: Setup Guide for MCP & CLI - 소프트웨어

Reverse Engineer Anything: Setup Guide for MCP & CLI

Learn how Reverse Engineer Anything connects AI coding agents to binary, Electron, and web analysis through local MCP server and CLI workflows.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents inspect apps, websites, JavaScript, and native binaries.
  • Dual interfaces: a local CLI for terminal users and an MCP server for agent tool calls.
  • Evidence-first design: every investigation produces a reproducible chain of evidence, not guesses.
  • Local analysis: work runs on your machine, with agent integrations including Claude, Cursor, Codex, and Gemini CLI.
  • Quick start: initialize a project with npx rea-agents@latest setup.

What Reverse Engineer Anything Actually Does

Reverse Engineer Anything, often shortened to REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. Instead of trying to recover original source code or automate software cloning, REA focuses on three things the project treats as core: local analysis, an evidence chain, and a reproducible investigation process.

The project ships two interfaces. The CLI serves terminal users who want deterministic, scriptable commands such as analyze, inspect, search, function, xrefs, and trace. The MCP server exposes the same capabilities as typed tools that a coding agent can discover and call, which keeps the agent's access explicit and constrained rather than giving it a raw shell.

The official project on GitHub and the rea.tools website document supported targets and integrations. According to the official site's snapshot, the repository has accumulated roughly 129K+ stars, supports 6+ coding agent integrations, and offers 20+ locales.

REA CapabilityInterfaceWhat It Produces
Target identification (format, architecture, hash)CLI + MCPTarget profile with SHA-256 baseline
String and symbol discoveryCLI + MCPSearchable inventories with offsets
Function and cross-reference analysisCLI + MCPCall relationships, candidate functions
Runtime observationCLI-driven debugger workflowsTraces linked to instructions and inputs
Evidence recordingBothReproducible report with artifacts
Scope Note

REA is designed for legitimate analysis of software you are authorized to investigate. The project emphasizes evidence and understanding, not copying or redistributing third-party software.

Supported Targets and Analysis Approaches

Different targets need different toolchains. REA's official showcases include Chrome Dino, Windows Calculator, Android APKs, Electron apps, and native programs, which illustrates the breadth of the target matrix.

Target TypeKey ArtifactsAnalysis Focus
Native binaries (ELF, PE, Mach-O)Sections, symbols, importsDisassembly, cross-references, call graphs
Electron appsASAR package, package.jsonMain/Renderer/Preload processes, IPC flow
JavaScript / websitesBundles, source mapsEntry points, runtime behavior
Android APKsManifest, DEX resourcesPermissions, entry activities, logic
Browser runtimesLive page stateDOM, network, runtime observations

Static Analysis

  • Symbol and section inventories
  • String extraction with offsets
  • Cross-reference tracing
  • No target execution required

Dynamic Analysis

  • Debugger-driven breakpoints
  • Register and memory inspection
  • Controlled execution traces
  • Validates static hypotheses

Evidence Chain

  • Hash-verified baselines
  • Tool-call logs with inputs
  • Separated facts vs. open questions
  • Reproducible final reports
Start Non-Invasive

Before opening a debugger, always run file identification, hashing, and string extraction. A basic target profile frequently answers the first questions at zero risk.

Setup: From Install to First Analysis

REA bootstraps a project with a single command and a guided setup flow. The rea setup command handles installation planning, while rea doctor diagnoses missing dependencies, path errors, or Node.js issues.

1

Check prerequisites

Confirm Node.js and npm are installed and your operating system is supported. Run node --version before anything else so version mismatches surface early.

2

Initialize the project

Run npx rea-agents@latest setup. The setup wizard confirms the installation plan, detects agent configurations, and prepares the local workspace.

3

Diagnose the environment

Run rea doctor to check for missing dependencies, broken paths, or toolchain problems. Fix every reported issue before connecting an agent.

4

Connect your coding agent

Register the MCP server in your agent's configuration (Claude Desktop, Cursor, Codex, Gemini CLI, Windsurf, or Devin). Restart the host and confirm the REA tools appear.

5

Run a first investigation

Pick a benign target, ask the agent for a symbol or string search, then request a function summary. Export the context for human review.

Environment Isolation

For unknown binaries, use a disposable VM or container. Keep the original target read-only, record its SHA-256 hash, and separate reports from source files.

MCP Security and Permission Model

Because an MCP server mediates between an AI host and local analysis tools, boundaries matter. A well-configured REA setup enforces the same restrictions whether a request comes from an agent, a test harness, or a local script.

A typical permission policy looks like this:

ResourceRecommended Policy
Target filesRead-only, restricted to approved analysis root
Output directoryWritable for reports and artifacts only
Process executionAllowlisted disassembler/debugger commands
Network accessDisabled unless a workflow requires it
SubprocessesTimeouts and output size limits
LoggingTool name, input summary, timestamps, exit status
Path Validation

Resolve paths before checking allowlists, and reject path traversal or symbolic-link escapes. Never grant the server unrestricted home-directory access.

Before Connecting an Agent:

  • Restrict the server to an explicit analysis root
  • Require confirmation before executing unknown binaries
  • Keep credentials outside the server working directory
  • Log every tool call with inputs and exit status
  • Verify the target hash after analysis completes

Troubleshooting Common Issues

Most REA failures fall into a handful of categories. Use a symptom-first approach: reproduce the failure, collect the smallest useful diagnostic output, then apply the narrowest fix.

SymptomLikely CauseFirst Check
MCP server exits immediatelyWrong path or missing dependencyRun the server command manually
Tools not discoveredRegistration after init, cached capabilitiesReview startup log, restart client
Decompilation incompleteStripped binary, wrong architecturefile and readelf on the target
Permission deniedFile outside approved workspaceid and directory permissions
Analysis times outWhole-file job for a narrow questionAdd range or function parameters
Context window overflowEntire disassembly in promptPass paths, retrieve excerpts
Minimal Server First

When debugging MCP startup, begin with a server exposing one read-only health tool. Expand capabilities only after the transport and discovery layers work.

FAQ

Q: Does Reverse Engineer Anything recover original source code?

No. REA is built for analysis, evidence gathering, and reproducible investigation. It helps agents explain and reconstruct behavior, but it does not aim to restore original source or automate software copying.

Q: Which coding agents work with Reverse Engineer Anything?

The official documentation lists configuration or integration support for Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin, connected through the MCP server or CLI workflows.

Q: What is the difference between the CLI and the MCP server in REA?

The CLI serves terminal users with deterministic commands like analyze, search, and xrefs. The MCP server exposes the same capabilities as typed tools that an AI coding agent can discover and call under constrained permissions.

Q: How do I keep an AI agent from guessing instead of analyzing?

Use the evidence chain. Require every conclusion to cite an address, artifact, or trace; separate confirmed observations from inferences; and reproduce important findings with the underlying tool before accepting them.

Related Articles