
Manim MCP Server
Run Manim animation code from your MCP client and get back rendered videos.
Add to your client
Copy the config for your MCP client and paste it into its config file.
git clone https://github.com/abhiemj/manim-mcp-server.gitPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"manim-mcp-server": {
"command": "/absolute/path/to/python",
"args": [
"/absolute/path/to/manim-mcp-server/src/manim_server.py"
],
"env": {
"MANIM_EXECUTABLE": "/Users/[Your_username]/anaconda3/envs/manim2/Scripts/manim.exe"
}
}
}
}Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf
Before you start
- Python 3.8+
- Manim (Community Version) installed (pip install manim)
- MCP installed (pip install mcp)
About Manim MCP Server
Manim MCP Server is an MCP server that executes Manim (Community Version) animation scripts and returns the rendered video. It writes the submitted code to a script in a media folder, runs the Manim executable as a subprocess, and provides a tool to clean up temporary directories afterward. It is intended for integration with Claude Desktop so that an assistant can generate animations dynamically.
Tools & capabilities (2)
execute_manim_codeExecute the provided Manim code. Writes the script to a temp directory inside the media folder, runs the Manim executable on it, and reports whether the video was generated successfully.
cleanup_manim_temp_dirClean up the specified Manim temporary directory after execution by removing it and its contents.
When to use it
- Generating math and educational animations from natural-language prompts via an LLM assistant
- Rapidly prototyping Manim scenes without manually running the renderer
- Producing rendered animation videos directly inside a Claude Desktop workflow
Security notes
The server executes arbitrary Manim Python code it receives as input via subprocess. Only run it with trusted input, since executing untrusted scripts can lead to arbitrary code execution on the host.
Manim MCP Server FAQ
How do I integrate it with Claude?
Add a 'manim-server' entry to your claude_desktop_config.json with your Python interpreter as the command and the path to src/manim_server.py as the argument, plus the MANIM_EXECUTABLE environment variable pointing to your manim binary.
How do I find my Python path?
On Linux/macOS run `which python`; on Windows run `where python` (Command Prompt) or `(Get-Command python).Source` (PowerShell).
Where does the rendered video go?
Output is saved into a visible media folder created next to the server script, under a 'manim_tmp' temporary directory.
Alternatives to Manim MCP Server
Compare all alternatives →Popular community server that feeds Figma layout data to coding agents via a Figma API token.
Generate beautiful, modern UI components from natural-language descriptions inside your IDE.
Give AI assistants full access to shadcn/ui v4 components, blocks, demos, and metadata across React, Svelte, Vue, and React Native.