MCP server that lets AI assistants animate in OpenToonz: real vector levels, xsheet timing, keyframes, physics and studio-style line work.
pip install opentoonz-mcp Copy PIP instructions
Let an AI assistant animate inside OpenToonz, the open-source 2D studio tool, and keep every frame editable.
Made entirely with this server's tools. The character, background and timing are real OpenToonz vector levels, xsheet cells and keyframes, so you can open the scene and keep animating by hand.
Most "AI animation" today produces a finished video you can't edit. Animators need the opposite: drawings they can fix, timing they can retime, and a scene they can hand to the next person in the pipeline.
OpenToonz is the open-source release of Toonz, the software Studio Ghibli customised and used on its films. It already has everything a 2D pipeline needs: vector levels, an xsheet, pegbars, cameras and a compositor. What it lacked was a way for an assistant to use it.
OpenToonz MCP is that bridge. You describe a shot. The assistant lays it out, draws key poses, in-betweens them, times them on ones, twos or threes, adds camera work, and renders. The result is a normal OpenToonz scene. You can open it, change anything, save it, and ask the assistant to continue. Your edits are kept.
pip install opentoonz-mcp # or run without installing: uvx opentoonz-mcp Claude Code claude mcp add opentoonz -- uvx opentoonz-mcp Claude Desktop, Cursor and other MCP clients { "mcpServers": { "opentoonz": { "command": "uvx", "args": ["opentoonz-mcp"], "env": { "OPENTOONZ_HOME": "C:\\Program Files\\OpenToonz", "OPENTOONZ_STUFF": "C:\\OpenToonz stuff" } } } } The env block is optional. Use it only if auto-detection picks the wrong install.
Ask the assistant to run opentoonz_info first. It reports what it found and anything missing.
Create a 4-second anime-style scene of a round mochi character on a hill. It blinks, crouches, jumps and lands with squash and stretch while the camera pans right with parallax. Then render an MP4.
Import my sketch C:\art\pose.png on a traced layer with centerline tracing, then in-between it to the next key on twos.
Build an old woman and a seven-year-old girl, and have them walk across the frame together.
Open the scene in OpenToonz. I'll fix the arm on frame 12. … Done: carry on from frame 13.
The full list of 52 tools with every parameter is in docs/TOOLS.md.
assistant ──MCP──► opentoonz-mcp ──► .tnz scene (edited in place, lossless) │ ├─► SVG drawings ──► OpenToonz.exe (headless script) ──► native .pli ──► pen pressure ├─► images ───────► OpenToonz vectorizer ───────────────► traced .pli └─► tcomposer.exe (OpenToonz's renderer) ──► PNG ──► ffmpeg ──► MP4 / GIF Everything that touches OpenToonz data is checked against OpenToonz itself. The keyframe interpolation, for example, is a port of OpenToonz's evaluator, and tests compare it frame by frame with real tcomposer renders (within 1.5 px).
The details are in docs/WHITEPAPER.md, docs/ARCHITECTURE.md and docs/FORMAT_NOTES.md.
Issues and pull requests are welcome. See CONTRIBUTING.md. Changes are recorded in CHANGELOG.md.
All 2 files in this release have provenance metadata.
2d-animation ai animation claude mcp model-context-protocol opentoonz
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




