AI integration (MCP)

Let AI agents like Claude or Cursor control MMDX12 directly. Setup and what they can do.

MMDX12 has a built-in Model Context Protocol (MCP) server. You can ask an AI agent to automate tasks like “play Catch the Wave with Sour Miku and take a ray-traced screenshot at 62 seconds”.

Turning it on

MCP is on by default. You can turn it off and on with MCP Control in the Advanced tab of the library panel, with no restart needed. When an agent connects, an MCP badge lights up in the top bar; hover it to see the connected pipe name.

Connections go only through a named pipe on this PC (\\.\pipe\mmdx12_mcp), and only the same Windows user can connect. Nothing is opened to the network.

Connecting an agent

mmdx12_mcp.exe, included in the release zip, is the MCP bridge. Register this file in your agent’s settings. With --launch, it starts the app by itself when the app isn’t running.

Claude Code

claude mcp add mmdx12 -- D:\MMDX12\mmdx12_mcp.exe --launch

Claude Desktop, Cursor and others (settings JSON)

{
  "mcpServers": {
    "mmdx12": {
      "command": "D:\\MMDX12\\mmdx12_mcp.exe",
      "args": ["--launch"]
    }
  }
}

Change the path to the folder where you unzipped MMDX12.

What it can do

AreaTools
Stateget_state, get_recent_logs, list_library
Screenscreenshot (save to file, crop a region), wait_frames, set_screen
Playbackload_scene, play, pause, seek
Qualityget_render_settings, set_render_settings (render mode, upscaler, MMDX Effects, effect stack and values)
Studioopen_studio, studio_add_model, studio_set_bone, studio_set_camera, studio_key, undo, redo, studio_save and more
Renderingrender_still, render_video, render_status, render_cancel
UI controlui_items (list of buttons on screen), ui_click (press by name), ui_input (mouse, keyboard)

ui_items and ui_click find buttons by name or by a language-independent ID, so an agent can use the app like a person without knowing coordinates. Searching by a Korean name makes the app translate it into the current language before looking, so the same script runs as is on the English, Japanese and Chinese UI.

Things to try asking an agent

  • “Show me the songs in the library and play the longest one with Sour Miku.”
  • “Take the same frame with path tracing and raster and compare them.”
  • “In the Studio, register a key with the left arm raised 30 degrees, then save.”
  • “Render this project as a 1080p video in Draft quality and tell me when it’s done.”

Using it from scripts

You can also send a single line of JSON straight to the pipe without the bridge. tools/mcp_pipe.py in the source repository is an example, and tools/mcp_x.py runs short commands one after another.

python tools/mcp_x.py "click 플레이" "wait 60" "shot out.png"

The full tool reference is in docs/mcp.md in the repository.