
RPG Maker MV Ultimate MCP
io.github.DiegoLopez0208由 GitHub 帳號 DiegoLopez0208 發布v5.21.0更新於 Nov 3, 2026
RPG Maker MV Ultimate: AI copilot to generate, edit and understand RPG Maker MV projects (MCP)
概覽
本機 MCP 伺服器,讓 AI 助理檢查、產生並編輯磁碟上真實的 RPG Maker MV 專案,還能執行試玩並讀回遙測資料。
- 可以做什麼
- 讀取並分析專案:總覽、驗證、開關與變數使用情形、地圖連線圖、事件語法樹、外掛清單、指標、數值平衡異常與文字搜尋
- 查詢與修改資料庫:列出、依 ID 取得、搜尋、建立、更新與刪除角色、技能、物品、敵人、敵群等項目
- 建構並插入事件指令(含預覽),以 NPC、寶箱、門、商店、Boss 等預設管理地圖事件
- 產生地圖(內建範本、語意任務圖或程序化地形),並編輯圖塊、遇敵設定與地圖樹
- 執行試玩與即時橋接:例外、日誌、玩家位置、截圖、錄影與地圖熱重載
- 可選用相容 OpenAI 的視覺端點分析圖片,或離線量測圖塊集網格
- 適用情境
- 適合讓助理除錯或擴充既有的 RPG Maker MV 遊戲:找出事件為何不觸發、修復失效參照、產生地圖與事件,或在執行中的試玩裡驗證變更,而不必手動編輯 JSON。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 20.19.0 或更新版本。需設定 RPGMAKER_PROJECT_PATH 指向專案資料夾(或於執行時呼叫 set_project_path)。試玩、開啟編輯器與腳手架功能需要 MV 引擎安裝路徑(RPGMAKER_MV_INSTALL);無頭算圖與腳本化試玩需要 Chromium 與可選的 playwright-core 相依套件。視覺分析需要 VISION_API_URL,可選 VISION_API_KEY 與 VISION_MODEL。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 RPG Maker MV Ultimate MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🎮 RPG Maker MV Copilot MCP
Find why an MV event never fires — then verify the fix in the real engine
[npm] [downloads] [CI] [MCP Registry] [node] [license]
[Find an unset door switch, preview the fix, and verify the event page in RPG Maker MV 1.6.1]
30-second silent workflow: a visual replay of verified MCP calls and a real MV 1.6.1 playtest. Inspect the evidence.
Quick start · First useful result · Map generation · Live bridge · Intelligence · Tools
A Model Context Protocol server that lets an AI agent inspect and edit a real RPG Maker MV project on disk through 18 consolidated tools. Find broken references and switch conditions, build events with MV-compatible commands, and run repeatable playtests. Generated data still needs validation in your game's tilesets and plugins.
It does three things that are usually missing:
⚡ Quick start
Install Node.js 20.19.0 or newer, and close the MV editor before asking the agent to edit project files. Start with a copy of your project.
For containers and directory hosting, see Docker and Glama build configuration.
Windows x64 MCPB bundle: download v5.21.0 for a compatible MCPB client. See bundle requirements and verification. The npm setup below works across supported operating systems.
Find the project on itch.io and Smithery.
Check the environment before adding the server (PowerShell on Windows):
coreReady: true means Node and System data checks pass. headlessReady: true additionally means Playwright and Chromium are available. The check does not start a browser or certify assets/plugins. Bridge warnings do not block offline queries. Missing Chromium: run npx.cmd playwright install chromium-headless-shell, or set RPGMAKER_MCP_CHROMIUM to your Chrome executable.
1 — Add it to your MCP client. No clone needed; the package ships an executable.
Configuration
Claude Code one-liner, and running from source
MCP clients load tool definitions once at startup, so restart the client after adding or upgrading the server.
2 — Point it at a project. RPGMAKER_PROJECT_PATH is the folder containing data/, js/ and index.html. The server starts without it; call set_project_path at runtime instead if you prefer.
3 — Let the agent look around first.
Works with Claude Desktop, Claude Code, opencode, and any MCP-compatible client.
For Codex CLI, use codex mcp add rpgmaker --env RPGMAKER_PROJECT_PATH=C:/path/to/project -- npx -y rpgmaker-mv-mcp. In Windows clients that cannot launch npx, use the command cmd with arguments ["/c", "npx", "-y", "rpgmaker-mv-mcp"]. Restart the client, then try the three first-result recipes.
🧭 What it does
The bottom half of that loop is what the bridge adds. Before it, the agent wrote files and hoped.
🗺️ Map generation
Two paths, both behind generate_map. Pick by whether your project uses RTP art.
The knowledge-driven path
Themes with a matching template — town, village, dungeon, interior, castle, world and more — clone a real map instead of painting tile noise. Themes without one (beach, swamp, desert…) fall back to Perlin terrain, BSP dungeons and cellular caves. Combat themes auto-wire random encounters from your existing troops; town and village auto-create enterable house interiors with two-way warps.
Themes ·
foresttownvillagecastledungeoncavebeachdesertswampruinsinteriorsnowharborvolcanosewerfortressmagic_forestmagic_interiorspace_interiorspace_exteriorworld
Other modes: blank (empty canvas), themed (simple layout), template (one specific bundled map), batch (many at once), duplicate (copy an existing map).
The tileset-independent path
The bundled templates are raw MV map JSON, so their tile IDs only mean anything on RTP sheets. Change the tileset and the map turns to noise. semantic keeps the layout abstract until the last moment:
- Mining reads every map you already made and derives semantic layouts (ground / wall / water / prop / door, multi-tile props kept whole), a tileset profile naming the concrete tile your project uses for each role, and token adjacency counts. Nothing in the project is modified — everything lands in
.mcp-cache/. - Generating builds the mission first — entrance → key → locked door → treasure → boss → exit, plus side rooms — as a graph whose edges are the only ways through, then paints it. Because the lock is an edge and the key sits on the entrance side of it, the map is solvable by construction. Autotile shapes are recomputed at the end from the finished neighbourhood, never guessed cell by cell.
- The result includes
markersnaming the cell of every mission role, which is where to put events withmanage_map_event. - Pass a mined
templateId(e.g."mined-3") to re-materialise one of your own maps onto a different tileset.
🔌 The live bridge
playtest on its own is fire-and-forget: the game opens and nothing comes back. The bridge closes the loop.
- 📡 Telemetry — exceptions with stack traces,
console.error/warn, scene changes, player position, which event command is executing (so a hung event can be pinpointed), FPS and heap. Frames are consumed as you read them unless you passpeek. - ♻️ Hot reload —
reload_mapre-reads the currentMapXXX.jsonand rebuilds the scene without losing party state: it reserves a transfer to the player's own position with_needsMapReload, the engine's own reload seam, rather than rebuildingSpriteset_Mapby hand.reload_databasere-reads one data file;System.jsonandTilesets.jsonneed a fresh playtest and are refused with an explanation. - 📸 Screenshots —
take_screenshot { name: "collision-proof" }captures the live playtest through the MCP plugin, saves a timestamped PNG under.mcp-cache/screenshots/, and returns its path for inspection or QA evidence. No shell screenshot command is involved.manage_system { action: "bridge_screenshot" }remains as a compatibility alias. - 🎥 Video evidence —
record_video { action: "start", name: "npc-dialogue" }begins a silent WebM capture of the live game canvas;record_video { action: "stop" }saves it under.mcp-cache/recordings/and returns its path. Agents can stage repeatable scenes with the allowlistedinteractcommand and fixed-buttonpress_buttoninput—there is still no arbitrary script orevalcommand.
🔒 Security
The plugin returns before anything else runs unless the game is under NW.js and was launched with a
testargument. A deployed build a player double-clicks never reaches the socket code, or evenrequire('fs').It checks every argument rather than only
argv[0]the wayUtils.isOptionValiddoes, becauseplaytestpasses the project path first. So a deployed build deliberately launched with a literaltestargument would get past the guard — and then find no handshake file, and never connect.The server binds
127.0.0.1only, refuses any upgrade carrying a browserOrigin(cross-site WebSocket hijacking), and requires the session token from.mcp-bridge.json— compared in constant time — within 5 seconds or the connection is dropped.The command surface is a fixed allowlist with no
evalprimitive.
🔍 Project intelligence
analyze_project is read-only and fully offline. It models the whole project once, so an agent can reason about a game it did not build.
validate — the problems the editor never warns about
Broken transfers, missing map files, dangling common-event/item/troop references, duplicate IDs, named-but-unused switches and variables, a bad starting position, unreachable maps — and actor names written into dialogue as \N[id] that do not resolve.
That last one is worth its own sentence: the engine resolves \N[id] at draw time, not from any structural parameter, so a bad id passes every other check and the editor shows nothing wrong. The line just renders in-game with a hole where the name should be, and a player finds it before you do.
metrics — measured, not judged
- Reachability — flood fill from the real entry point. Walkable tiles the player can never get to, and events with no reachable tile beside them, are softlocks rather than style notes.
- Dead space — the unreachable share of the rectangle, against a band for
expected(interior/dungeon/exterior). - Shape — the walkable area thinned to a one-cell skeleton and read as a graph: endpoints, junctions, cycles, critical path, linearity. Linearity near 1 is a corridor with no choice to make.
- Variety — Shannon entropy over 5×5 tile windows: the monotonous-floor problem, measured.
- Tension — for maps with random encounters, how many steps the player is from a shop, inn or save point.
balance — outliers relative to their peers, not to invented thresholds
A skill dealing 400 damage is fine in a game where everything does, and broken in one where nothing else breaks 60. So each entry is scored on a power metric and compared against the others in its category: damage per MP for skills, gold per point of ATK+MAT for weapons, gold per DEF+MDF for armors, HP per EXP for enemies.
The comparison is leave-one-out — an entry is judged against statistics it had no hand in creating. Included in its own numbers, a badly broken entry drags the mean toward itself until it stops looking unusual at all.
Damage formulas are parsed, never executed (tokenise → shunting-yard → evaluate). One that cannot be read statically is listed under unreadableFormulas rather than scored as zero damage, which would pull every average down and hide the very outliers you were looking for.
Narrow with category, loosen or tighten with thresholdSd (default 2).
When a search returns nothing
Search returns searchMode: "lexical", complete, indexedFiles, skippedFiles and warnings. complete: false means some data could not be read; it does not mean the game contains no matching content. An empty result includes noResultsReason. Use a name or phrase actually present in the project: herrero does not translate into Blacksmith. Unicode names, including Japanese, are supported. A database query for an absent ID can return null; inspect it before using that ID.
Index, overview, validation, graph, usage, explain and refactor also report incomplete input. Unreadable files appear as validation errors.
Offline map inspection
query_map { view: "ascii", mapId }— render a map as a character grid with event markers. The cheapest way to see a layout and pick coordinates.query_map { view: "validate", mapId }— lint one map for invalid tile IDs, broken transfers and missing event terminators.
Tools
The server exposes 18 consolidated tools. The legacy aliases are optional.
Click to expand the full surface
The 101 fine-grained v4 tool names still work as call aliases. Set RPGMV_LEGACY_TOOLS=1 to advertise them too.
🛡️ Write safety
For composed event logic, use build_event_commands followed by
insert_event_commands with dryRun:true. The preview includes the exact old and
proposed command lists. See Event command authoring for
the supported kinds, nesting rules, MV-specific differences, and verification.
- Atomic. Every write goes to a temp file and is renamed over the target, so an interrupted call can never leave half-written JSON.
- Backed up. Rotated timestamped copies under
.mcp-backups/(last N,RPGMV_BACKUP_KEEP, default 10). A backup failure aborts replacement. Writes use unique temporary files and exclusive per-file locks; changes detected since a data read are refused. Close the editor: it does not honor MCP locks, and multi-file operations are not transactions. - Previewable. Pass
dryRun: trueto any mutating tool to see exactly what it would write, without touching disk.
⚠️ Close the RPG Maker editor while an agent is working. The editor holds the project in memory and will overwrite changes when it saves.
⚙️ Configuration
Vision AI is opt-in
analyze_image { mode: "ai" } sends a project image (tileset, sprite, screenshot, battler) to any OpenAI-compatible endpoint. Nothing is sent anywhere unless you configure it; the grid and colors modes and every other tool work fully offline.
Works with OpenAI, Ollama, LocalAI, NVIDIA NIM, vLLM, LiteLLM, or any OpenAI-compatible proxy.
🎓 Agent Skill
A portable Agent Skill teaches any model the crash-free workflow — build maps with generate_map, add content with manage_map_event presets, never hand-paint tiles or guess IDs. It lives at skill/rpgmaker-mv-mcp/SKILL.md.
Also listed in awesome-claude-skills.
📚 Knowledge base
Static reference data extracted from the MV corescript
🚧 Known limitations & roadmap
- Decoration semantics are best-effort in the RTP-template path; rare multi-tile objects may land as single tiles. The mined path keeps multi-tile props whole.
- Town and dungeon layouts keep improving — planned: a central plaza or well as a landmark, houses in rows facing roads, fences and yards, richer road networks, more room variety.
mode: "semantic"currently generates dungeon-shaped missions. Town and open-world mission grammars are next, as is using the mined adjacency counts to decorate rather than only to describe.balancecompares like with like inside a category, so a boss will legitimately look like an outlier next to random encounters. Read the flag, not the verdict.- The bridge is Windows/nwjs playtest only and needs its plugin installed in the project.
- Vision AI requires your own endpoint.
🛠️ Development
💬 Feedback
Actively developed, and feedback is very welcome — bug reports, weird maps, missing tools, ideas. Open a GitHub Issue with what you asked the agent to do and what you got; an exported map JSON or a screenshot helps a lot.
來源:README.md,提交 d25f832
工具
0版本歷史
4- v5.21.0最新Oct 12, 2026
- v5.20.0Oct 7, 2026
- v5.19.0Oct 5, 2026
- v5.16.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分