Skip to main content

English · 中文


🎬 manim-web

AI × Math Animation — Let AI Be Your Animation Director

Say one sentence, AI writes code, renders, previews — all visible in real-time in your browser


🟢 Actively Maintained · Contributors Welcome

Every line of code deserves to be guarded, every idea deserves to be realized


PyPI Python 3.12+ MIT License manim MCP Bundled manim


pip install manim-web-mcp · AI Guide · API Reference


🎥 See It In Action

🔵 Shape Transforms

📐 Math Formulas

web_persistent_add("Circle → Square → Triangle") web_persistent_add("MathTex a²+b²=c²")

📈 Function Graphs

✨ Composite Animations

web_persistent_add("Axes + sin(x) + cos(x)") web_persistent_play("DrawBorderThenFill")

💡 Each animation above takes only 3 MCP calls to generate

web_persistent_start(project="demo")                          # 🚀 Start
web_persistent_add(code="c = Circle(radius=1, color=BLUE)")   # 🎨 Create shape
web_persistent_add(code="self.play(Create(c))")               # ▶️ Play animation
web_persistent_render_video()                                  # 🎬 Export video

⚡ 30-Second Setup

pip install manim-web-mcp          # 📦 Bundled optimized manim — no separate install needed
manim-web-mcp                       # 🚀 Launch! Browser opens preview automatically
📋 System Dependencies
  • Python 3.12+
  • ffmpeg — Video encoding
  • Cairo + Pango — Vector rendering & text
  • TeX Live (optional) — LaTeX formula rendering

🔥 Why manim-web

manim-web Traditional CLI VSCode Plugin Online Playground
AI-Driven ✅ MCP Protocol
Browser Live Preview ✅ WebSocket VSCode only
Cross-Conversation Persistence ✅ Stateful
Multi-Project Parallel ✅ Independent scenes
Sandbox Security ✅ 3-Level Policy

🎯 Pain Points Solved

Pain Point Before manim-web
AI animation workflow CLI trial-and-error, no preview One MCP call, browser live preview
manim installation Long dependency chain, complex setup pip install one step, bundled optimized version
Animation debugging Edit → render → view, slow loop Code = preview, incremental rendering in seconds
Lost progress across chats Scene disappears when AI conversation ends Session persistence, seamless cross-conversation resume
Code safety AI-generated code runs directly 3-level sandbox, dangerous operation interception
Single scene limitation One terminal, one scene Independent project spaces, no interference

🛠 MCP Tools Overview

🔥 Core Description
web_persistent_start Start project + open browser preview
web_persistent_add Execute manim code (most used)
web_persistent_play Quick-play animations
web_persistent_mobject Quick-create mobjects
web_persistent_play_composite Compose composite animations
👁 Preview Description
web_persistent_frame View current frame
web_persistent_capture High-quality screenshot
web_persistent_render_video Render mp4 / gif / webm
web_persistent_log View render log
⚙️ Management Description
web_persistent_export Export .py file
web_persistent_reset Reset scene
web_persistent_clear_code Clear code history
web_persistent_status Query status
web_persistent_list List all projects
web_persistent_stop Stop session
web_persistent_delete_project Delete project
web_docs_path Get docs path

📖 MCP Tool Reference · manim API Reference — 74 animations + 141 mobjects + 40 easings + 149 utilities


🔒 Sandbox Security

Level File I/O import exec/eval Use Case
strict Default, safest
relaxed Project dir only Whitelist Need file read/write
full Full trust + danger detection

📚 Documentation

📖 Link
🤖 AI Guide MCP Standard Workflow
📐 API Signatures manim API Reference
📝 Changelog Version History

🚀 Roadmap

Direction Description Status
🔌 manim Plugin Adaptation Compatible with community plugin ecosystem 🔜
📦 manim Version Tracking Auto-sync upstream releases, always latest 🔜
🎙️ Voice Narration AI voiceover + animation integrated output 🔜
🧩 Multi-Client Deep Adaptation Claude / Cursor / Windsurf / Cline specific optimizations 🔜
📊 Animation Template Market MCP one-click community templates, ready to use 📋
🔄 MCP Resource Protocol Support resources / prompts standard extensions 📋
🎯 Streaming Render Push MCP incremental output, generate & preview simultaneously 📋
🖼️ Multi-Modal Input Image / sketch / Sketch → manim animation 📋

💡 Got ideas? Open an Issue or Start a Discussion — your voice shapes the roadmap


🤝 Open Source — Beyond the Fork

Code can be copied. Ecosystems must be built together.

manim-web is under active development. If you're reading this source code — whether learning, adapting, or building your own project — we welcome you back:

  • 🐛 Open an Issue — Finding a problem is a contribution
  • 🔧 Submit a PR — A one-line fix is still power
  • 📖 Improve Docs — Helping newcomers helps yourself
  • 💬 Join Discussions — Your ideas shape the future

One person goes fast. A group goes far.

Open Issue · Contribute · Code of Conduct

📄 MIT License · Upstream manim (MIT) · Security

Release files for manim-web-mcp 2.0.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manim-web-mcp 2.0.27
File Size Uploaded
manim_web_mcp-2.0.27.tar.gz 4.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for manim-web-mcp 2.0.27
File Interpreter ABI Platform
manim_web_mcp-2.0.27-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 MB

Release files / manim_web_mcp-2.0.27.tar.gz

Download URL manim_web_mcp-2.0.27.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e7bc6055d277765dfb51988d38ef12c2f44c34815f71e06f53d0ce55080a2ed5
BLAKE2b-256 checksum
How to use checksums
c3b438fe6b7c7c26d29badb1e1bbf91905d4afb52f02b5639839be0ac7ee768f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / manim_web_mcp-2.0.27-py3-none-any.whl

Download URL manim_web_mcp-2.0.27-py3-none-any.whl
Size 3.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6476397017c3533c9fd829821eb8c1a8616abc621647be63718a331497828c17
BLAKE2b-256 checksum
How to use checksums
28c85843539c02d37c3232512e095195057751aafd5b9efc7787067c035c0044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.0.27 This release

2 release files

2.0.26

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page