REA MCP setup for Claude Code, Cursor and other agents
Unofficial guide. This site is an independent community guide and is not affiliated with the REA project. For authoritative docs see the official REA website and the morluto/rea GitHub repository. Commands here are taken from the official README/docs (checked 2026-10-25); REA changes quickly, so verify against the official docs.
Short answer: REA MCP is the Model Context Protocol server from rea-agents that lets coding agents reverse-engineer apps. Connect it with one command, then restart the agent:
npx rea-agents@latest setup
Pick Claude Code, Cursor, or other clients; setup writes mcpServers.rea (or the Codex TOML equivalent) and installs the skill. Verify with rea doctor --client <id> --json. Details and real config below.
Interactive setup
npx rea-agents setupSetup shows supported agents in a multi-select. Existing REA registrations are preselected; newly detected clients stay unselected until you pick them. Review the exact paths, approve, then restart the agent.
Claude Code + Cursor in one command
Each --client flag skips the interactive question. Preview first with --dry-run (read-only):
rea setup --client claude_code --client cursor --dry-run
rea setup --client claude_code --client cursor(Use npx rea-agents setup ... if you didn't install the CLI globally.) Add --skill=false to skip the workflow instructions.
Client IDs
| Agent | --client |
|---|---|
| Claude Code | claude_code |
| Claude Desktop | claude_desktop |
| Cursor | cursor |
| Codex | codex |
| Gemini CLI | gemini_cli |
| Windsurf | windsurf |
| VS Code | vscode |
| GitHub Copilot CLI | copilot_cli |
| OpenCode | opencode |
| Qwen Code | qwen_code |
| Trae | trae |
Full list: official supported agents. Other MCP clients can use manual MCP registration described in the official docs.
Where the skill goes
Claude Code skills install to ~/.claude/skills (or $CLAUDE_CONFIG_DIR/skills); many other integrations use ~/.agents/skills.
Verify the connection
rea doctor --client claude_code --json
rea doctor --client cursor --json
First prompt to try
Understand how search works in the Notes app, show me the evidence, and build a
similar feature for my project.Tested on 2026-10-17: Debian 13 x64, rea-agents 6.5.0, Node.js 20.19.2 and 22.20.0, run in a throwaway HOME folder so no real agent config was touched. Outputs are copied from the terminal; long ones are trimmed with "…".
Where setup writes the REA entry
We ran setup for every supported client in a test home folder. The full terminal output of a real run is on the install page. Below are only the per-client details.
| Client | File (Linux) | Notes |
|---|---|---|
| Claude Code | ~/.claude.json | updated in place; original saved as ~/.claude.json.rea.backup. Skill: ~/.claude/skills/reverse-engineer-anything/. More: Claude guide |
| Cursor | ~/.cursor/mcp.json | mcpServers.rea block; restart Cursor |
| Codex | ~/.codex/config.toml | TOML with startup_timeout_sec = 30. Full walkthrough: Codex guide |
| VS Code | ~/.config/Code/User/mcp.json | top-level servers key, "type": "stdio" |
| 20 other agents | various | exact snippet and path in the config generator |
Every client gets the same server command, npx -y rea-agents@<version> mcp, pinned to the version you ran setup with: 6.5.0 in the run above, 6.8.0 (npm latest as of 2026-10-25; we re-ran setup for all 24 clients on 6.8.0 and every entry matched the 6.7.0 output except the version) if you run setup now. The JSON shape used by Claude Code, Cursor and most others is shown once on the install page.
Adding REA by hand (other MCP clients)
If your client isn't in the --client list, register a stdio server named rea with command npx and args ["-y", "rea-agents@<version>", "mcp"] in that client's MCP config, then restart it. Pin a version, as setup does, so tools don't change between sessions.
Check the connection
rea doctor --client <id> checks only the registration you name. healthy: true means Node and that registration are fine. environment_healthy: false only means no native engine (Ghidra, Hopper or IDA) is set up yet, which JavaScript, Electron and .NET targets don't need. A real Codex doctor run is on the Codex page.
Common setup problems
- Node too old: doctor shows
name: node, ok: false, classification: missing_dependency. See install. - Nothing written when run from a script: setup returns
status: needs_confirmation. Add--yes. - Too many tools for the model's context: set
REA_MCP_INPUT_SCHEMA_PROFILE=compactin the server'senv(details). - Gemini models return 400 INVALID_ARGUMENT: see cause and fixes.
- Dry run prints nothing: pipe it through
| cator add--json(known bug).
Sources: client-configuration.md · supported agents
Using Claude? See REA with Claude Code & Claude Desktop (real config, doctor output, and the Claude Desktop "expected object, received string" fix).
Want the exact snippet for your agent? Use the REA MCP config generator (24 agents, captured from real setup runs).
FAQ
What is REA MCP?
REA MCP is the reverse-engineering MCP server shipped in the npm package rea-agents. Coding agents call it over Model Context Protocol to inspect binaries, Electron apps, APKs and more. Setup registers a server named rea that runs npx -y rea-agents@VERSION mcp.
How do I set up REA MCP?
Run npx rea-agents@latest setup, select your agents (or pass --client), approve the plan, restart the agent, then check with rea doctor --client CLIENT_ID --json.
How do I add REA to Claude Code?
Run npx rea-agents setup and select Claude Code, or run rea setup --client claude_code. Then restart Claude Code and check with rea doctor --client claude_code --json.
How do I add REA to Cursor?
Run rea setup --client cursor (or choose Cursor in npx rea-agents setup), approve the plan and restart Cursor.
Can I preview what setup will change?
Yes. Add --dry-run to get a read-only plan, or --json for a machine-readable plan without applying it.