Chalkcast
Chalkcast is an MCP server that lets an agent author, render, and visually verify Manim animated explainers — returning measured evidence and a verdict rather than a blind video render.
Manage sessions:
open_project(theme, quality, fps),inspect_project(scenes, steps, open obligations),close_project.Build scenes:
add_sceneto append scenes, plusadd_text,add_equation(LaTeX),add_plot(axes + one or more function curves), andadd_shape(circle, square, rectangle, triangle, arrow, dot, line).Add math visuals:
add_areafor shaded integrals under a plotted function andadd_riemannfor Riemann rectangles (refinable to show convergence).Choreograph animation:
add_stepwith kinds write, transform, highlight, fade, camera_move, wait — with targets, durations, zoom/focus, and notes.Preview and render:
render_framefor a fast single-still,render_scenefor video + sampled frames followed by verification lanes.Verify output:
inspect_renderruns the geometric lanes (framing, collision, legibility, timing, compile, fidelity, range) and returns a verdict plus obligations; ~1–3 s without encoding video.Export:
export_gifproduces a shareable GIF, blocked while error obligations remain.Check the environment:
inspect_environmentreports which providers (Manim, LaTeX, ffmpeg, vision) are present and what degrades without each.
Encodes rendered scenes to video and exports shareable GIFs from the latest verified render; inspect_environment reports whether ffmpeg is present and what degrades without it.
Compiles LaTeX for equation objects and runs a strict compile verification lane, catching TeX errors that Manim's batch mode silently recovers from and turning them into blocking obligations before export.
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., "@Chalkcast animate how Riemann sums approximate the area under y = x², then verify it"
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.
Chalkcast
Describe a concept. Get a verified animated explainer.
Chalkcast is an MCP server that lets an agent author, render, and visually verify Manim animations — so the output is a video that's actually correct on screen, not a plausible script that renders wrong.

One continuous animation, authored, verified and rendered entirely through the MCP server (passed on the first render): a Fourier series grows harmonic by harmonic into a square wave, and the Gibbs overshoot (the true one, ≈ 1.179) stays at the edges. Reproduce it with python examples/showcase.py.
Who it's for
Educators & students — turn "explain the Fourier series" into a clean animated explainer, without learning Manim or writing LaTeX by hand.
STEM content creators — produce 3Blue1Brown-style animations in minutes instead of hours of coding and debugging renders.
Agents & tooling — a typed, verifiable MCP surface an AI can drive end to end, with a verdict it can act on instead of a video it can't inspect.
Related MCP server: canvas3d-mcp
Why another Manim MCP?
Existing Manim MCP servers give the agent one tool: run this code, return the video. The agent writes Manim blind and hopes — but Manim is unforgiving (a LaTeX typo, an off-screen label, two terms overlapping, a transition firing before its target exists). The video "renders" and is still wrong, and the agent has no way to know.
Chalkcast gives the agent eyes and a correction loop:
author scene ──► render ──► inspect (verification lanes) ──► verdict
▲ │
└──────────────── fix obligations ◄──── needs_fix ─────────┘Every render returns evidence (the artifact + sampled frames) and a structured
verdict. Problems become obligations that block export until resolved. See
docs/SPEC.md for the full design.
Install
One command (Claude Code; needs uv):
claude mcp add chalkcast -- uvx --python 3.12 --from "chalkcast[render]" chalkcast serve--python 3.12 matters: Chalkcast needs Python ≥ 3.11, and uv downloads one if the
system Python is older (macOS ships 3.9). Then just ask in natural language.
Or with pip, into any Python ≥ 3.11 environment:
pip install "chalkcast[render]"
claude mcp add chalkcast -- chalkcast serve[render] brings Manim and a bundled ffmpeg. Equations also need a LaTeX
distribution. chalkcast doctor checks everything and prints the exact fix command
for your OS:
chalkcast doctor # Manim / LaTeX / dvisvgm / physics.sty / ffmpeg
chalkcast demo # builds + verifies + renders the demo scenemacOS:
pycairo(pulled in by Manim) has no macOS wheel and builds from source, so it needsbrew install cairo pkg-configfirst. On a machine where Manim's native deps were built by hand, seescripts/dev-env.shandscripts/serve.sh.
What the agent gets
Group | Tools |
Session |
|
Authoring |
|
Editing |
|
Verification |
|
Rendering |
|
Export |
|
Discovery |
|
Continuous animation:
add_parameter("t"), usetin plot expressions or shape anchors (at_x="t"), thenadd_step("tween", param="t", value=6.28). Curves, areas and anchored dots follow it frame by frame.with_previous=Trueplays a step at the same time as the one before.Fail fast, nothing implicit: expressions are validated when authored (an AST whitelist: x, math functions,
np.<fn>, declared parameters). Colors, ranges, step targets, timeline order, and arguments that don't apply to a shape or step are rejected with a message saying what to do. Edits are all-or-nothing. Side effects (cascade removals, regrouped steps, redeclared parameters, default ranges) are reported in the result.export_gifrefuses a render that predates the latest edit. Thirty-two independent audits (22, then 17, 14, 8, 4, 9, 4, 7, 5, 5, 7, 8, 5, 8, 7, 7, 10, 4, 5, 5, 8, 7, 7, 5, 7, 9, 7, 4, 10, 9, 7 and 6 findings, the last with no high-severity one; in the last thirteen, 9, 10, 8, 10, 9, 9, 9, 9, 9, 10, 8, 9 and 10 of 10 fresh explainers reached a correct GIF within two renders, and in the last one every verdict matched its frames; the last twenty-three built realistic explainers end to end and compared verdicts with frames, one of them over the real MCP stdio protocol) are pinned one test per finding intests/test_ergonomics.py.Faithful plots: dense sampling, curves split at jumps and poles (no invented risers or overshoot), clipping to the axes. A fidelity lane measures the drawn curve against the true function. Areas and Riemann sums are refused when they could not show the integral (function undefined or off the axes, y = 0 not visible).
How verification works
inspect_render builds the real Manim objects without encoding video (1–3 s) and
measures them: exact bounding boxes, curve and axis ink, the drawn-vs-true error
of every graph, and a strict LaTeX compile (Manim's batch mode silently "recovers"
from LaTeX errors). Lanes: framing · collision · legibility · timing · compile ·
fidelity · range. fix_scene repairs the mechanical problems (moves, rescales,
resampling) and leaves the rest as obligations for the agent.
Measured on labelled scenes (chalkcast bench, chalkcast bench --holdout N).
Each held-out set was written and labelled (and checked frame by frame) by an
author who never read the verifier. The first run of each set is the honest
out-of-sample figure:
Set | Cases | First run: detection / false positives | Bugs that run exposed |
Held-out 1 | 39 (24 defective) | 95.8 % / 7.7 % | over-strict safe margin; aliasing taken for a jump |
Held-out 2 | 47 (31 defective) | 90.3 % / 12.8 % | estimated noise after a compile error; straight arrows and box sides sampled only at their ends; equation size judged by box height |
Held-out 3 | 44 (26 defective) | 96.2 % / 0 % | an arrow's shaft was never sampled (only its tip) |
Held-out 4 | 46 (25 defective) | 96.0 % / 0 % | a label written during a zoom-in was excused as an intentional crop |
After each set's bugs were fixed, every set (and the 40-case development set)
scores 100 % / 0 %. From then on they are regression tests (tests/test_measured.py),
not independent measures. Held-out 3 was written after the fixes for sets 1 and 2,
and held-out 4 (continuous tweens, simultaneous beats, transforms, camera moves)
after eleven ergonomics audits; each was run once, untouched. Held-out 4 is the
current out-of-sample estimate.
Example (what the agent does)
open_project(theme="chalkboard")
add_scene(title="Area under a parabola")
add_text("Area under y = x^2", y=3)
add_plot(functions=[{"expr":"x**2","color":"YELLOW"}], x_range=[0,2,1], y=-0.8)
add_equation(r"\int_0^1 x^2 \, dx = \tfrac{1}{3}", y=2)
add_step("write", targets=["text_1"])
add_step("write", targets=["plot_1"])
add_step("write", targets=["equation_1"])
add_step("highlight", targets=["equation_1"])
inspect_render() # -> measured verdict in ~2 s, no video
fix_scene() # -> repairs framing / collision / fidelity if needed
render_scene() # -> video + frames + verdict + obligations
export_gif() # -> shareable GIF (blocked if error obligations remain)Status
Alpha. Scientific correctness is tested numerically (tests/test_science.py): shaded
areas equal their integrals, Riemann rectangles their sum, drawn curves their
function (including sin 30x), and the Gibbs peak its theoretical value. On
PyPI and the
MCP Registry (io.github.FredMichel/chalkcast).
Vision-based intent verification is next (see docs/SPEC.md).
License
MIT.
Available Tools
16 toolsadd_areaC
Shade the area under a plotted function between x_min and x_max (the integral).
Inputs: plot_id (required), color, x_max, x_min, +4 more. Returns: object
add_equationC
Add a LaTeX equation (e.g. tex=r'e^{i\pi}+1=0').
Inputs: tex (required), x, y, color, +3 more. Returns: object
add_plotB
Add axes with functions. Each function: {'expr':'x**2','color':'YELLOW', 'smooth':true,'dx':0.05}. Set smooth=false (and a small dx) for discontinuous/ piecewise functions so spline smoothing doesn't invent oscillations. Pass functions=[] for bare axes; omit it for a default parabola.
Inputs: x, y, width, height, +5 more. Returns: object
add_riemannC
Riemann rectangles under a plotted function (smaller dx = finer; transform coarse->fine to show convergence).
Inputs: plot_id (required), dx, color, x_max, +4 more. Returns: object
add_sceneC
Append a scene to the project.
Inputs: title, project_id. Returns: object
add_shapeC
Add primitive geometry: circle|square|rectangle|triangle|arrow|dot|line.
Inputs: x, y, size, color, +5 more. Returns: object
add_stepC
Append a timed beat. kind: write|transform|highlight|fade|camera_move|wait.
For transform, set to (destination object id). For camera_move, set zoom/focus.
Inputs: kind (required), to, note, zoom, +6 more. Returns: object
add_textC
Add a title/label/callout.
Inputs: text (required), x, y, color, +4 more. Returns: object
close_projectC
Release the project session.
Inputs: project_id. Returns: object
export_gifB
Export the latest render of a scene as a shareable GIF (blocked by open error obligations).
Inputs: scene_id, project_id. Returns: object
inspect_environmentB
Which providers are present (Manim, LaTeX, ffmpeg, vision) and what degrades without each.
Inputs: no named parameters. Returns: object
inspect_projectC
Current project state: scenes, steps, and open obligations.
Inputs: project_id. Returns: object
inspect_renderB
Run the geometric verification lanes on a scene and return a verdict + obligations. Uses the latest render (if any) for the compile lane; otherwise runs graph-only lanes.
Inputs: scene_id, project_id. Returns: object
open_projectC
Start a project session. quality: draft|low|medium|high. theme: chalkboard|whiteboard|dark.
Inputs: fps, theme, quality. Returns: object
render_frameC
Fast single-still preview of a scene (last frame).
Inputs: scene_id, project_id. Returns: object
render_sceneB
Render one scene to video + sampled frames, then run verification lanes.
Inputs: scene_id, project_id. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose: project lifecycle, scene/step authoring, plot annotations, rendering, verification, environment inspection, and export are all separated. Even the closely related plot tools (add_plot, add_area, add_riemann) target visibly different outputs, and render_scene vs render_frame vs inspect_render are well differentiated.
All names follow a consistent lower_snake_case verb_noun pattern: add_*, inspect_*, render_*, open_project, close_project, export_gif. There are no mixed case styles or vague standalone verbs.
Sixteen tools is slightly above the typical well-scoped range, but the surface is coherent: project setup, scene construction, rendering, verification, and export are all represented. Each tool appears to earn its place, though a few could potentially be consolidated.
The surface covers the main authoring lifecycle: open/close project, add scenes and steps, add visual elements, render, verify, inspect environment, and export. The main gap is the absence of update/delete/reorder tools for scenes, steps, or elements, which may require restarting or working around mistakes.
Maintenance
Related MCP Connectors
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
AI video editor your agent can drive: plan scenes, edit a multi-track timeline, and render MP4s.
AI visual generation agent: multi-pipeline rendering, prompt crafting, and image composition.
Video production studio for AI agents: AI media, motion graphics as code, timeline and export.
Related MCP Servers
- AlicenseCqualityCmaintenanceExposes manimgl mathematical animation functionality as MCP tools, enabling LLMs to create animated scenes with narration and background music, and render to video.58MIT
- FlicenseAqualityDmaintenanceEnables AI agents to create, render, and validate 3D scenes, 2D art, and games in HTML canvas using Three.js, WebGL, or Canvas 2D, with multi-angle screenshots, structured validation reports, and interactive playtesting.5-
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to generate labeled contact sheets of Manim animations, scaffold storyboards from renders, and validate rendered steps against expected intents via MCP tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLM agents to generate and validate multi-granularity storyboard assets from text prompts, including 2D SVG motion, 3D Blender depth/blockout, and SDXL ControlNet final images. It also supports vision-based self-correction and a SQLite knowledge database of successful recipes.MIT