Set up RPGM MCP Pro with Claude Code or Cursor
RPGM MCP Pro is a Node.js MCP server. Your AI client starts it, and it reads and writes your RPG Maker MV or MZ project. An optional debug plugin lets the AI drive the game during test play. This guide connects Claude Code, Cursor or Claude Desktop and takes about five minutes.
Requirements
- RPG Maker MV or MZ and a project to work on. MV or MZ is detected automatically.
- Node.js 18 or later (
node --versionto check). - An MCP client: Claude Code, Claude Desktop, Cursor, Windsurf, Cline, or another client that can start a local stdio server.
1. Unzip the download
Unzip rpgmaker-mcp-pro-v1.1.0.zip to a permanent place, for example C:\tools\rpgmaker-mcp-pro. The AI client runs the server from there, so do not leave it in Downloads.
rpgmaker-mcp-pro/
dist/ the MCP server (dist/index.js)
node_modules/ dependencies, already installed
CLAUDE.md RPG Maker reference for the AI
README.md CHANGELOG.md LICENSE package.json
Dependencies are included, so there is no npm install step. To check that Node.js can start it:
node C:/tools/rpgmaker-mcp-pro/dist/index.js
It prints RPG Maker MCP Pro started (165 tools, 13 categories) and waits for a client. Stop it with Ctrl+C; from now on your AI client starts it.
2a. Connect Claude Code
Use the absolute path of dist/index.js. Forward slashes work on Windows too.
claude mcp add rpgmaker -- node C:/tools/rpgmaker-mcp-pro/dist/index.js
Start a new Claude Code session and run /mcp; rpgmaker should be listed as connected.
2b. Connect Cursor, Claude Desktop and others
Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json or .cursor/mcp.json in a project), Windsurf, Cline and other clients with the same format:
{
"mcpServers": {
"rpgmaker": {
"command": "node",
"args": ["C:/tools/rpgmaker-mcp-pro/dist/index.js"]
}
}
}
Restart the client after editing its config.
3. Load your project
Every session starts with project_load. Give it the folder that contains data/ and js/:
Load my RPG Maker project at D:/games/MyRPG with project_load, then call project_info.
You get the engine (MV or MZ), the game title and counts of maps, events and database entries. Before larger changes, ask for project_backup, which copies the data folder. Every write is also journaled, so journal_undo can revert recent AI edits.
If the RPG Maker editor is open, it will ask to reload when the AI changes data files. Save your own edits in the editor first, and reload when asked, so neither side overwrites the other.
4. Give the AI the RPG Maker reference
The download includes CLAUDE.md: tile ID ranges, layer rules, event command codes, MV/MZ differences and tool tips. Claude Code reads the CLAUDE.md of the folder it starts in, so copy the file into the folder where you run Claude Code (for example your game project) or merge it into the CLAUDE.md you already have there. With other clients, add it to the project rules or attach it when you start.
5. Set up AI test play
Editing needs nothing more. For screenshots, input, teleport, battles and save files, the AI talks to the running game through the MCP_Debug plugin:
- Ask the AI to run
testplay_inject_debug_plugin. It writesjs/plugins/MCP_Debug.jsand adds it to the plugin list. - In RPG Maker, open the Plugin Manager and make sure
MCP_Debugis ON (first time only). Do this before starting test play; the editor can rewriteplugins.jswhen it has focus. - Start test play. MZ: Ctrl+R in the editor. MV: Ctrl+R or F5, or ask the AI to run
testplay_start, which launchesGame.exein test mode. - Ask: "Call game_get_state and take a game_screenshot."
The plugin only starts its server in test mode and listens on 127.0.0.1 port 8090 (set RPGMAKER_DEBUG_PORT in the server's environment to change it), so a deployed game is not affected. testplay_remove_debug_plugin removes it completely.
6. First prompts
Show me map_connections for the whole project and explain the world structure.
Show the layout of Map 3 with map_get_layout and render it with map_render.
Run logic_check and tell me which findings look like real bugs.
Next: make maps and events from a prompt.
Updating and uninstalling
To update, replace the rpgmaker-mcp-pro folder with the new version at the same path and restart your AI client. If the debug plugin changed (see the changelog), run testplay_inject_debug_plugin again.
To uninstall, run testplay_remove_debug_plugin on each project that has it, remove the server from your client (claude mcp remove rpgmaker), and delete the folder. The .mcp-journal folder in a project can be deleted once you no longer need undo.
Troubleshooting
| Symptom | Fix |
|---|---|
| The client shows the server as failed | Check the path to dist/index.js and that node --version is 18 or later. Run the node .../dist/index.js command by hand to see the error. |
| Tools say no project is loaded | Call project_load first in every new session, with the folder that contains data/. |
game_* tools cannot connect | The game is not running in test mode, or MCP_Debug is OFF in the Plugin Manager. Enable it, save the project, and start test play again. |
| Port 8090 is already in use | Set RPGMAKER_DEBUG_PORT for the server and inject the plugin again with the same port. |
testplay_start fails on an MZ project | Expected: MZ projects have no Game.exe. Start test play in the editor (Ctrl+R); the AI connects to it. |
| The editor shows old data | Reload the project when the editor asks, or close and reopen it. |
| The AI's change is gone after saving in the editor | The editor saved its older copy over it. Use journal_list / journal_undo to see and restore, and reload before saving next time. |
Questions: Discord.
Get RPGM MCP Pro
$5 once on itch.io, free updates.