moho-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@moho-mcp-server What layers are in my current Moho project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
moho-mcp-server
An MCP server for Moho Pro 14. It lets MCP clients inspect documents, edit layers and animation, render frames, capture the Moho window, and send mouse or keyboard input.
The bridge is distributed as a bundled npm executable, so MCP clients can run
it directly with npx. A Lua plugin inside Moho handles the application-side
operations through file-based JSON-RPC.
This project is adapted from Kveto/MohoMCP. See THIRD_PARTY_NOTICES.md for attribution.
Requirements
Moho Pro 14
Node.js 20 or newer
Windows 10/11 or macOS
On macOS, input simulation requires Accessibility permission for the app that
starts the MCP server. cliclick is optional but recommended for reliable
mouse input:
brew install cliclickRelated MCP server: After Effects MCP Server
Install the Moho plugin
Clone this repository, then run the installer for your platform:
git clone https://github.com/neosh11/moho-mcp-server.git
cd moho-mcp-server
chmod +x install-plugin.sh
./install-plugin.shOn Windows, run install-plugin.bat as an administrator. The installer copies
the menu script, poller, JSON library, and tool handlers into the Moho 14
application scripts directories.
You can also install the files manually. See docs/installation.md.
Configure an MCP client
Run the prebuilt package directly from the latest GitHub release:
{
"mcpServers": {
"moho-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/neosh11/moho-mcp-server/releases/latest/download/moho-mcp-server.tgz"
]
}
}
}For local development, build the bundle and point the client at it:
npm install
npm run build{
"mcpServers": {
"moho-mcp": {
"command": "node",
"args": ["/absolute/path/to/moho-mcp-server/dist/moho-mcp-server.mjs"]
}
}
}Start MohoMCP
Open Moho Pro 14 and load a project.
Choose Scripts > MohoMCP > Start/Stop MohoMCP Server.
Select MohoMCP Poller from the toolbar.
Start or reconnect your MCP client.
The bridge starts automatically when the client launches:
npx -y https://github.com/neosh11/moho-mcp-server/releases/latest/download/moho-mcp-server.tgzThe latest/download URL follows the newest release. To pin a version, use
https://github.com/neosh11/moho-mcp-server/releases/download/v0.1.0/moho-mcp-server-0.1.0.tgz.
The tarball contains the prebuilt bundle and installs without transitive
dependencies.
All protocol messages use stdout. Status and error messages use stderr.
Tools
The server exposes 26 tools:
Area | Tools |
Document |
|
Layers |
|
Bones |
|
Animation |
|
Mesh |
|
Input |
|
Batch |
|
It also exposes moho://shortcuts and moho://tools as MCP resources.
See docs/tool-reference.md for schemas and examples.
Use batch_execute for two or more independent Moho operations. A batch uses
one IPC round trip instead of one round trip per operation.
Configuration
Environment variable | Default | Description |
|
| File IPC directory used by the Node bridge |
The Moho plugin and bridge must use the same IPC directory.
Architecture
MCP client <--stdio--> Node bridge <--JSON files--> Moho Lua plugin
system tempFor each operation, the bridge writes req_<id>.json, waits for the plugin to
write resp_<id>.json, then removes the response. A platform-specific
keep-alive process refreshes the Moho viewport so the Lua poller continues to
run while the user is idle.
Development
npm install
npm run typecheck
npm test
npm run lint
npm run buildThe bundled executable is written to dist/moho-mcp-server.mjs.
License
Apache-2.0. Portions adapted from MohoMCP remain subject to its MIT notice; see THIRD_PARTY_NOTICES.md.
Available Tools
26 toolsanimation_deleteKeyframeB
Delete a keyframe from an animation channel at a specific frame
Inputs: frame (required), channel (required), layerId (required).
animation_getFrameStateA
Get the full animation state of a layer at a specific frame
Inputs: frame (required), layerId (required).
animation_getKeyframesA
Get keyframe data for a specific animation channel on a layer
Inputs: channel (required), layerId (required).
animation_setInterpolationA
Set the interpolation/easing mode on an existing keyframe (linear, smooth, ease_in, ease_out, step)
Inputs: mode (required), frame (required), channel (required), layerId (required).
animation_setKeyframeA
Set a keyframe value on an animation channel. For vec2 channels (translation, scale), pass value as {x, y}. For scalar channels (rotation, opacity, shear), pass a number.
Inputs: frame (required), value (required), channel (required), layerId (required).
batch_executeA
Execute multiple MOHO operations in a single IPC round-trip (~300ms total) instead of one round-trip per call (~300ms each). PREFER THIS over individual calls whenever you have 2+ operations.
Method names use DOT notation: "bone.setTransform", "layer.getProperties", "animation.setKeyframe", etc. Params match each tool's schema exactly.
Supports all methods EXCEPT: document.screenshot (too slow), batch.execute (no nesting).
Common patterns:
Multi-frame animation: batch bone.setTransform across frames 1,5,10,15,...
Bulk reads: batch document.getInfo + document.getLayers + layer.getProperties for several layers
Keyframe + easing: batch animation.setKeyframe then animation.setInterpolation for each
Multi-bone pose: batch bone.setTransform for each bone in a skeleton at the same frame
Layer setup: batch layer.setName + layer.setVisibility + layer.setOpacity
Returns { results: [{ success, index, result|error }], summary: { total, executed, succeeded, failed, stoppedEarly } }. Use stopOnError: true when later operations depend on earlier ones succeeding.
Inputs: operations (required), stopOnError.
bone_getPropertiesA
Get detailed properties of a specific bone (position, angle, scale, parent, etc.)
Inputs: boneId (required), layerId (required).
bone_selectBoneA
Select a bone in the MOHO UI (deselects all others first)
Inputs: boneId (required), layerId (required).
bone_setTransformA
Set the transform (angle, position, scale) of a bone at a specific frame. Creates keyframes automatically. All transform params (angle, posX, posY, scale) are optional — only supplied values are changed.
Inputs: frame (required), boneId (required), layerId (required), posX, +3 more.
document_getInfoA
Get information about the currently open MOHO document (name, path, dimensions, frame range, FPS)
Inputs: no named parameters.
document_getLayersA
Get a list of all top-level layers in the current MOHO document
Inputs: no named parameters.
document_screenshotA
Render the MOHO scene or capture the full application window and return as an image. Use mode "scene" (default) for a clean rendered frame, or "full" for the entire MOHO UI including timeline, layers panel, etc.
Inputs: mode, frame, width, height.
document_setFrameA
Navigate to a specific frame on the MOHO timeline
Inputs: frame (required).
input_mouseClickA
Click at (x, y) coordinates relative to the MOHO window top-left. Use with document_screenshot(mode='full') to identify UI element positions, then click them.
Inputs: x (required), y (required), button, clickType.
input_mouseDragA
Drag from (startX, startY) to (endX, endY) relative to the MOHO window. Useful for dragging timeline playhead, sliders, or drawing operations.
Inputs: endX (required), endY (required), startX (required), startY (required), +2 more.
input_sendKeysA
Send a keyboard shortcut to the MOHO window. Supports modifiers (ctrl, shift, alt) combined with keys. Examples: "ctrl+z" (undo), "ctrl+shift+z" (redo), "space" (play/pause), "delete", "ctrl+s" (save), "f5".
Inputs: keys (required).
layer_getBonesB
Get all bones in a bone layer
Inputs: layerId (required).
layer_getChildrenB
Get child layers of a group layer
Inputs: layerId (required).
layer_getPropertiesB
Get detailed properties of a specific layer (type, visibility, transform, etc.)
Inputs: layerId (required).
layer_selectLayerB
Select a layer in the MOHO UI
Inputs: layerId (required).
layer_setNameA
Rename a layer in the MOHO scene
Inputs: name (required), layerId (required).
layer_setOpacityA
Set the opacity/transparency of a layer at a specific frame (0.0 = fully transparent, 1.0 = fully opaque)
Inputs: frame (required), layerId (required), opacity (required).
layer_setTransformA
Set the transform (translation, rotation, scale) of a layer at a specific frame. All transform params are optional — only supplied values are changed.
Inputs: frame (required), layerId (required), scaleX, scaleY, +3 more.
layer_setVisibilityA
Show or hide a layer in the MOHO scene
Inputs: layerId (required), visible (required).
mesh_getPointsB
Get all mesh points (vertices) in a vector layer
Inputs: layerId (required).
mesh_getShapesB
Get all shapes (filled regions) in a vector layer
Inputs: layerId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
Each tool targets a distinct resource and action (e.g., animation keyframes vs. frame state, bone transform vs. bone selection). The names and descriptions clearly separate concerns, leaving little ambiguity for an agent.
Tool names follow a consistent domain_verbNoun pattern (e.g., animation_getKeyframes, bone_setTransform, document_getInfo). All use snake_case with the domain prefix, and the equivalent dot notation is documented.
At 26 tools, the count exceeds the 25-tool threshold for 'too many.' While each tool is relevant to MOHO, the set feels heavy; some groupings (e.g., layer_* and input_*) could potentially be consolidated without losing functionality.
The server covers many read and update operations (keyframes, transforms, visibility, bones) but lacks creation/deletion tools for core entities like layers, bones, or meshes. This limits the ability to perform full lifecycle workflows, making it necessary to rely on UI input simulation for certain actions.
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server for Adobe After Effects that enables AI assistants and other applications to control After Effects through a standardized protocol.213928MIT
- AlicenseCqualityDmaintenanceMCP server for controlling Adobe After Effects, enabling AI assistants to create compositions, manage layers, and animate properties.13MIT
- AlicenseAqualityDmaintenanceA local MCP server to control iClone 8's visible interface like a human user, providing read-only inspection and screen capture tools.5Apache 2.0
- AlicenseBqualityCmaintenanceMCP server for Adobe After Effects, enabling structured control over projects, compositions, layers, properties, expressions, keyframes, imports, and rendering through a local authenticated WebSocket bridge.24MIT