RE-MCP
A safety-first local MCP server for ROM reverse-engineering, enabling project status checks, file verification, Bakugan DS build/quality tasks, and read-only DeSmuME/ARM9 debugging.
README
RE-MCP
A safety-first local Model Context Protocol server for ROM reverse-engineering workflows.
RE-MCP uses stdio and exposes narrow, tested tools rather than an unrestricted shell.
Current capabilities
General
- Project Git status
- Allowlisted npm verification
- SHA-256 file verification
- Capability and policy reporting
Bakugan DS
- Compile, Ruff, mypy, pytest, or full quality suite
- Regenerate Milestone 6E contracts
- Run the Milestone 6E installer in dry-run mode
- Generate the Milestone 6E roster analysis
DeSmuME and ARM9 GDB
- Start, inspect, and stop one server-owned DeSmuME process
- Probe and wait for the owned ARM9 GDB port
- Read the raw ARM9 register packet
- Read up to 4096 bytes of ARM9 memory
- Atomically capture raw registers plus labeled memory regions
RE-MCP does not currently expose breakpoints, execution control, register writes, memory writes, or arbitrary GDB commands.
Requirements
- Node.js 20 or newer
- An MCP host that can launch local stdio servers
- A dedicated workspace containing the intended repositories and private ROM-development inputs
- For emulator tools, a verified DeSmuME debug bundle
Downloadable RE-MCP bundle
The Package GitHub Actions workflow publishes a re-mcp-downloadable-bundle artifact containing:
- Compiled JavaScript
- Production dependencies
- Configuration template
- Installation self-check
- SHA-256 checksum
After downloading and extracting the archive:
cd re-mcp-0.6.0
node scripts/check-install.mjs .
Copy mcp-config.example.json, replace both absolute paths, and add the resulting configuration to your MCP host.
Build the Catalina-native DeSmuME debugger bundle
The manual Build Catalina-Native DeSmuME Debug Bundle workflow builds the DeSmuME 0.9.13 Cocoa dev+ application for Intel x86_64 Macs with a macOS 10.15 deployment target. It applies a narrow patch that starts the existing ARM9 GDB stub when RE_MCP_ARM9_GDB_PORT is supplied.
To run it:
- Open the repository's Actions tab.
- Select Build Catalina-Native DeSmuME Debug Bundle.
- Select branch
feature/catalina-native-desmume. - Choose Run workflow.
- Download
desmume-catalina-native-debug-bundleafter the job finishes. - Verify
desmume-catalina-native-debug.zipagainst the accompanying.zip.sha256file before extraction.
After extraction on the Catalina Mac:
xattr -dr com.apple.quarantine desmume-catalina-native-debug
chmod +x desmume-catalina-native-debug/run-desmume-debug.command
./desmume-catalina-native-debug/run-desmume-debug.command \
/absolute/path/to/Bakugan.nds 20000
Only remove quarantine after verifying the checksum and confirming that the artifact came from the expected workflow run.
Catalina acceptance checklist
Before integrating this launcher mode into RE-MCP, verify on the target macOS Catalina 10.15 system that:
- The Cocoa application opens.
- The ROM boots successfully.
lsof -nP -iTCP:20000 -sTCP:LISTENshows a localhost listener.- RE-MCP's
desmume_probe_gdbsucceeds after the launcher integration is added. - A raw ARM9 register packet can be read.
- One bounded ARM9 memory read succeeds.
The current branch produces and validates the native artifact only. RE-MCP launcher-schema integration is the next milestone after this smoke test passes.
Build RE-MCP from source
npm install
npm run check
npm run build
Run directly:
RE_MCP_WORKSPACE_ROOT=/absolute/path/to/rom-modding \
node dist/index.js
The server refuses to start without an explicit workspace root.
DeSmuME launcher contract
The currently verified Linux launcher contract is:
run-desmume-debug.sh --arm9gdb=20000 /path/to/game.nds
The candidate Catalina-native bundle uses:
run-desmume-debug.command /path/to/game.nds 20000
RE-MCP owns at most one emulator child process per server instance. It rejects duplicate starts, captures bounded logs, and terminates the owned emulator during MCP shutdown.
Security model
- No arbitrary shell tool
- No shell interpolation
- Fixed executable and argument construction
- Workspace path containment
- Process timeouts and bounded output
- Minimal child-process environment
- Milestone 6E installation restricted to dry-run mode
- One server-owned DeSmuME process
- GDB restricted to the owned localhost port
- Read-only
gand boundedmpackets - Runtime evidence restricted to project
analysis/generated - No attachment to unrelated emulator processes
Do not use your general home directory as RE_MCP_WORKSPACE_ROOT. Create a dedicated directory containing only the repositories and private inputs intended for RE-MCP.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.