manim-mcp-server

manim-mcp-server

MCP server for generating Manim animations on demand.

454
Stars
48
Forks
454
Watchers
4
Issues
Manim MCP Server allows users to execute Manim Python scripts via a standardized protocol, generating animation videos that are returned as output. It integrates with systems like Claude to dynamically render animation content from user scripts and supports configurable deployment using environment variables. The server handles management of output files and cleanup of temporary resources, designed with portability and ease of integration in mind.

Key Features

Executes Manim Python animation scripts remotely
Returns rendered animation videos as output
Supports cleanup of temporary files after execution
Allows configuration via environment variables
Portable architecture compatible with various environments
Seamless integration with Claude for dynamic rendering
Handles visible media output management
Can be launched as a standalone server for script execution
Supports automated animation workflows
Built with extendibility for future protocol updates

Use Cases

Automated generation of educational or explanatory videos from code snippets
Integration with AI assistants like Claude to render custom animations for users
Batch rendering of scripted animations for content creators
Providing animation services to web or desktop applications via standardized protocol
Facilitating remote execution of Manim animations in CI/CD pipelines
Enabling collaborative animation creation workflows with shared server backend
Prototyping and development of interactive visualizations on demand
Supporting teachers and educators with dynamic video content generation
Offering animation-as-a-service for online learning platforms
Remote execution and preview of Manim scripts without local setup

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

sh
pip install manim

Install MCP

sh
pip install mcp

Clone the Repository

sh
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:

json
{
  "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):

sh
(Get-Command python).Source

Windows (Command Prompt/Terminal):

sh
where python

Linux/macOS (Terminal):

sh
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:
    sh
    git checkout -b add-feature
    
  3. Make changes and commit:
    sh
    git commit -m "Added a new feature"
    
  4. Push to your fork:
    sh
    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

Star History

Star History Chart

Repository Owner

abhiemj
abhiemj

User

Repository Details

Language Python
Default Branch main
Size 358 KB
Contributors 1
License MIT License
MCP Verified Sep 2, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • OpenAI MCP Server

    OpenAI MCP Server

    Bridge between Claude and OpenAI models using the MCP protocol.

    OpenAI MCP Server enables direct querying of OpenAI language models from Claude via the Model Context Protocol (MCP). It provides a configurable Python server that exposes OpenAI APIs as MCP endpoints. The server is designed for seamless integration, requiring simple configuration updates and environment variable setup. Automated testing is supported to verify connectivity and response from the OpenAI API.

    • 77
    • MCP
    • pierrebrunelle/mcp-server-openai
  • Creatify MCP Server

    Creatify MCP Server

    MCP server bringing Creatify AI's advanced video generation to every AI assistant.

    Creatify MCP Server is a comprehensive Model Context Protocol (MCP) server that integrates Creatify AI's video generation platform with AI assistants, chatbots, and automation tools. It provides advanced capabilities such as natural language video creation prompts, progress tracking, structured logging, and reusable workflows through a standardized MCP interface. Built with TypeScript and leveraging the Creatify API, it exposes a wide range of powerful video generation and editing actions that can be controlled programmatically.

    • 14
    • MCP
    • TSavo/creatify-mcp
  • Fal.ai MCP Server

    Fal.ai MCP Server

    MCP server for multimodal media generation using Fal.ai models.

    Fal.ai MCP Server is a Model Context Protocol (MCP) compliant server that enables clients like Claude Desktop and others to generate images, videos, music, audio, and transcriptions using Fal.ai models. It offers native asynchronous operation and supports both STDIO and HTTP/SSE transports for flexible integration. The server provides high-performance media generation, including upscaling, text-to-speech, audio transcription, and image-to-image transformations, all powered by Fal.ai's API. Easy deployment options are available via Docker, PyPI, or from source.

    • 9
    • MCP
    • raveenb/fal-mcp-server
  • piapi-mcp-server

    piapi-mcp-server

    TypeScript-based MCP server for PiAPI media content generation

    piapi-mcp-server is a TypeScript implementation of a Model Context Protocol (MCP) server that connects with PiAPI to enable media generation workflows from MCP-compatible applications. It handles image, video, music, TTS, 3D, and voice generation tasks using a wide range of supported models like Midjourney, Flux, Kling, LumaLabs, Udio, and more. Designed for easy integration with clients such as Claude Desktop, it includes an interactive MCP Inspector for development, testing, and debugging.

    • 62
    • MCP
    • apinetwork/piapi-mcp-server
  • video-editing-mcp

    video-editing-mcp

    MCP server for uploading, editing, searching, and generating videos via Video Jungle and LLMs.

    Implements a Model Context Protocol (MCP) server for seamless video uploading, editing, searching, and generative editing workflows, powered by Video Jungle integration and LLM assistance. Provides a suite of tools for video asset management, automated video editing, and context-aware search leveraging multimedia analysis. Supports both cloud workflows through Video Jungle and local searching capabilities, such as accessing the Photos app database on MacOS. Designed for integration with clients like Claude Desktop and supports automation, debugging, and development through open protocols.

    • 207
    • MCP
    • burningion/video-editing-mcp
  • mcpmcp-server

    mcpmcp-server

    Seamlessly discover, set up, and integrate MCP servers with AI clients.

    mcpmcp-server enables users to discover, configure, and connect MCP servers with preferred clients, optimizing AI integration into daily workflows. It supports streamlined setup via JSON configuration, ensuring compatibility with various platforms such as Claude Desktop on macOS. The project simplifies the connection process between AI clients and remote Model Context Protocol servers. Users are directed to an associated homepage for further platform-specific guidance.

    • 17
    • MCP
    • glenngillen/mcpmcp-server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results