MCP Directory

How to add Manim MCP Server to Claude Desktop

Run Manim animation code from your MCP client and get back rendered videos. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.

Last updated June 14, 2026 ยท 600โ˜… ยท stdio ยท no auth

Claude Desktop config for Manim MCP Server

git clone https://github.com/abhiemj/manim-mcp-server.git
{
  "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"
      }
    }
  }
}

Setup steps

  1. 1Open Claude Desktop โ†’ Settings โ†’ Developer โ†’ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
  2. 2Paste the Manim MCP Server config below under the top-level "mcpServers" key.
  3. 3Fill in any placeholder secrets (API keys, paths) in the snippet.
  4. 4Save the file, then fully quit and reopen Claude Desktop.
  5. 5Open a chat and confirm Manim MCP Server's tools appear under the ๐Ÿ”Œ tools menu.

Before you start

  • Python 3.8+
  • Manim (Community Version) installed (pip install manim)
  • MCP installed (pip install mcp)

What Manim MCP Server can do in Claude Desktop

execute_manim_code

Execute 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_dir

Clean up the specified Manim temporary directory after execution by removing it and its contents.

Security

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 + Claude Desktop FAQ

Where is the Claude Desktop config file?

Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the Manim MCP Server config there under the "mcpServers" key and restart the client.

Is Manim MCP Server safe to use with Claude Desktop?

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.

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.

View repo Full Manim MCP Server page