Purpose
rpgmaker-xp-mcp is an MCP server for creating and editing game content in an RPG Maker XP project using natural language. It directly reads and writes the .rxdata files in the project (actors, skills, items, maps, events, scripts, system data, etc.), and by rendering map preview PNGs, it lets users view the build results without opening the editor. It uses XP's native Ruby 1.8 Marshal format, does not export, convert, or save to side files, and edits the real project, so the editor can open the results normally.
The server itself has no interface; it is a backend for MCP clients to connect to. Common clients include Claude Code, Claude Desktop, Open WebUI, Cursor, Windsurf, etc., and it can also work with local Ollama models via a bridge.
Main Capabilities
The server provides 65 tools, covering multiple areas:
- Actors: get_actors, get_actor, update_actor, create_actor, search_actors. XP actors use a 6×100 parameters Table (MaxHP, MaxSP, STR, DEX, AGI, INT per level); create_actor generates a linear growth curve by default; equipment slots are weapon_id and armor1_id–armor4_id.
- Items, weapons, armors, skills: get_items, get_weapons, get_armors, get_skills, update_item, search_items, create_weapon, create_armor, get_skill, create_skill, create_damage_skill, create_healing_skill, create_state_skill, update_skill, search_skills. XP has no damage formula; damage is determined by power and ability influence rates (atk_f/str_f physical, int_f magical), and negative power means healing; there is no buff system, so states can be used instead.
- Maps and events: get_map, get_map_infos, get_map_events, get_map_event, update_map_event, create_map_event, create_transfer_event, search_map_events, add_event_command, add_show_text. Maps are stored in Data/MapXXX.rxdata, and events are a hash keyed by ID. create_transfer_event verifies that the maps at both ends exist and are within bounds.
- Map design and drawing: get_map_design_guide, get_map_size_advisory, create_map, get_map_tiles, set_map_tiles, fill_region, apply_autotile, scatter_tiles. apply_autotile calculates seamless edge variants based on 8-neighbor connectivity; scatter_tiles scatters clutter according to a target density. Layers are assigned by purpose: z0 terrain, z1 ground clutter, z2 overhead (tree canopies and roofs that can be walked behind).
- Asset validation: validate_assets scans the image and audio filenames referenced in all data files and reports references that do not exist on disk; validate_connectivity builds a transfer graph and reports unreachable maps, map transfers pointing to missing maps or out of bounds, and dead ends.
- Tilesets and rendering: create_tileset_identification_harness, get_tileset_catalog, save_tileset_catalog, validate_tileset_catalog, render_tileset_atlas, render_map. render_map composites the map layers into a flat top-down PNG (output to Data/.mcp-preview/map<NNN>.png), supporting layers, scale, region, drawGrid, drawEvents, and passability options; it is only a layout preview and does not include priority/overhead drawing order, fog, panorama, or weather, and autotile animation uses frame 0.
- Asset classification: classify_asset, verify_tileset, register_tileset, used to detect the actual content tile size and identify filename conventions, avoiding mistakenly importing resources made for other engines.
- Generic database access: get_database, get_database_entry, update_database_entry, can access files without dedicated tools (Classes, States, Enemies, Troops, CommonEvents, Tilesets, etc.).
- Scripts: get_scripts, get_script, update_script, create_script, search_scripts, with zlib handling, script source is stored as a [magic, name, zlib-compressed code] triple; create_script is inserted above Main by convention.
- System: get_system, get_variables, set_variable_name, get_switches, set_switch_name, get_game_title, update_game_title, update_starting_position.
Usage
The installation package is prebuilt, no build step is needed, and most clients can use npx to start it on demand. Use the environment variable RPGMAKER_PROJECT_PATH to point to the project folder containing Game.rxproj and Data/; if the RTP location is special, you can additionally set RPGMAKER_RTP_PATH, which by default points to the Steam version RPG Maker XP installation directory.
After adding it to the mcpServers configured in the client, restart the client, and you can verify the connection with a read-only request, for example asking "list the characters in my project". If it returns names, the configuration is successful.
When using a local Ollama model, since Ollama does not yet have a built-in MCP client, it can be accessed through a bridge: Open WebUI can register via mcpo (OpenAPI proxy) http://localhost:8000/rpgmaker-xp as a tool server; you can also use ollmcp to connect the MCP server directly to a local Ollama model. It is recommended to choose a model with strong tool-calling ability (a newer Qwen or Llama instruct model), because map creation is essentially a multi-step operation.
Important Notes
- When running the server, please close the RPG Maker XP editor: the editor keeps all data files in memory and rewrites all files when saving, which may overwrite the server's changes. This is the most common cause of lost work.
- Back up the project first: copy the entire Data/ folder. The server copies the original file to Data/.mcp-backup/ before the first write to a file in a session, but this is one .bak per file per session, and the next session will overwrite it, so it does not constitute version history. For important projects, it is recommended to put them in git.
- Test the game after modification: a valid file structure does not mean the game logic is correct.
- Map and event writes will regenerate System.magic_number to simulate editor behavior; the event command list will be normalized when saving.
- .rxdata is parsed using a patched vendored version of @hyrious/marshal to fix the upstream decoding error for negative multi-byte integers (in XP, healing with negative power, this error silently turns healing skills into damage skills).
Applicable Scenarios and Limitations
Suitable for developers who want to use natural language to quickly edit RPG Maker XP characters, skills, items, maps, events, and script data, and preview map layouts outside the editor.
Limitations include: only XP is supported, VX, VX Ace, MV, and MZ projects are not read (data formats differ); no art or audio is generated, only existing graphics can be imported, classified, and validated; it will not write RGSS scripts for you, it only manages scripts as data, and correctness is the responsibility of the user and the model; it cannot run or test the game, render_map only shows a static layout preview; it does not understand Pokémon Essentials' own systems (PBS files, plugin conventions, data classes); it does not include or redistribute any Enterbrain assets, and the RTP is read from the local installation at runtime.