Skip to main content
Glama

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-mcp

Any 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 cursor

Agent

id

Registered with

Claude Code

claude

claude mcp add --scope user

Codex CLI

codex

codex mcp add

Gemini CLI

gemini

gemini mcp add --scope user, or ~/.gemini/settings.json

VS Code

vscode

code --add-mcp

Cursor

cursor

~/.cursor/mcp.json

opencode

opencode

~/.config/opencode/opencode.json

Windsurf

windsurf

~/.codeium/windsurf/mcp_config.json

Claude Desktop

claude-desktop

claude_desktop_config.json

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_plan and arc.

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.

Related MCP server: Oh, the readme says the server is Animation Machine MCP Server. The description must say what it enables, not the name. Two sentences max. Let me craft: "Lets AI assistants and coding agents 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." That's one sentence. Good. Maybe add "It renders code frame by frame in a real browser rather than generating video from text." That's two sentences. Is that allowed? The requirement: description must say what the server enables and must not restate the name. Mentioning it isn't a text-to-video model is extra info; fine but keep concise. I'll keep two sentences, second one short. Final JSON.

Requirements

  • Node.js 22 or newer.

  • Python 3.11 or newer, which runs StykAnimate's codec service (STYK_PYTHON picks 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

stykanimate_guide

How to write a spec: coordinates, the rig, poses, timing, tips and an example

build_animation

Spec → animation in the headless editor, optionally saved as .styk

physics_plan

Gravity-timed keyframes for a jump, toss, drop or bounce, scaled to the figures

preview_frames

A contact sheet of chosen frames, drawn by the exporter

export_video

MP4, WebM or GIF; presets shorts, youtube, tiktok, instagram, x, gif, best

save_project

Save as .styk

open_project

Open a .styk, .piv, .stk or Stick Nodes file to preview or export it

project_info

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:

  • walk keyframes expand into a stride-matched walk or run cycle that faces the way it goes.

  • attach holds a prop in a hand with an app join, so it follows every frame and can be handed over.

  • bend and turn pose joints relative to their parent bone (forward kinematics).

  • overshoot swings past a pose and settles; still pauses on a pose before the next move.

  • arc moves a figure along a gravity parabola into a keyframe, sampled smoothly while the rest of the scene keeps moving; physics_plan picks heights and flight times that match real gravity.

  • face turns 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

STYK_OUTPUT_DIR

Where relative output paths go (default: the client's working directory)

STYK_APP_ROOT

Use this StykAnimate-App checkout instead of downloading one

STYK_APP_REF, STYK_APP_REPOSITORY

Which app commit and repository to download

STYK_CACHE_DIR

Where downloads are kept

STYK_BROWSER_PATH, STYK_BROWSER_CHANNEL

Which browser to use

STYK_FFMPEG, STYK_PYTHON

ffmpeg and Python executables

STYK_HEADED=1

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 ffmpeg

License

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 tools
build_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

    A3.9/5.0

    Scored across 8 tools

    Disambiguation5/5

    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).

    Naming Consistency4/5

    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.

    Tool Count5/5

    Eight tools is well-scoped for an animation spec-build-preview-export pipeline; each tool occupies a distinct pipeline step with no filler.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets 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
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      26
      3
      GPL 3.0