# antoniomachuca/MCP-Manim-Slides [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/antoniomachuca/MCP-Manim-Slides  
**GitHub Stars:** 3  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/antoniomachuca-mcp-manim-slides

## Description
Generate and render Manim-Slides presentations: run Manim code headlessly, compile to Reveal.js HTML, PDF or PPTX, and preview slides as images, videos or GIFs.

## Tools
Capabilities this server exposes over MCP:

- **quality**
- **html**
- **pdf**
- **pptx**
- **zip**
- **png**
- **jpg**
- **webp**
- **mp4**
- **gif**
- **vision**

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/antoniomachuca/MCP-Manim-Slides), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/antoniomachuca/MCP-Manim-Slides.git
```

2. Run:

```sh
cd MCP-Manim-Slides
```

3. Install:

```sh
uv sync --extra dev
```

4. Install:

```sh
uv sync --extra dev --extra vision
```

5. Install:

```sh
pip install "mcp-manim-slides[vision]"
```

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/antoniomachuca-mcp-manim-slides/readme_

