Skip to main content
Glama

Moho Studio MCP

MCP server and Moho Pro 14.4 Lua 5.4 plugin for controlling Moho live over stdio.

It lets an MCP client (Claude Desktop, Cursor, VS Code, Codex, Antigravity, or any JSON-RPC stdio client) inspect and edit open Moho projects: creating vector geometry, saved styles, brushes, bone rigs, Smart Warps, Curvers, Liquid Shapes, Vitruvian Bones, masking setups, 360-degree Smart Bone Actions, keyframes, Frame-by-Frame switch layers, Layer Comps, glTF 2.0 exports, and headless CLI renders.

The server is written in Node.js ESM with zero npm runtime dependencies (src/), and the plugin is plain Lua 5.4 (moho-plugin/).

Requirements

  • Windows 10 or Windows 11 (x64). The background window wake and capture helpers use Win32 EnumWindows, PrintWindow, and PostMessage.

  • Moho Pro 14.4.

  • Node.js 20 or newer.

  • Python 3.11 or newer (only needed for scripts/install.py and scripts/check_hygiene.py).

  • FFmpeg (optional, useful for encoding PNG sequences from document_cliRender into MP4 or GIF when Moho's system video codecs are unavailable).

Related MCP server: motion-mcp-server

How It Works

Moho runs an embedded Lua 5.4 interpreter with no built-in stdio server. Instead of polling a socket from a blocking loop, this bridge uses atomic temp-and-rename JSON files in %TEMP%\moho-studio-mcp (overridable via MOHO_STUDIO_IPC_DIR):

  1. Each tool call writes req_<pid>_<seq>_<hex>.json and waits for resp_<pid>_<seq>_<hex>.json. Unique per-request IDs let multiple MCP clients talk to Moho without overwriting each other's files.

  2. Inside Moho, the Lua plugin scans the IPC folder with Moho's native moho:BeginFileListing() instead of spawning cmd.exe, executes each handler inside pcall, and wraps mutations in PrepUndo / UpdateUI.

  3. Normal edits run inside DrawMe. Document-lifecycle operations (document_new, document_open, document_close, document_exportGltf) are restricted to Moho's UI button handler (HandleMessage) via a dedicated "MCP Sync" button on the Poller tool, because switching or closing a document inside DrawMe, IsEnabled, or UpdateWidgets crashes Moho Pro 14.4.

  4. When Moho is idle or unfocused, src/ipc.mjs locates the Poller tool's teal-star icon using PrintWindow and clicks it via background PostMessage without moving the cursor or stealing focus.

See docs/ARCHITECTURE.md for protocol details and docs/MOHO_14_4_LUA_API_VERIFIED.md for the verified Moho 14.4 Lua API quirks behind the handlers.

Installation

1. Install the Moho Lua plugin

Preview what the installer will touch (dry run is the default):

python scripts/install.py --scope moho-plugin

Install into Moho's Program Files Scripts folder (requires an Administrator PowerShell), or point --moho-scripts-dir at your Moho Custom Content Folder (Preferences > General > Custom Content Folder) to install without admin rights:

# Option A: Moho Program Files (Administrator PowerShell)
python scripts/install.py --scope moho-plugin --apply

# Option B: Moho Custom Content Folder (normal user)
python scripts/install.py --scope moho-plugin --moho-scripts-dir "C:\Path\To\MohoContent\Scripts" --apply

The installer backs up Tool/_tool_list.txt before editing and verifies every copied .lua and icon .png file byte-for-byte.

Start the plugin inside Moho Pro 14.4:

  1. Reload scripts (Ctrl+Shift+Alt+L) or restart Moho.

  2. Open Scripts > MohoStudioMCP > Start/Stop MohoStudioMCP Server.

2. Configure your MCP client

Claude Desktop, Cursor, VS Code, Antigravity, or any JSON MCP client

Add a moho entry pointing node at src/server.mjs:

{
  "mcpServers": {
    "moho": {
      "command": "node",
      "args": ["C:/path/to/moho-studio-mcp/src/server.mjs"]
    }
  }
}

Codex CLI (~/.codex/config.toml)

[mcp_servers.moho]
command = "node"
args = ["C:/path/to/moho-studio-mcp/src/server.mjs"]
startup_timeout_sec = 30
tool_timeout_sec = 60

If you use Codex or Antigravity, scripts/install.py can also patch existing configs with automatic backups and diff verification:

python scripts/install.py --scope user
python scripts/install.py --scope user --apply

Optional flags: --clients codex,antigravity, --node "C:\Path\To\node.exe", --ipc-dir "C:\Path\To\ipc". If MOHO_STUDIO_IPC_DIR is not set, both sides default to %TEMP%\moho-studio-mcp.

Tools and Resources

The server exposes 78 tools (75 live Lua RPCs and 3 Windows host tools) plus 2 MCP resources:

  • moho-studio://guide: short tool index and workflow notes.

  • moho-studio://playbook: 15 Moho Pro 14.4 rigging, shading, animation, and glTF rules for AI agents operating Moho.

Category

Count

Tools

System and Live Lua

4

moho_status, moho_activatePoller, moho_apiInspect, lua_execute

Document, Render, glTF and Layer Comps

18

document_getInfo, document_new, document_open, document_save, document_saveAs, document_close, document_undo, document_setSettings, document_import, document_setFrame, document_renderFrame, document_renderRange, document_captureWindow, document_cliRender, document_exportGltf, rig_auditGltf, layercomp_list, layercomp_manage

Layers, Masking, Switch, FBF and Particles

20

layer_list, layer_getProperties, layer_create, layer_delete, layer_duplicate, layer_reparent, layer_select, layer_setProperties, layer_bindToBone, layer_setWarpLayer, layer_setMasking, layer_setLayerOrder, layer_convertType, layer_groupSelection, layer_followPath, layer_referenceManage, layer_renderImage, switch_setActive, fbf_manage, particle_configure

Bones, Vitruvian, Wind and 2D Physics

13

bone_list, bone_create, bone_delete, bone_setTransform, bone_setProperties, bone_setConstraints, bone_setDynamics, bone_mirror, bone_freezePose, bone_listGroups, bone_manageGroup, bone_setWind, physics_configure

Animation, Actions, Markers and Camera

13

animation_getKeyframes, animation_setKeyframes, animation_deleteKeyframe, animation_createCycle, animation_retime, animation_tween, timeline_markers, action_list, action_activate, action_createSmartBone, action_manage, camera_get, camera_setKeyframe

Vector, Smart Warp, Curver, Liquid Shapes and Styles

9

mesh_getData, mesh_createShape, mesh_editShape, mesh_editPoints, mesh_editTopology, mesh_createSmartWarp, mesh_setCurveProfile, mesh_liquidShapes, style_manage

Batch

1

batch_execute

Notable Moho 14.4 behaviors handled directly by the tools:

  • .svg files passed to document_import are routed headlessly through Moho 14's bundled SS_SVGImport script rather than the older FileImport path.

  • document_exportGltf drives Moho 14's bundled SS_glTFExport headlessly without opening a modal dialog; rig_auditGltf checks for point-animated vectors missing a Warp Layer, active bone dynamics, non-in-place Actions, and gltf_* tags beforehand.

  • action_createSmartBone with mode: "360" sets an unwrapped zeroAngle +/- 2*pi sweep (96 frames, linear bone keys, optional Frame 0 to end-frame mirroring) and restores Mainline when finished.

  • document_close with force: true saves dirty untitled documents to a temporary file before calling moho:FileClose() and deletes the temp file afterward so Moho never blocks on a native Save prompt.

  • batch_execute wraps multiple operations into a single Undo entry and one coalesced UpdateUI() pass.

Known Limitations and Security Notes

  • Windows only. The Lua plugin itself only uses Moho Lua APIs, but moho_activatePoller, document_captureWindow, and the keep-alive nudge in src/ipc.mjs rely on Win32 APIs via PowerShell.

  • document_cliRender calls Moho.exe -r in a background process. Direct MP4 and MOV output depends on the codecs installed on Windows; rendering a PNG sequence and encoding with ffmpeg works consistently across machines.

  • lua_execute evaluates arbitrary Lua 5.4 inside the Moho process (ScriptInterface). This server only listens on local stdio and reads local temp files; keep it bound to trusted local sessions and do not expose it over a network tunnel.

  • Viewport screenshots (document_captureWindow) do not always show final Masks, Layer Outlines, Point Colors, Merged-Alpha brushes, Soft Edge, or unsolved mid-timeline Bone Dynamics. Use document_renderFrame or document_cliRender when checking visual output.

Repository Layout

  • src/: Node.js stdio MCP server (server.mjs), JSON Schemas (tools.mjs), IPC client, Win32 helpers, and CLI render runner (ipc.mjs), runtime config (config.mjs), and moho-studio://playbook (playbook.mjs).

  • moho-plugin/: Moho Pro 14.4 Menu script, Poller tool, toolbar icons (24x20 and 48x40), Lua JSON codec, Bowyer-Watson Delaunay triangulator, and modular tool handlers.

  • scripts/: Installer (install.py), offline hygiene and 1:1 RPC parity checker (check_hygiene.py), and SDF icon generator (generate_icons.py).

  • tests/: MCP stdio protocol tests (test_mcp_protocol.mjs) and concurrent dual-client mock IPC tests (test_ipc_mock.mjs).

  • docs/: Architecture notes (ARCHITECTURE.md) and verified Moho Pro 14.4 Lua API reference (MOHO_14_4_LUA_API_VERIFIED.md).

  • llms.txt: Compact index for AI coding assistants and crawlers.

Testing

python scripts/check_hygiene.py
npm test

check_hygiene.py verifies UTF-8/ASCII cleanliness, node --check on every .mjs file, Lua syntax balance, and 1:1 parity between rpcMethod entries in src/tools.mjs and handlers registered in moho-plugin/MohoStudioMCP_Server.lua.

License

MIT. See LICENSE.

Available Tools

78 tools
action_activateB

Enter or create an Action / Smart Bone Action on a layer (synced with SetCurrentDocAction; pass '' to return to Mainline).

Inputs: actionName (required), layerId, layerName, layerUuid.

action_createSmartBoneB

Create a standard or full +/-360-degree Smart Bone Action (exact unwrapped zeroAngle +/- 2*pi, 96-frame default duration, linear bone keys, optional Frame-0-to-end mirroring across child layers).

Inputs: mode, boneId, layerId, boneName, +16 more.

action_listB

List Regular and Smart Bone Actions on a layer (including isSmartBone, angleSweepDeg, and is360SmartBone flags) and report the active layer/document action.

Inputs: layerId, layerName, layerUuid.

action_manageC

Insert (copy or reference), rename, delete, or blend Actions on a layer.

Inputs: operation (required), frame, layerId, newName, +9 more.

animation_createCycleB

Build a seamless multi-channel animation cycle across [startFrame, endFrame]: ensures boundary keys at start/end, copies startFrame to endFrame when needed, and sets Cycle interpolation targeting startFrame + 1 (Frame 2 when starting at Frame 1) to avoid the double-frame stutter.

Inputs: endFrame (required), boneId, channel, layerId, +23 more.

animation_deleteKeyframeB

Delete a single keyframe (frame > 0) from any supported Moho 14.4 animation channel.

Inputs: frame (required), channel (required), boneId, layerId, +11 more.

animation_getKeyframesB

Read all keyframes, interpolation, Bezier handles, color tags, and Separate Dimensions from layer, bone, wind/gravity, Vitruvian, switch, vector point/shape, layer order, follow-path, or camera channels.

Inputs: channel (required), boneId, layerId, pointId, +10 more.

animation_retimeB

Scoped keyframe retiming across explicit targets/channels (never accidentally shifts untouched scene layers): push_frames, scale_range (Alt+Drag), relative_offset, and clear_range (always protects frame 0).

Inputs: operation (required), delta, boneId, factor, +23 more.

animation_setKeyframesC

Batch-write multiple keyframes with Smooth/Linear/Ease/Step/Bezier (with handles)/Cycle/Bounce/Elastic/Stagger/Hold/ColorTag interpolation onto any supported Moho 14.4 animation channel (including Separate Dimensions).

Inputs: channel (required), keyframes (required), hold, val1, +26 more.

animation_tweenB

Generate a weighted breakdown (0..1), anticipation (weight < 0), or overshoot (weight > 1) keyframe at frame interpolated between surrounding keyframes across one or more channels.

Inputs: frame (required), hold, val1, val2, +31 more.

batch_executeA

Execute up to 100 Moho Studio MCP operations atomically inside one IPC round-trip, one Undo step, and one coalesced UI refresh.

Inputs: operations (required), stopOnError.

bone_createB

Create a new bone in a BoneLayer from world-space (headX/Y -> tailX/Y), geometry-snapped refs (headRef/tailRef), or parent-local (x/y, angleDeg, length).

Inputs: x, y, name, tags, +16 more.

bone_deleteB

Delete a bone by index or name from a BoneLayer.

Inputs: boneId, layerId, boneName, layerName, +1 more.

bone_freezePoseC

Freeze Pose (Ctrl+F) or Reset Pose at frame across all, selected, non-shy, or listed bones with optional keyframe interpolation.

Inputs: hold, mode, val1, val2, +22 more.

bone_listB

List all bones in a BoneLayer with world head/tail positions, local transforms, parent links, IK targets, constraints, shy flag, and Moho 14 dynamics.

Inputs: frame, layerId, layerName, layerUuid.

bone_listGroupsC

List all Moho 14 Vitruvian Bone groups (M_BoneGroup) on a BoneLayer and their active bones.

Inputs: frame, layerId, layerName, layerUuid.

bone_manageGroupC

Create, switch active sub-rig bone, add/remove bones, or delete Moho 14 Vitruvian Bone groups.

Inputs: operation (required), frame, boneId, boneIds, +8 more.

bone_mirrorA

Duplicate and mirror a bone or bone subtree across an X/Y axis preserving hierarchy, constraints, dynamics, offsets, and remapped IK targets.

Inputs: axis, boneId, boneIds, layerId, +12 more.

bone_setConstraintsC

Configure bone angle limits, angle/pos/scale delayed control constraints (single bone or chainBoneIds/Names), squash&stretch, maxIKStretching, and arcSolver.

Inputs: boneId, maxDeg, minDeg, enabled, +28 more.

bone_setDynamicsC

Configure Moho Pro 14 Bone Dynamics physics (enabled, angle/pos/scale/wind flags, torque, spring, damping, 3-axis weights, plus optional global enableBoneDynamics).

Inputs: pos, wind, angle, frame, +20 more.

bone_setPropertiesC

Update bone name, length (0 for Pin Bone), strength, offset, flipH/V, parentBoneId/Name, IK targetBone/Name, ignoredByIK, fixedAngle, shy, showLabel, or color tags.

Inputs: shy, name, tags, flipH, +17 more.

bone_setTransformC

Set/keyframe a bone's position (x, y), angleDeg, scale, flipH/V, parentBoneId/Name, or targetBone/Name at a frame with optional interpolation.

Inputs: x, y, hold, val1, +27 more.

bone_setWindB

Configure Moho Pro 14 Wind and Gravity dynamics fields on a BoneLayer (supports UI percentage units via *Percent or raw internal units, plus keyframe interpolation).

Inputs: hold, val1, val2, frame, +25 more.

camera_getB

Read camera track, zoom, rollDeg, and panTiltDeg at a given frame.

Inputs: frame.

camera_setKeyframeC

Set camera track, zoom, rollDeg, and/or panTiltDeg keyframes with optional interpolation.

Inputs: hold, val1, val2, zoom, +16 more.

document_captureWindowB

Capture the primary visible Moho Pro 14 application window (viewport, timeline, layers, toolbar) as PNG using Win32 EnumWindows.

Inputs: outputPath.

document_cliRenderB

Run Moho Pro 14.4's multi-threaded, GPU-accelerated headless CLI renderer (Moho.exe -r) on any saved .moho file to export PNG sequences, MP4, MOV, AnimatedGIF, PSD, or SVG with optional Layer Comp filtering without blocking the Moho GUI.

Inputs: projectPath (required), format, halfFps, endFrame, +15 more.

document_closeA

Close the currently active Moho document tab cleanly (auto-saves if it has a path to prevent blocking Save prompts).

Inputs: force, savePath, saveFirst.

document_exportGltfB

Headless Moho Pro 14.4 glTF 2.0 / GLB export wrapping Tool/ss_gltf_export.lua (bypasses SS_glTFExportDialog:DoModal safely). Run rig_auditGltf first to check for animated vectors without Warp Layers or non-in-place Actions.

Inputs: fbf, scale, format, comment, +8 more.

document_getInfoA

Get open document metadata (name, path, dimensions, FPS, frame range, current frame, layer counts, Layer Comp count, active doc action, background color).

Inputs: no named parameters.

document_importA

Import a PNG/JPG/WebP image directly as a live ImageLayer, import SVG headlessly through Moho 14.4 SS_SVGImport (with scaling/consolidation controls), or import PSD/Moho files via FileImport.

Inputs: path (required), mode, name, minify, +11 more.

document_newB

Create a brand-new Moho document and optionally configure dimensions, FPS, frame range, and background color.

Inputs: fps, width, height, endFrame, +2 more.

document_openB

Open an existing .moho project file from disk live inside Moho.

Inputs: path (required).

document_renderFrameB

Render a specific frame live via Moho's FileRender engine and return the PNG.

Inputs: frame, outputPath, returnImage, restoreFrame.

document_renderRangeB

Render a PNG frame sequence across a frame range live from the open Moho document (auto-creates outputDir).

Inputs: outputDir (required), step, prefix, endFrame, +1 more.

document_saveA

Save the currently open Moho document in place.

Inputs: no named parameters.

document_saveAsB

Save the currently open Moho document to a specific file path.

Inputs: path (required).

document_setFrameC

Move Moho's timeline to a specific frame number.

Inputs: frame (required).

document_setSettingsC

Modify open document dimensions, FPS, start/end frames, background color (LM.rgb_color via verified SetBackCol), or Depth of Field.

Inputs: dof, fps, width, height, +3 more.

document_undoB

Undo or Redo one or more steps in the open Moho document.

Inputs: mode, steps.

fbf_manageA

Author Frame-by-Frame (FBF) animation on a SwitchLayer: list_timeline, add_blank_frame, duplicate_frame (new copy), clone_frame (reuse existing drawing), delete_frame, and push_frames (shift exposure timing).

Inputs: operation (required), name, delta, frame, +8 more.

layer_bindToBoneA

Rigid-bind a layer to one bone (boneId, or -1 to unbind) OR flexi-bind it to an exact subset of bones (flexiBoneIds) with optional elbow smooth-joint binding (elbowBind).

Inputs: boneId, layerId, elbowBind, layerName, +2 more.

layercomp_listA

List all Layer Comps in the open document along with their member layers.

Inputs: no named parameters.

layercomp_manageC

Create, update layer membership, apply, rename, additively show/hide, snapshot visible layers, expose on timeline, or delete Layer Comps.

Inputs: operation (required), name, frame, index, +7 more.

layer_convertTypeA

Convert a Group, Bone, or Switch layer to another container type preserving children, transforms, animation channels, masking, Layer Order, and Layer Comp membership.

Inputs: targetType (required), layerId, newName, layerName, +3 more.

layer_createB

Create a new layer live inside Moho (vector, image, bone, group, switch, framebyframe, particle, patch, text, note, audio). For framebyframe, auto-creates an initial child vector frame unless createInitialFrame=false.

Inputs: type (required), name, editOnly, noteText, +6 more.

layer_deleteB

Delete a layer by ID, name, or UUID (undoable).

Inputs: layerId, layerName, layerUuid.

layer_duplicateA

Duplicate a layer (or create a live Moho Referenced Layer when asReference=true).

Inputs: layerId, newName, layerName, layerUuid, +1 more.

layer_followPathC

Attach/detach a layer along a VectorLayer curve with optional Alt-bend (bendLayer) and keyframeable percent progress.

Inputs: hold, val1, val2, frame, +21 more.

layer_getPropertiesA

Inspect transform, opacity, visibility, blur, origin, blending mode, masking mode, bone parent, tags/comments, and image/warp info of a layer.

Inputs: frame, layerId, layerName, layerUuid.

layer_groupSelectionC

Wrap multiple existing layers into a new Group, Bone, or Switch container preserving stacking order, with optional masking preset.

Inputs: name, layerIds, groupMask, groupType, +4 more.

layer_listB

Return the full recursive layer tree with IDs, UUIDs, types, masking, warp/curver flags, bone counts, Vitruvian group counts, and active switch children.

Inputs: no named parameters.

layer_referenceManageC

Inspect status, break link, sync/update (MohoLayerRefSyncOptions), mark outdated, or import external Moho Referenced Layers.

Inputs: operation (required), mode, path, layerId, +6 more.

layer_renderImageA

Render a single isolated layer directly to a transparent PNG via Moho 14.4 RenderLayerImage and return its world bounds and image.

Inputs: frame, layerId, layerName, layerUuid, +6 more.

layer_reparentC

Move a layer into a Group/Bone/Switch/Particle layer or reorder it behind or in front of another layer.

Inputs: layerId, layerName, layerUuid, insertAtTop, +6 more.

layer_selectC

Make a layer the active selection in Moho.

Inputs: layerId, layerName, layerUuid.

layer_setLayerOrderB

Inspect or keyframe Animated Layer Order (GroupLayer:EnableLayerOrdering / GetLayerOrdering) on a Group/Bone/Switch layer at any frame (works inside Smart Bone Actions).

Inputs: hold, val1, val2, frame, +24 more.

layer_setMaskingC

Configure Group masking (groupMask or one-shot preset: 'mask_inside_bottom') and per-layer masking (maskingMode, expandByPixel, guarded excludeStrokes).

Inputs: preset, layerId, groupMask, layerName, +5 more.

layer_setPropertiesB

Modify layer transform, parallax Z (with preserveApparentSize), timingOffset, shownOnTimeline, immuneToDof, Layer FX (colorize/outline/shadow/shading), vectorNoise, opacity, blur, blendingMode, and metadata.

Inputs: blur, hold, name, val1, +45 more.

layer_setWarpLayerB

Link (or unlink when warpLayerId/Name omitted) a Smart Warp or Curver VectorLayer to a target layer.

Inputs: layerId, layerName, layerUuid, warpLayerId, +1 more.

lua_executeB

Execute Lua 5.4 code live inside Moho Pro 14.4 with moho, helpers, json, delaunay, and args in scope. Guarded by pcall + optional PrepMultiUndo and captures print() logs.

Inputs: code (required), args, undo.

mesh_createShapeC

Create a vector shape from new points, an oval/rect primitive, or existing pointIds (with optional holes, Soft Edge, Gradients, Saved Styles, and Brushes).

Inputs: cx, cy, rx, ry, +50 more.

mesh_createSmartWarpB

Create a live Moho 14 Smart Warp (mode='warp'), Quad Smart Warp (mode='quad'), or Curver (mode='curver', with multi-curve appendToLayerId, curverWidth, guarded compressible, and auto bone-binding inheritance).

Inputs: cx, cy, cols, mode, +15 more.

mesh_editPointsC

Move/animate mesh points, adjust per-point width/opacity/colorDrift, curvature, Point Colors, asymmetric Bezier handles, or point bone bindings.

Inputs: edits (required), hold, val1, val2, +16 more.

mesh_editShapeC

Edit, keyframe, restyle, reorder, or delete an existing vector shape (fill/stroke color & alpha, Soft Edge, Gradients + handles, Style 1/2, Brushes, stacking order).

Inputs: hold, name, val1, val2, +64 more.

mesh_editTopologyC

Edit vector topology and curves: split_segments, insert_point, weld_points, connect_and_create, hide_edge, delete_points, mirror_points, merge_shapes, triangulate, and stroke_exposure.

Inputs: operation (required), x, y, axis, +60 more.

mesh_getDataC

Inspect points (with width, opacity, colorDrift, curvature, Point Colors, worldPos, handles), curves (with segment visibility and stroke exposure), shapes (Soft Edge, Gradients, Styles, Brushes, Liquid Shape clusters), and warp/curver flags.

Inputs: frame, layerId, layerName, layerUuid, +3 more.

mesh_liquidShapesB

Author Moho 14 Liquid Shapes boolean clusters: configure fComboMode (normal, add, subtract, intersect/clip)/fComboBlend (set_combo), merge via combine, or bake into one vector shape via bake.

Inputs: operation (required), flag, blend, frame, +13 more.

mesh_setCurveProfileC

Attach, configure repeat/animated offset, or detach a Curve Profile on a VectorLayer curve (lm_curve_profile.lua).

Inputs: hold, val1, val2, clear, +23 more.

moho_activatePollerA

Locate the custom MohoStudioMCP Poller teal-star icon in Moho Pro 14.4's toolbar via PrintWindow and click it in the background (PostMessage) without moving the user's mouse cursor or stealing window focus. Also runs automatically if any live RPC stalls for >1.1s.

Inputs: no named parameters.

moho_apiInspectA

Inspect live Lua 5.4 classes, methods, tolua++ .get/.set properties, and constants exposed by Moho 14.4 (e.g. MOHO, LM, moho, document, layer, M_Bone, M_Mesh).

Inputs: limit, filter, target.

moho_statusA

Check live Moho Pro 14.4 connectivity, plugin version, active document, active layer, frame, active action, Layer Comp count, and exporter path.

Inputs: no named parameters.

particle_configureB

Inspect or configure Moho Pro ParticleLayer emission, velocity, direction, acceleration, damping, source dimensions, and simulation flags (read-only when no mutating fields are passed; returns full 18-field state).

Inputs: frame, damping, layerId, running, +22 more.

physics_configureB

Inspect or configure Moho Pro 14 2D Physics on a Group/Bone layer (groupEnabled, gravity, useBakedPhysics, bake) and/or per-layer rigid-body MohoPhysicsOptions (read-only when no mutating fields are passed; returns full state including pivotOnOrigin, respawnInterval, and lifetime).

Inputs: bake, frame, density, enabled, +21 more.

rig_auditGltfA

Read-only pre-flight audit of the open Moho document for glTF 2.0 export readiness: detects animated vector layers missing Warp Layers, active bone dynamics needing fbf baking, non-in-place Actions, unsaved document state, and gltf_* layer userTags.

Inputs: inPlaceTolerance.

style_manageC

Manage document Saved Styles (list, create, update, delete, delete_unused, new_from_shape), Moho 14 Brushes (list_brushes, drift/spacing/mergedAlpha), Soft Edge, Gradients, and Smart Line Boil.

Inputs: operation (required), hold, name, val1, +63 more.

switch_setActiveC

Inspect or keyframe active child layers on a SwitchLayer (lip-sync, hand/prop swaps, Frame-by-Frame mode, vector sub-layer interpolation).

Inputs: frame, layerId, childName, keyframes, +4 more.

timeline_markersC

List, add, update, delete, or clear document-wide (MohoDoc.fTimelineMarkers) or layer-specific (MohoLayer.fTimelineMarkers) timeline markers with color tags.

Inputs: operation (required), text, frame, label, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 78 tools

    Disambiguation3/5

    Prefix-grouped naming (layer_, bone_, mesh_, animation_) keeps most tools distinct, and the descriptions are detailed. But several clusters blur boundaries: layer_reparent vs layer_setLayerOrder vs layer_groupSelection vs layer_convertType, animation_setKeyframes vs animation_tween/retime/createCycle, and mesh_editShape vs mesh_setCurveProfile/liquidShapes all require careful reading to pick correctly.

    Naming Consistency4/5

    Nearly all tools follow a consistent prefix_verbNoun pattern (layer_reparent, bone_create, camera_get, document_save), with multi-word nouns camelCased predictably. Minor inconsistencies like mesh_setCurveProfile vs pure-lowercase layer_reparent are readable but slightly uneven.

    Tool Count2/5

    78 tools is very heavy even for a full animation package; many operations (e.g. the many bone_set* variants, animation_*, mesh_edit*) could be consolidated into parameterized tools. The grouping helps, but the surface is well beyond a typical 15-tool ceiling.

    Completeness4/5

    Coverage spans documents, layers, bones, mesh, animation, actions, camera, physics, particles, styles, rendering, export, and batch execution — thorough lifecycle support. Gaps like text-layer property editing, audio management, and dedicated switch-child manipulation are minor workarounds.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for reading and editing Apple Motion template files (.motn/.moti), enabling inspection and modification of layers, parameters, keyframes, and publish settings, plus saving and validation.
      16
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to drive OpenToonz headlessly through MCP tools for creating workspaces and scenes, drawing or importing frames as levels, placing cells on the xsheet, and rendering frames, PNG sequences, or MP4 videos. Also exposes a generic script escape hatch for the rest of the OpenToonz JS API.
      23
      2
      MIT