MCP Manim Slides logo

MCP Manim Slides

by antoniomachuca

Render Manim-Slides code and export presentations as Reveal.js HTML, PDF, PPTX, video, images, GIFs, or ZIP files.

Install MCP Manim Slides

Run the project’s own setup commands, in order.

Setup steps from the project

antoniomachuca/MCP-Manim-Slides installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/antoniomachuca/MCP-Manim-Slides.git
    
  2. 2. Run
    cd MCP-Manim-Slides
    
  3. 3. Install
    uv sync --extra dev
    
  4. 4. Install
    uv sync --extra dev --extra vision
    
  5. 5. Install
    pip install "mcp-manim-slides[vision]"
    

Overview

antoniomachuca/MCP-Manim-Slides runs Manim-Slides code through MCP, renders scenes headlessly, and compiles the results into presentation and media formats. It supports per-scene caching, incremental deck synchronization, visual previews, contact sheets, and optional browser-based deck screenshots. Reach for it when an MCP-compatible coding assistant needs to create, inspect, revise, and export animated Manim presentations. The server runs locally with Python, Manim Community Edition, Manim-Slides, FFmpeg, and LaTeX.

Use cases

  • Generate animated lecture slides from Manim-Slides Python code
  • Render only changed scenes while revising a presentation
  • Export a deck as Reveal.js HTML, PDF, PPTX, or ZIP
  • Inspect slide visuals with previews, screenshots, or contact sheets
  • Combine slide media into a single MP4 presentation

Key features

  • Headless Manim-Slides rendering
  • Per-scene content-hash caching
  • Incremental deck synchronization
  • Reveal.js, PDF, PPTX, and ZIP export
  • Slide previews and contact sheets
  • MP4 export with optional fade transitions

Tools11

What MCP Manim Slides lets your agent do. Expand a tool for its parameters.

Self-reported~11 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 44d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.

How MCP Manim Slides works

What antoniomachuca/MCP-Manim-Slides does

antoniomachuca/MCP-Manim-Slides connects an MCP-compatible client to Manim-Slides workflows. It accepts Python source containing Manim Slide classes, renders selected scenes, and returns paths to generated media. Rendered scenes can then be compiled into interactive Reveal.js HTML, PDF, PPTX, or ZIP output, or combined into a single MP4 file.

The workflow also supports visual inspection. Individual slides can be extracted as PNG, JPG, WebP, MP4, or GIF previews. A deck can be captured as slide screenshots when the optional vision dependencies are installed, and contact sheets provide a single image made from slide frames.

How it works

execute_manim_code writes supplied code to a temporary script and invokes manim-slides render headlessly. Rendering can target named scenes, use a selected quality level, and apply a timeout. Scene output is cached using the shared preamble, scene source, and quality as the cache key, so changing one scene does not require rendering unchanged scenes again.

sync_deck combines rendering and compilation. It compares scene hashes with the previous synchronization state, renders new or modified scenes, restores unchanged media from cache, reports removed scenes, and rebuilds the presentation. compile_presentation converts rendered assets with manim-slides convert, while export_revealjs_html exposes options for themes, transitions, controls, progress indicators, slide numbers, URL hashes, looping, offline output, and one-file embedding.

export_video uses FFmpeg to normalize slide media and concatenate it into an MP4. Still-image slides receive a fixed duration, and an optional fade transition can be applied. Rendering progress is sent to the MCP client through progress notifications, and runtime output and exceptions are returned for an error-feedback loop.

Setup and configuration

The server requires Python 3.10 or newer, uv, Manim Community Edition, Manim-Slides, FFmpeg, and LaTeX. Install the project with uv sync --extra dev. To enable browser-based deck screenshots, install the vision extra and the Chromium browser:

bash
uv sync --extra dev --extra vision
playwright install chromium

Run the server through an MCP client's stdio configuration by pointing command to the project's virtual-environment Python executable and passing mcp_manim_slides/server.py as an argument. The configuration can set WORKSPACE_DIR to the output directory. Generated media is kept in structured workspace directories.

Tools and capabilities

Available operations include:

  • hello_world for checking MCP connectivity.
  • execute_manim_code for rendering supplied Manim-Slides Python code.
  • sync_deck for cached, incremental rendering followed by deck compilation.
  • compile_presentation for HTML, PDF, PPTX, or ZIP conversion.
  • export_revealjs_html for configured Reveal.js output.
  • export_video for producing one MP4 from slide media.
  • preview_slide for extracting a single image, video, or animated preview.
  • screenshot_deck for headless screenshots of every slide when the vision extra is installed.
  • contact_sheet for assembling slide frames into a grid with FFmpeg.

Built-in prompt templates cover title slides, agendas, code walkthroughs, mathematical derivations, and two-column comparisons. These prompts help an MCP client structure requests for Manim-Slides code. A local browser preview can serve exported Reveal.js HTML through a temporary HTTP server.

Limitations and notes

The server depends on the external Manim rendering toolchain, including FFmpeg and LaTeX. Browser screenshots require the optional Playwright-based vision installation and a Chromium download; rendering, compilation, video export, and contact sheets do not require that extra. The server is intended for local MCP configuration and uses filesystem workspace paths for generated media and cache data. Output quality, video dimensions, transitions, and still-image duration are controlled through tool arguments.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Manim Slides

antoniomachuca/MCP-Manim-Slides is an MCP server that connects AI clients to Manim Community Edition and Manim-Slides. Its main tools render Slide-based Python code, synchronize cached decks, compile Reveal.js HTML, PDF, PPTX, or ZIP files, export MP4 video, and generate image, video, GIF, or browser-based previews.

Install it with Python 3.10+, uv, Manim Community Edition, FFmpeg, LaTeX, and Manim-Slides, then run `uv sync --extra dev` in the cloned repository. Add the server's Python executable and `mcp_manim_slides/server.py` to an MCP client's stdio configuration.

Install the optional vision dependencies with `uv sync --extra dev --extra vision`, then run `playwright install chromium`. The `screenshot_deck` operation uses Playwright to capture deck slides headlessly; other rendering, export, and contact-sheet operations work without this extra.

Yes. Cursor is named as a supported MCP-compatible client. Configure it to launch the project's virtual-environment Python executable with `mcp_manim_slides/server.py` as the argument, and optionally set `WORKSPACE_DIR` for generated output.

Yes. Use `compile_presentation` with PPTX output, or use the corresponding presentation export workflow after rendering scenes. The server also supports Reveal.js HTML, PDF, ZIP, MP4, image previews, and animated GIF previews.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Manim Slides AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/antoniomachuca-mcp-manim-slides?style=directory)](https://allmcps.com/mcp/antoniomachuca-mcp-manim-slides)
HTML Embed
<a href="https://allmcps.com/mcp/antoniomachuca-mcp-manim-slides"><img src="https://allmcps.com/api/badge/antoniomachuca-mcp-manim-slides?style=directory" alt="MCP Manim Slides on AllMCPs" /></a>