ma

manim-mcp-server

A local MCP server that generates animations using Manim.

#Manim# MCP server# animation
Publishermanim-mcp-server
Submitted date4/13/2025

Unleashing Dynamic Visualizations: A Deep Dive into the Manim MCP Server

Manim MCP Demo

Executive Summary

The Manim MCP Server bridges the gap between Large Language Models (LLMs) and dynamic mathematical visualizations. By leveraging the Model Context Protocol (MCP), this server empowers LLMs to seamlessly generate and execute Manim animation code, delivering rich, interactive visual content. This document provides a comprehensive guide to the server's features, installation, integration, and contribution guidelines.

Core Functionalities

  • Manim Script Execution: Accepts and executes Manim Python scripts, transforming code into visually engaging animations.
  • Persistent Media Output: Saves generated animations in a designated media folder, ensuring accessibility and reusability.
  • Resource Management: Offers options for cleaning up temporary files post-execution, optimizing storage and system performance.
  • Cross-Platform Compatibility: Designed for portability and configurability through environment variables, facilitating deployment across diverse environments.

Technical Specifications

Prerequisites

  • Python: Version 3.8 or higher is required for optimal performance and compatibility.
  • Manim (Community Edition): The core animation engine.
  • MCP Library: Enables seamless communication with LLMs.

Installation Procedure

  1. Install Manim:

    pip install manim
  2. Install MCP:

    pip install mcp
  3. Clone the Repository:

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

Integration Strategy with Claude

To enable Claude's access to the Manim MCP server, incorporate the following configuration into 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" } } } }

Determining the Python Executable Path

The correct Python executable path is crucial for seamless integration. Use the following commands based on your operating system:

Windows (PowerShell):

(Get-Command python).Source

Windows (Command Prompt/Terminal):

where python

Linux/macOS (Terminal):

which python

Contribution Guidelines

  1. Fork the Repository: Create a personal copy of the project.

  2. Create a New Branch:

    git checkout -b feature/new-feature
  3. Implement Changes and Commit:

    git commit -m "feat: Add new feature"
  4. Push to Your Fork:

    git push origin feature/new-feature
  5. Submit a Pull Request: Propose your changes for review and integration.

Community Recognition

Featured in Awesome MCP Servers

This repository is proudly listed in the Awesome MCP Servers repository under the Animation & Video category.

Acknowledgments

  • The Manim Community for their exceptional animation library.
  • The open-source MCP ecosystem for inspiring this integration.

Visit More

View All