StykAnimate MCP
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., "@StykAnimate MCP Animate a stickman walking across the screen and export it as a YouTube Short"
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.
StykAnimate MCP
An MCP server that lets an AI assistant make stick-figure animations
with StykAnimate and export them as video — for example a 1080 × 1920 YouTube
Short — from a plain scene description. It runs the real StykAnimate app headless, so every frame comes
from the app's own renderer and exporter, and the saved .styk project opens in the app for hand editing.
Install
Claude Code:
claude mcp add stykanimate -- npx -y github:mashhoorahdal/stykanimate-mcpAny other agent, or several at once:
npx -y github:mashhoorahdal/stykanimate-mcp install # list agents and which are installed
npx -y github:mashhoorahdal/stykanimate-mcp install all # every agent found
npx -y github:mashhoorahdal/stykanimate-mcp install codex cursorAgent | id | Registered with |
Claude Code |
|
|
Codex CLI |
|
|
Gemini CLI |
|
|
VS Code |
|
|
Cursor |
|
|
opencode |
|
|
Windsurf |
|
|
Claude Desktop |
|
|
Options: --output <dir> for videos (default ~/styk-videos), --name <name>, --dry-run, and remove
instead of install to unregister. Config files are edited in place, keeping their other entries.
Any MCP client can also run npx -y github:mashhoorahdal/stykanimate-mcp as a stdio server.
Animation skills
Two skills teach an agent to animate well with these tools:
stykanimate-natural-motion: acting and timing for human-like motion. It covers beat sheets, holds, anticipation, overshoot, overlap, talking, reacting, handing things over, walking and shots for Shorts, plus a review checklist.
stykanimate-physics: gravity, weight, momentum, balance and contact. It covers jumps, throws, catches, drops, bounces, heavy lifting and falls, using
physics_planandarc.
Every MCP client gets them as the prompts natural-motion and physics (in Claude Code:
/mcp__stykanimate__natural-motion). To install them as skills that load automatically:
npx -y github:mashhoorahdal/stykanimate-mcp skills all # ~/.claude/skills and ~/.agents/skills
npx -y github:mashhoorahdal/stykanimate-mcp skills claude # Claude Code only (opencode reads it too)
npx -y github:mashhoorahdal/stykanimate-mcp skills agents # Codex, opencode and other ~/.agents/skills readers--dir <path> copies them somewhere else; --remove uninstalls them.
Requirements
Node.js 22 or newer.
Python 3.11 or newer, which runs StykAnimate's codec service (
STYK_PYTHONpicks the interpreter).Google Chrome for direct MP4 export. Without it, Playwright's Chromium is downloaded once (about 150 MB) and MP4s are made from WebM with ffmpeg.
ffmpeg for MP4 with sound, and for MP4 without Chrome. WebM and GIF never need it.
The first start downloads StykAnimate's source (about 16 MB) into your cache folder. To do that ahead of
time, together with the browser check: npx -y github:mashhoorahdal/stykanimate-mcp prepare.
What it can do
Tool | What it does |
| How to write a spec: coordinates, the rig, poses, timing, tips and an example |
| Spec → animation in the headless editor, optionally saved as |
| Gravity-timed keyframes for a jump, toss, drop or bounce, scaled to the figures |
| A contact sheet of chosen frames, drawn by the exporter |
| MP4, WebM or GIF; presets |
| Save as |
| Open a |
| Canvas, frame rate, length, figures and sound |
A spec lists the cast once (stickmen with optional eyes, rectangles, lines, circles, captions and Pivot
.stk figures), then keyframes that only say what changes. Motion between keyframes tweens with the app's
easing. Natural motion is built in:
walkkeyframes expand into a stride-matched walk or run cycle that faces the way it goes.attachholds a prop in a hand with an app join, so it follows every frame and can be handed over.bendandturnpose joints relative to their parent bone (forward kinematics).overshootswings past a pose and settles;stillpauses on a pose before the next move.arcmoves a figure along a gravity parabola into a keyframe, sampled smoothly while the rest of the scene keeps moving;physics_planpicks heights and flight times that match real gravity.faceturns the eyes to the viewer or sideways; about forty named poses cover talking, reaching, knocking, picking up, sitting and more.Voiceover and music files can be placed on the timeline, and the animation stretches to fit them.
examples/grocery-run.json is a complete 24-second Short: a man walks to a
shop, orders, pays and carries his groceries home.
Configuration
Variable | Meaning |
| Where relative output paths go (default: the client's working directory) |
| Use this StykAnimate-App checkout instead of downloading one |
| Which app commit and repository to download |
| Where downloads are kept |
| Which browser to use |
| ffmpeg and Python executables |
| Show the browser window while debugging |
How it works
src/spec.mjs compiles a spec into a native StykAnimate document with the app's own document factories
and validates it with the app's scene validator. src/session.mjs starts the app's codec service and a
headless browser on the app, loads the document into the editor and drives the app's export dialog and Save
As, so exports match what the app produces. src/app.mjs downloads the pinned app source once;
src/browser.mjs finds or installs a browser. The server answers its client's handshake immediately and
loads the app on the first tool call.
Development
npm ci
npm test # spec compiler unit tests (downloads the app on first run)
npm run smoke # build, preview, save and export examples/hello-short.json into out/smoke
npm run test:mcp # a full stdio round trip with sound; needs ffmpegLicense
GPL-3.0-or-later. This server runs and builds on StykAnimate (GPL-3.0-or-later), which it downloads at run time; it is not affiliated with the StykAnimate project.
Available Tools
8 toolsbuild_animationA
Build a StykAnimate animation from a spec (cast + keyframes) and open it in the headless editor, replacing the open one. Follow with preview_frames to check it, then export_video and save_project. See stykanimate_guide.
Inputs: spec (required), saveProject.
export_videoA
Export the open animation with the app's exporter. preset "shorts" gives a 1080×1920 MP4 for YouTube Shorts (needs a vertical canvas); "youtube" a 1080p landscape MP4. Without a preset, format picks mp4/webm/gif at the canvas size. Audio is included when the animation has sound.
Inputs: out (required), sound, format, preset.
open_projectA
Open an existing .styk, .piv, .stk or Stick Nodes file in the headless editor, for preview or export.
Inputs: path (required).
physics_planA
Physically timed keyframes to paste into a spec: jump (crouch, take off, arc, land, recover), toss (a prop leaves a hand and flies to a point), drop (a fall from rest) and bounce (a ball losing energy each bounce). Gravity is scaled to the figures, so air time matches the height. Merge other figures' changes into the returned keyframes rather than adding keyframes between them.
Inputs: kind (required), figure (required), x, y, +14 more.
preview_framesA
Render frames of the open animation as one contact-sheet image, exactly as export draws them. Frames are 0-based ticks.
Inputs: count, width, frames.
project_infoB
The open animation: canvas, fps, length, keyframes, figures and audio clips.
Inputs: no named parameters.
save_projectA
Save the open animation as a StykAnimate .styk project, which opens in the app for hand editing.
Inputs: out (required).
stykanimate_guideA
How to write an animation spec for build_animation: coordinates, the stickman rig, the pose library, timing and a worked example. Read this before the first build.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool maps to a distinct stage of the workflow: guide, open, inspect, build, physics pre-planning, preview, export, and save. The one potentially overlapping pair (preview_frames vs export_video) is clearly delineated by output type (contact-sheet image vs. video file).
Most names follow a clear verb_noun pattern (export_video, save_project, build_animation, open_project, preview_frames, physics_plan). The two outliers, project_info (noun-only) and stykanimate_guide (brand-prefixed noun), are readable but break the pattern.
Eight tools is well-scoped for an animation spec-build-preview-export pipeline; each tool occupies a distinct pipeline step with no filler.
The core lifecycle—learn spec format, open/build, inspect, preview, export, save—is fully covered, with physics_plan as a helpful accelerator. Minor gaps: no way to add or manage audio tracks despite export referencing sound, and no incremental edit tool (changes require rebuilding the whole spec).
Related MCP Connectors
Create AI animations and export transparent sprite sheets, alpha video, frames, and game assets.
Turn words, images, and audio into an animated video with MP4 export.
Make animated videos by asking Claude, Cursor or any MCP client. Your AI writes it, we render it.
Rig and animate 3D animals and characters from a sentence. Get FBX and GLB for any engine.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables MCP-compatible coding agents to control a posable, rigged stickman character by setting joint angles and facial expressions, and to render still frames or full animations as SVG, PNG, GIF, or MP4.-
- AlicenseNot gradedqualityCmaintenanceLets AI assistants render HTML animations to MP4 or GIF in 16:9, 9:16 and 1:1, preview single frames to check their own work, and finish videos with royalty-free music, AI voiceover, burned-in captions, titles and logos. It renders code frame by frame in a real browser rather than generating video from a text prompt.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to open, inspect, and edit StykAnimate and Pivot stick figure animation projects — reading rigs and timelines, evaluating poses at any frame, and transforming figures, keyframes, layers, and colors without a browser or GPU. Changes are undoable and projects can be saved or exported back to StykAnimate or Pivot formats.263GPL 3.0
- AlicenseAqualityCmaintenanceEnables LLMs and AI coding assistants to programmatically create, rig, animate, import, and export stick figure animation projects through a headless StykAnimate-compatible model and MCP stdio transport.825 npmMIT