- Reverse Engineer Anything Claude integration uses both a local CLI and an MCP Server to let Claude analyze apps, JavaScript, Electron packages, and native binaries
- Start with
npx rea-agents@latest setupto install, then runrea doctorto diagnose missing dependencies - Register the MCP Server in your Claude client config so tools like symbol search and disassembly are discoverable
- Evidence-first workflow: every conclusion must trace to an address, string reference, or runtime observation
- Local analysis only: REA keeps targets on your machine and never sends binaries to remote services
Why Connect Claude to Reverse Engineer Anything?
Reverse Engineer Anything (REA) is an open-source toolkit that turns AI coding agents into reverse engineering assistants. Instead of manually copying disassembly output into a chat window, you connect Claude through the MCP (Model Context Protocol) Server so it can request focused analysis operations — symbol listing, string searches, cross-references, and call graph queries — directly against a local target.
The project supports multiple agents including Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin. The official repository documents the CLI and MCP Server interfaces, evidence recording, and local workflows across native binaries, JavaScript, Electron applications, and browser runtimes (GitHub).
Here is how the two interfaces compare:
| Interface | Audience | Strengths | Typical Use |
|---|---|---|---|
| MCP Server | Claude and other coding agents | Tool discovery, structured results, session state | Agent-driven investigation |
| CLI | Terminal users and scripts | Deterministic commands, batch jobs, pipelines | Triage, automation, evidence export |
Use the CLI when you want repeatable, scripted analysis. Use the MCP Server when you want Claude to decide which question to ask next and cite tool-backed evidence in its answers.
Claude Integration Setup: Step by Step
The setup flow moves from environment preparation to agent connection. Follow these stages in order — most integration failures come from skipping the environment check.
Verify Prerequisites
Confirm Node.js and npm are installed and updated. REA is distributed through npm, so a stale Node runtime is the most common cause of setup failures. Check versions with node -v and npm -v before continuing.
Run the Setup Command
Execute npx rea-agents@latest setup. This initializes the toolkit, confirms the installation plan, and prepares agent configuration files. Review the plan before accepting it.
Diagnose the Environment
Run rea doctor to detect missing dependencies, path errors, or toolchain problems. Fix every reported issue before connecting an agent — unresolved diagnostics usually surface later as MCP startup failures.
Register the MCP Server with Claude
Add the REA server entry to your Claude client's MCP configuration. Use absolute paths, pass only the directories the server needs, and restart the client so it reloads capabilities.
Confirm Tool Discovery
Ask Claude to list available REA tools. If the tool list is empty, check the server startup log and verify the configuration was loaded from the correct file.
Submit a First Investigation
Point the agent at a test target — the official Chrome Dino or Windows Calculator cases are good starting points — and request a focused analysis such as a symbol search or string reference lookup.
If you customize the server, send diagnostics to stderr or a log file — never stdout. Protocol messages and log text sharing the same stream is a leading cause of "server exited immediately" errors in MCP clients.
How Claude Uses REA Tools During Analysis
Once connected, Claude orchestrates an investigation across distinct analysis phases. Each phase maps to specific tool calls, and the agent maintains a working context while you remain responsible for validating behavior.
| Phase | Agent Tasks | Tool Calls | Deliverable |
|---|---|---|---|
| Identify target | Detect file type, architecture, hash | file, sha256sum, metadata tools | Target profile with baseline record |
| Static analysis | List symbols, extract strings, map sections | Disassembler, string extraction | Candidate functions and open questions |
| Trace relationships | Find callers, callees, cross-references | Xref search, call graph query | Focused call relationship map |
| Dynamic analysis | Set breakpoints, inspect registers and memory | Debugger, trace export | Runtime evidence tied to addresses |
| Validate and report | Separate observation from interpretation | Context export, report generator | Reproducible evidence report |
Narrow Requests Win
- Ask for one function or address range at a time
- Focused queries produce verifiable context
- Avoid pasting entire disassemblies into prompts
Evidence Chains Matter
- Every conclusion cites an address or artifact
- Confirmed facts stay separate from hypotheses
- Reports preserve tool inputs and outputs
Human Review Gates
- Read-only extraction can auto-approve
- Debugger attach needs manual confirmation
- Patches and exports require explicit approval
When asking Claude to explain decompiled output, require five sections: inputs and outputs, control-flow summary, memory and state changes, external calls, and uncertain inferences. Demand that every inferred purpose cites a code pattern, caller behavior, or string reference — this prevents the agent from inventing variable meanings.
Security Practices and Workspace Boundaries
Reverse engineering with an agent requires explicit boundaries. REA's local-first design keeps analysis on your machine, but you still control what the server can read, write, and execute.
The baseline permission model:
| Boundary | Recommended Setting | Rationale |
|---|---|---|
| Target access | Read-only, approved directory only | Prevents accidental modification of evidence |
| Output access | Separate writable reports directory | Keeps artifacts isolated from targets |
| Process execution | Approved disassembler/debugger commands only | Blocks arbitrary shell execution |
| Network access | Disabled unless explicitly required | Unknown binaries stay contained |
| Sensitive files | Outside the analysis root entirely | Credentials never enter agent context |
Use a disposable virtual machine or container for any unknown target. Record the SHA-256 hash before and after analysis to verify the source file never changed, and keep the original target read-only throughout the investigation.
Pre-Investigation Security Checklist:
- Isolated VM or container prepared for the target
- SHA-256 hash recorded before analysis begins
- Server filesystem access limited to the analysis root
- Human approval required before executing the target
- Reports directory separated from the target directory
Troubleshooting the Claude Connection
Most integration problems fall into a few recognizable categories. Use symptom-first diagnosis: reproduce the failure, collect the smallest useful output, and apply the narrowest fix.
| Symptom | Likely Cause | First Check |
|---|---|---|
| Server exits immediately | Wrong path or missing dependency | Run the server command manually as the same user |
| Empty tool list | Registration after init or stale cache | Review startup log, restart the client |
| Permission denied | Target outside approved workspace | id, then ls -ld on the analysis directory |
| Requests time out | Whole-file analysis for a narrow question | Add address-range or function filters |
| Context overflow | Entire disassembly pasted into prompt | Pass artifact paths, retrieve excerpts |
When debugging a broken integration, temporarily reduce your server to a single read-only health tool. Once that works end to end, add analysis tools back one at a time — this isolates whether the fault is in transport or in a specific tool's schema.
For deeper coverage, the official documentation at rea.tools and the GitHub repository include showcase cases such as the Chrome Dino speed analysis and the Windows Calculator percent-logic investigation, plus a Discord community for setup help.
FAQ
Q: Does Reverse Engineer Anything work with Claude specifically?
Yes. REA documents agent integrations for Claude alongside Cursor, Codex, Gemini CLI, Windsurf, and Devin. Claude connects through the MCP Server registered in its client configuration, or you can use the CLI workflow manually in any terminal-based setup.
Q: Do I need the MCP Server, or is the CLI enough?
The CLI alone is fully usable for scripted analysis: identify targets, extract strings, disassemble sections, and export reports. The MCP Server becomes valuable when you want Claude to autonomously select and invoke analysis tools while citing evidence for each conclusion.
Q: Can REA recover the original source code of an application?
No. The project emphasizes evidence-backed analysis and reproducible investigation workflows rather than recovering original source or copying software. It produces decompiled views, call graphs, and documented findings that a human researcher can verify.
Q: What targets can Claude analyze through REA?
Documented target types include native binaries, JavaScript, Electron applications, websites, browser runtimes, and Android APKs. Official showcases cover Chrome Dino, Windows Calculator, Electron apps, and native program analysis.
**Component check:** 6 `<Section>` / 6 `</Section>` (parallel, no nesting); 6 `<Step>` / 6 `</Step>` inside one `<Steps>`; 3 `<Card>` / 3 `</Card>` inside one `<CardGrid>`; Callouts present in every Section (info, tip, warning, info, warning, success); 4 tables; 1 Steps, 1 Checklist, 1 FAQ; no videos embedded (no relevant sources contained the topic keyword).
## Related Articles
- [Reverse Engineer Anything Coding Agent: Setup Guide & Workflows](/agents/reverse-engineer-anything-coding-agent)
- [Reverse Engineer Anything DeepSeek AI: Setup & Workflow Guide](/agents/reverse-engineer-anything-deepseek-ai)
- [Reverse Engineer Anything Free: Setup Guide for AI Agents](/setup/reverse-engineer-anything-free)
- [Reverse Engineer Anything: Clone Software Step-by-Step](/software/reverse-engineer-anything-clone-software)