Reverse Engineer Anything Claude: Setup & MCP Workflow Guide - エージェント

Reverse Engineer Anything Claude: Setup & MCP Workflow Guide

Connect Claude to Reverse Engineer Anything via MCP and CLI. Learn setup, tool discovery, evidence workflows, and agent integration best practices.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • 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 setup to install, then run rea doctor to 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:

InterfaceAudienceStrengthsTypical Use
MCP ServerClaude and other coding agentsTool discovery, structured results, session stateAgent-driven investigation
CLITerminal users and scriptsDeterministic commands, batch jobs, pipelinesTriage, automation, evidence export
Choose the Right Entry Point

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.

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

Stdout Corrupts the Protocol Stream

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.

PhaseAgent TasksTool CallsDeliverable
Identify targetDetect file type, architecture, hashfile, sha256sum, metadata toolsTarget profile with baseline record
Static analysisList symbols, extract strings, map sectionsDisassembler, string extractionCandidate functions and open questions
Trace relationshipsFind callers, callees, cross-referencesXref search, call graph queryFocused call relationship map
Dynamic analysisSet breakpoints, inspect registers and memoryDebugger, trace exportRuntime evidence tied to addresses
Validate and reportSeparate observation from interpretationContext export, report generatorReproducible 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
Prompt Pattern for Decompiled Code

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:

BoundaryRecommended SettingRationale
Target accessRead-only, approved directory onlyPrevents accidental modification of evidence
Output accessSeparate writable reports directoryKeeps artifacts isolated from targets
Process executionApproved disassembler/debugger commands onlyBlocks arbitrary shell execution
Network accessDisabled unless explicitly requiredUnknown binaries stay contained
Sensitive filesOutside the analysis root entirelyCredentials never enter agent context
Analyze Unknown Binaries in Isolation

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.

SymptomLikely CauseFirst Check
Server exits immediatelyWrong path or missing dependencyRun the server command manually as the same user
Empty tool listRegistration after init or stale cacheReview startup log, restart the client
Permission deniedTarget outside approved workspaceid, then ls -ld on the analysis directory
Requests time outWhole-file analysis for a narrow questionAdd address-range or function filters
Context overflowEntire disassembly pasted into promptPass artifact paths, retrieve excerpts
Start Minimal

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)