Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

manim-mcp-server

MCP.Pizza Chef: abhiemj

The Manim MCP Server is a specialized MCP server that executes Manim animation Python scripts and returns the rendered video output. It supports saving animations in a visible media folder and allows cleanup of temporary files. Configurable and portable, it integrates with MCP-enabled environments to enable real-time animation generation from code, facilitating dynamic visual content creation within AI workflows.

Use This MCP server To

Render Manim animations from Python scripts on demand Generate educational math animations dynamically Integrate animation rendering into AI-assisted content pipelines Automate video generation for tutorials or presentations Clean up temporary animation files after rendering Serve as a backend for interactive animation generation tools

README

Manim MCP Server

Manim MCP Demo

Overview

This is an MCP (Model Context Protocol) server that executes Manim animation code and returns the generated video. It allows users to send Manim scripts and receive the rendered animation.

Features

  • Executes Manim Python scripts.
  • Saves animation output in a visible media folder.
  • Allows users to clean up temporary files after execution.
  • Portable and configurable via environment variables.

Installation

Prerequisites

Ensure you have the following installed:

  • Python 3.8+
  • Manim (Community Version)
  • MCP

Install Manim

pip install manim

Install MCP

pip install mcp

Clone the Repository

git clone https://github.com/abhiemj/manim-mcp-server.git
cd manim-mcp-server

Integration with Claude

To integrate the Manim MCP server with Claude, add the following to your claude_desktop_config.json file:

{
  "mcpServers": {
     "manim-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"
      }
    }
  }
}

Finding Your Python Path

To find your Python executable path, use the following command:

Windows (PowerShell):

(Get-Command python).Source

Windows (Command Prompt/Terminal):

where python

Linux/macOS (Terminal):

which python

This ensures that Claude can communicate with the Manim MCP server to generate animations dynamically.

Contributing

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b add-feature
  3. Make changes and commit:
    git commit -m "Added a new feature"
  4. Push to your fork:
    git push origin add-feature
  5. Open a pull request.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Author

Created by abhiemj. Contributions welcome! 🚀

Listed in Awesome MCP Servers

This repository is featured in the Awesome MCP Servers repository under the Animation & Video category. Check it out along with other great MCP server implementations!

Acknowledgments

  • Thanks to the Manim Community for their amazing animation library.
  • Inspired by the open-source MCP ecosystem.

Find me at

aiburner_official @aiburner_official

manim-mcp-server FAQ

How do I install the Manim MCP Server?
Install Python 3.8+, Manim community version, MCP, then clone the repository and follow setup instructions.
Can I configure output locations for generated animations?
Yes, the server saves animations in a visible media folder configurable via environment variables.
Does the server support cleaning up temporary files?
Yes, it provides functionality to clean up temporary files after animation execution.
Is the Manim MCP Server portable across environments?
Yes, it is designed to be portable and configurable for different deployment environments.
How do I integrate the Manim MCP Server with other MCP clients?
Integration details are provided, for example, with Claude via configuration files.
What versions of Python and Manim are required?
Python 3.8 or higher and the Manim Community Edition are required.
Can I use this server to generate animations in real-time workflows?
Yes, it enables real-time generation of animations from Manim scripts within MCP workflows.