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==1.2.0 Copy PIP instructions
Let an AI assistant animate inside OpenToonz, the open-source 2D studio tool, and keep every frame editable.
Summer hill. An original shot in the hand-painted tradition of Japanese feature animation. 96 frames, 29 layers, ten depth planes, a camera that travels with her, and a soft painted finish. Every drawing is an OpenToonz vector level, every move is a keyframe, and the finish is real OpenToonz fx. Open the scene and change anything.
How this shot was made · Draw together · Install · 59 tools · Guide
The whole shot is 45 tool calls. No frame was painted by hand and no image or video model was involved. In order:
The exact calls, with every coordinate, are in docs/media/making_of_summer_hill.py. Run it and you get the same scene, ready to edit in OpenToonz.
41 tool calls: docs/media/making_of_nightwalk.py.
Every line of this cat is one pen stroke the assistant placed with the stroke tool: 26 strokes, each with its own pressure, written straight into an OpenToonz vector level. No script generated it and nothing was traced.
That level is an ink layer. You and the assistant both draw on it:
One build_character call each. Age from 1 to 85, ten skin tones, face controls for the individual, seven hair styles, four head coverings and ten outfits, from shorts to a suit to a robe. The reasoning, and what is still missing, is in docs/CHARACTER_DESIGN.md.
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 Use pip 26.2.2+ or uv 0.13.4+. Older versions still trust the emSign certificate authority that was pulled after the October 2026 eMudhra incident. Upgrade first with python -m pip install --upgrade pip certifi or UV_SYSTEM_CERTS=true uv self update. The package itself requires certifi>=2026.10.19.
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.
To upgrade: pip install -U opentoonz-mcp (with uvx, run uvx opentoonz-mcp@latest once), then restart the client. Scenes made with 0.1.0 keep working.
To draw together, add step 7: "Add an ink layer called sketch." Draw on it in OpenToonz, save, and ask the assistant to look at your drawing and continue. docs/DRAWING_TOGETHER.md walks through it.
Everything works without this. Install it if you want the assistant's strokes to appear in your open OpenToonz window as they are drawn.
The plugin is C++ and has to be compiled for the exact OpenToonz you run, so it is not in the pip package as a binary. The source and a build script are in bridge/:
python bridge/build.py --opentoonz "C:\Program Files\OpenToonz" --source --qt --install Restart OpenToonz, then ask the assistant for opentoonz_live. It is built and tested for the official OpenToonz 1.8.0 Windows build, and it switches itself off in any other build instead of risking a crash.
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.
Make an ink layer called rough. I'll sketch the pose in OpenToonz. … Look at my drawing and add the hands and the hair on top, in a darker line.
I have the scene open. Draw the whiskers on the cat's face while I watch, a few strokes at a time.
Drawing together is a shorter loop, repeated:
The full list of 59 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 ├─► pen strokes ──► written straight into the .pli (ink layers; your strokes stay) │ └─ or, when the scene is open in OpenToonz with otbridge ──► live in your viewer └─► 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 same rule holds for ink layers. The .pli editor rewrites every level in my test folder byte for byte, and OpenToonz saves a level written by it back unchanged.
Issues and pull requests are welcome. See CONTRIBUTING.md. Changes are recorded in CHANGELOG.md.
Both 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 Nov 15, 2026.
Both 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.




