mcpField
O
OpenToonz MCP

OpenToonz MCP

Local
konkomaji.comMedia & Design1Updated 1w ago

About OpenToonz MCP

OpenToonz MCP connects an AI assistant to OpenToonz for animators, directors, and creators making editable 2D scenes. It works with native vector levels, xsheet timing, and keyframes, and supports camera moves, character motion, and physics.

Key features

  1. 01Create editable native vector levels
  2. 02Generate in-betweens and set xsheet exposure
  3. 03Build character rigs and walk or run cycles
  4. 04Add camera moves and editable effects
  5. 05Keep scene notes and hand edits

Use cases

  1. 01Create layouts and animatics for manual refinement
  2. 02Draw key poses and generate in-betweens
  3. 03Animate walks, jumps, and camera moves
  4. 04Continue editing assistant-made scenes in OpenToonz

MCP support

It connects an AI assistant to OpenToonz over MCP and provides tools for creating, editing, validating, and rendering scenes. Scenes use OpenToonz's native format and remain editable in the application.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"konkomaji-opentoonz": {
"command": "uvx",
"args": [
"opentoonz-mcp"
],
"env": {
"OPENTOONZ_HOME": "<OPENTOONZ_HOME>",
"OPENTOONZ_STUFF": "<OPENTOONZ_STUFF>",
"OTMCP_WORK": "<OTMCP_WORK>"
}
}
}
}
Run commanduvx opentoonz-mcp
Environment variables to set
OPENTOONZ_HOMEFolder containing OpenToonz.exe and tcomposer.exe (auto-detected when unset)
OPENTOONZ_STUFFOpenToonz stuff folder, TOONZROOT (auto-detected from the registry when unset)
OTMCP_WORKWhere the server keeps state, undo snapshots, renders and learned lessons

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypiopentoonz-mcp0.1.0

Tools

52

Saved tool list · updated 1w ago

This tool takes no parameters.

Details

From the project README

OpenToonz MCP

Let an AI assistant animate inside OpenToonz, the open-source 2D studio tool, and keep every frame editable.

CI PyPI Python License: MIT MCP

A blob character blinks, anticipates, jumps with squash and stretch, lands, and the camera pans with parallax

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.


Why I built this

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.

— konkomaji · konkomaji.com

Who it's for

  • Animators and directors who want fast layouts, animatics, in-betweens and camera passes they can then finish by hand.
  • Indie studios and solo creators making shorts, explainers, music videos or game cutscenes without a full crew.
  • Teachers and students of animation. The tools follow the classic principles (slow in/out, arcs, anticipation, follow-through), so the output is a worked example you can inspect frame by frame.
  • Developers building creative AI tools who need a real, inspectable 2D pipeline rather than pixels.

What it can do

🎨 Native vector drawingShapes, SVG paths and pressure brush strokes become OpenToonz .pli vector levels. OpenToonz performs the conversion itself, so the drawings are fully editable with OpenToonz's vector tools.
✍️ A hand-drawn lookPen-pressure taper. Subtle line wobble that holds still on held frames. Optional line boil. Anime cel shadows or pen hatching (inspired by p5.brush), and coloured trace lines. Style presets: anime, feature, cartoon, sketch, clean.
🎞️ Animator timingIn-betweens with slow-in/slow-out, arcs and squash and stretch that keeps the area constant. Xsheet exposure on ones, twos or threes. Blinks and lip sync from text.
🦘 Principles built inanimate_action adds anticipation, overshoot and settle using classic proportions. Physics tools do gravity-exact bounces (with material presets), recipe jumps, and spring-based follow-through for hair, tails and cloth.
🧍 Real human bodies that walk and runbuild_character makes a side-view cut-out rig for any age and sex (toddler, girl, boy, teen, woman, man, old woman, old man) from published body measurements, optionally with regional averages from national health surveys (for example the US, India, West Bengal, Japan, the UK or Nigeria). walk_cycle and run_cycle animate it from gait studies: planted feet that roll heel to toe, two-bone leg IK, an inverted-pendulum walk and a spring-mass run with exact gravity in the air. Each call reports cadence, step length, knee angles and foot slip so you can check the motion.
🎬 Studio looksapply_look adds a ghibli, klaus, spider_verse, comic, anime_satsuei, painterly or cartoon_saloon look as real OpenToonz fx nodes (bloom, form shadow and rim light, offset colour plates, grain). They stay editable in the FX Schematic, and remove_look takes them out cleanly.
🎥 Camera workPans with parallax layers, exponential trucks, impact and trauma shake, and a smoothed camera follow. It warns before a move reveals empty background or pans fast enough to strobe.
🖼️ Bring your own artImport SVG files as editable shapes. Place images, or let OpenToonz's own vectorizer trace them into vector levels. Build a reusable parts library (model sheets with variants such as mouth charts).
🔁 Works with your hand editsThe scene file is the source of truth. Retime or redraw in OpenToonz, save, and the assistant picks up your changes instead of overwriting them.
🛡️ Safe by designEvery edit takes a snapshot first. Failed calls roll back automatically. undo restores scenes and drawings exactly, writes are verified before they land, and per-scene locks protect against concurrent writers.
🧠 Remembers and improvesIt keeps notes and a journal per scene. Errors, render reviews and your feedback become ranked lessons that later sessions see, and tune_style makes preferred defaults permanent.
Vector shapes with cel shadow, wobbly inked lines and pressure taper rendered by OpenToonzSVG-path heart and leaf, and three brush strokes with different pressure curves
Cel shadow, wobble and pressure taper, rendered by OpenToonzSVG paths and brush strokes with per-point pressure

Requirements

  • OpenToonz 1.8 on Windows. The server auto-detects the install and the "stuff" folder from OpenToonz's registry entries.
  • Python 3.10+.
  • ffmpeg on PATH for MP4 and GIF output (PNG sequences work without it).

Install

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

VariableMeaningDefault
OPENTOONZ_HOMEFolder containing OpenToonz.exe and tcomposer.exedetected from the Windows uninstall entry, then C:\Program Files\OpenToonz
OPENTOONZ_STUFFOpenToonz "stuff" folder (TOONZROOT)detected from HKLM\SOFTWARE\OpenToonz\OpenToonz
OTMCP_WORKWhere state, undo snapshots, renders and lessons are kept%LOCALAPPDATA%\opentoonz-mcp

Ask the assistant to run opentoonz_info first. It reports what it found and anything missing.

Try it

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.

A good session looks like a studio pipeline:

  1. scene_context (always first)
  2. create_scene
  3. add_note (story)
  4. Layout: layers, pegs and camera
  5. Key drawings, then inbetween and timing
  6. set_pivot, then keys, animate_action and physics (or build_character and walk_cycle for people)
  7. camera_move, then apply_look for a studio finish
  8. validate_scene, contact_sheet, render

The full list of 52 tools with every parameter is in docs/TOOLS.md.

How it works

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.

Limitations

  • Windows first. It is developed and tested on Windows with OpenToonz 1.8. Other platforms may work with OPENTOONZ_HOME set, but they are untested.
  • Drawing comes from shapes, paths, brush strokes and imported art. There is no built-in image generator. Bring your own art, or have the assistant compose it from paths and parts.
  • Redrawing replaces your edits on that layer. If you redraw, in the GUI, a layer the assistant drew, the assistant won't overwrite it unless told to (force=true).
  • Render tests need a local OpenToonz. CI runs the unit tests only.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md. Changes are recorded in CHANGELOG.md.

Credits

  • Built by konkomaji.
  • Powered by OpenToonz (BSD-3-Clause), which is not bundled. Thank you to DWANGO, the original Toonz team at Digital Video, Studio Ghibli, and every OpenToonz contributor. See NOTICE.
  • This project is not affiliated with OpenToonz, DWANGO, Digital Video or Studio Ghibli.

Released under the MIT License.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.