moho-studio-mcp is a combination of an MCP server and a Lua plugin for Moho Pro 14.4, designed to let AI agents or MCP clients control Moho projects in real time via stdio.
Purpose:
- Provide MCP clients (Claude Desktop, Cursor, VS Code, Codex, Antigravity, or any JSON-RPC stdio client) with real-time control over Moho Pro 14.4.
- Support inspecting and editing open Moho projects, covering vector editing, bone rigging, animation production, lip sync, export, and rendering.
Key capabilities:
- Create vector geometry, save styles, brushes.
- Bone rigging: including Smart Warps, Curvers, Liquid Shapes, Vitruvian Bones, mask settings, 360-degree Smart Bone actions.
- Animation: keyframes, Papagayo/Rhubarb lip sync, frame-by-frame layer switching, layer compositing.
- Export and rendering: glTF 2.0 export, rig auditing, headless CLI rendering.
- Provides 82 annotated tools (79 live Lua RPC and 3 host tools), 2 resources, and 7 prompts.
- Tool profiles can control the context budget; all 82 tools are exposed by default, and profiles such as core can be selected via MOHO_STUDIO_TOOLS or the --tools parameter.
Usage:
- Install the Moho Lua plugin: by default it performs a dry-run preview of the installation contents; it can be installed to Moho's Program Files Scripts folder (requires an administrator PowerShell), or --moho-scripts-dir can point to a custom content folder to avoid administrator privileges. The installer backs up Tool/_tool_list.txt and verifies copied files using SHA-256.
- Start the plugin in Moho Pro 14.4: reload scripts (Ctrl+Shift+Alt+L) or restart Moho, then open Scripts > MohoStudioMCP > Start/Stop MohoStudioMCP Server.
- Configure the MCP Client: You can use the Node CLI to automatically patch existing client configurations (claude, cursor, antigravity, codex) with automatic backups; if cloning the repository locally, point command to node and args to ["C:/path/to/moho-studio-mcp/src/server.mjs"].
- Optionally use FFmpeg to encode PNG sequences as MP4 or GIF.
Use cases:
- Build, rig, animate, and render scenes in real time in Moho Pro 14.4 through an AI agent.
- Automate character rigging, lip sync, glTF export, and rendering workflows.
- Animation production scenarios that require remote control of Moho projects from an MCP client.
Limitations and security notes:
- Windows 10/11 x64 is the primary platform for real-time validation; macOS is experimentally supported, and background polling auto-click is limited to Windows.
- document_cliRender depends on system codecs, and direct MP4/MOV output may be limited; it is recommended to render a PNG sequence and then encode it with ffmpeg.
- lua_execute can execute arbitrary Lua 5.4 code within the Moho process; the server only listens on local stdio and reads local temporary files, so it should only be bound to trusted local sessions and must not be exposed through network tunnels.
- Viewport screenshots may not show final masks, layer outlines, point colors, merged Alpha brushes, soft edges, or unresolved bone dynamics; use document_renderFrame or document_cliRender when checking visual output.
- Requires Node.js 20 or later.
- The project uses the MIT license.