- Reverse Engineer Anything MCP exposes analysis tools to AI coding agents through a local server.
- Two interfaces: REA ships a CLI for terminal users and an MCP Server for agent tool calls.
- Evidence-first design: every conclusion must link to functions, addresses, or runtime traces.
- Local analysis: workflows run on your machine instead of uploading targets to remote services.
- Six-plus agent integrations: Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin are supported.
What Is Reverse Engineer Anything MCP?
Reverse Engineer Anything MCP is the Model Context Protocol half of the REA toolkit, an open-source project that lets AI coding agents inspect applications, websites, JavaScript bundles, Electron packages, and native binaries. Instead of manually pasting disassembly into a chat window, you register a local MCP server, and the agent requests narrowly scoped operations such as listing symbols, finding string references, or summarizing callers.
The project's core design principle is separation: the AI host never gets unrestricted system access. Every tool call passes through typed schemas, workspace restrictions, and path validation. The agent coordinates; the server executes. You can explore the project on the official GitHub repository and the REA website.
| Interface | Audience | Primary Use | Example Operations |
|---|---|---|---|
| MCP Server | AI coding agents | Structured tool calls | list_symbols, find_strings, xrefs |
| CLI | Terminal users | Scripted local analysis | analyze, inspect, search, trace |
MCP keeps the agent and the analysis tools decoupled. The agent can request a specific operation, like decompiling one function, without gaining broad filesystem or process privileges. This makes AI-assisted reverse engineering auditable and repeatable.
Supported Agents and Targets
REA connects to more than six coding agent environments and handles a wide range of analysis targets. Match the target type to the right investigation method before you start.
| Agent | Integration Style | Best For |
|---|---|---|
| Claude / Claude Code | MCP config + skills | Long investigation sessions |
| Cursor | Project-level MCP config | IDE-embedded analysis |
| Codex | MCP tool registration | Automated pipelines |
| Gemini CLI | MCP server connection | Terminal-first workflows |
| Windsurf | MCP client setup | Flow-based development |
| Devin | Remote agent + gateway | Delegated long tasks |
Native Binaries
- Functions and symbols
- Cross-references
- Disassembly and pseudocode
Electron Apps
- ASAR extraction
- Main/Renderer/Preload split
- IPC channel tracing
JavaScript
- Bundle inspection
- Entry-point mapping
- Source map recovery
Websites & APKs
- Runtime observation
- Network behavior
- Android package analysis
REA is built for analysis, evidence collection, and reconstruction learning. It is not designed to recover original proprietary source code or help clone commercial software. Respect licenses and local law before analyzing any target.
Step-by-Step: Connecting an Agent to REA MCP
Follow this sequence to go from a clean machine to an agent making evidence-backed tool calls.
Prepare an isolated workspace
Create a dedicated analysis directory. Keep the original target read-only, record its SHA-256 hash, and store reports separately from source files. Disable network access unless a specific step requires it.
Install and run setup
Initialize the toolkit with npx rea-agents@latest setup. Confirm Node.js is available, then verify the installation with rea doctor, which checks for missing dependencies, path errors, and environment problems.
Register the MCP server
Add the server command, arguments, and a restricted environment to your agent's MCP configuration. Use stdio for local development, and pass only the directories the server genuinely needs.
Confirm tool discovery
Restart or reload the agent and verify that the analysis tools appear in the host. Run one small read-only call, such as a metadata or hash query, before deeper investigation.
Run focused analysis requests
Ask narrow questions: list symbols, locate references to a specific string, decompile one function, or trace callers of a selected address. Focused requests produce context you can actually validate.
Validate and preserve evidence
Reproduce important conclusions with the underlying tool directly. Record addresses, function names, and inputs, then save the report alongside the target hash so the investigation is reproducible.
Treat the agent as an analysis assistant, not an authority. Every accepted conclusion should trace back to a concrete function, address, string reference, or runtime observation you can recheck yourself.
Security and Permission Practices
Safe AI-assisted reverse engineering depends on boundaries enforced by the server, not by the agent's good behavior. Apply the same restrictions whether a request comes from an agent, a test harness, or a local script.
| Control | Recommended Setting | Rationale |
|---|---|---|
| Target root | Approved targets directory only | Blocks arbitrary file reads |
| Write access | Reports and temp artifacts only | Prevents source modification |
| Process access | Approved disassembler/debugger commands | Blocks arbitrary execution |
| Network | Disabled unless required | Limits data exfiltration risk |
| Subprocesses | Timeouts and output limits | Prevents runaway jobs |
| Logging | Tool name, inputs, status, timestamps | Enables audit and reproduction |
Pre-Analysis Security Checklist:
- Record target SHA-256 hash before analysis
- Resolve paths against the approved workspace root
- Reject path traversal and symlink escapes
- Keep credentials outside the analysis directory
- Require manual approval before executing unknown binaries
Do not grant the MCP server unrestricted read access to your home folder. Pass only the specific target and report directories, and keep unrelated personal files and secrets outside the server's working environment.
Troubleshooting Common MCP Issues
Most failures fall into a few predictable categories. Diagnose by symptom, then apply the narrowest fix.
| Symptom | Likely Cause | First Fix |
|---|---|---|
| Server exits immediately | Wrong path or missing dependency | Run the server command manually under the same user |
| No tools discovered | Registration after init or bad schema | Register tools during initialization; restart client |
| Permission denied | File outside approved root | Move input into the analysis workspace |
| Analysis times out | Whole-file job for a narrow question | Add range, function, or result-limit parameters |
| Context window overflows | Entire disassembly pasted into prompt | Pass artifact paths and retrieve excerpts only |
| Behavior differs across OS | Shell syntax and path separators | Use cross-platform path libraries; pin tool versions |
When debugging a broken setup, strip the server down to one read-only health tool. Once the transport, discovery, and permissions work, add real analysis operations one at a time.
FAQ
Q: What is Reverse Engineer Anything MCP used for?
It is the MCP Server component of the REA toolkit. It lets AI coding agents like Claude, Cursor, and Gemini CLI call structured reverse engineering tools locally, covering native binaries, Electron apps, JavaScript, websites, and APKs.
Q: Does REA recover original source code?
No. The project focuses on local analysis, evidence chains, and reproducible investigation workflows. It does not aim to restore proprietary source or automate software copying.
Q: How do I connect my coding agent to the REA MCP server?
Run `npx rea-agents@latest setup`, check the environment with `rea doctor`, then add the server command and restricted environment variables to your agent's MCP configuration. Restart the host and confirm the tools appear.
Q: Why should analysis run in an isolated environment?
Unknown binaries may behave unexpectedly. A disposable VM or container, a read-only target, a recorded hash, and disabled network access keep both your system and your evidence safe and reproducible.