File size: 3,179 Bytes
d72395d
2907fc1
fea02f0
 
 
d72395d
c73e7b4
d72395d
91b9aed
0aa7758
 
 
 
 
 
 
 
 
 
 
 
 
d72395d
 
0aa7758
 
 
 
 
 
 
 
1a74860
 
 
0aa7758
 
b63edd4
0aa7758
 
 
 
 
 
21be3f3
fe2b013
0aa7758
 
 
 
 
 
 
 
0d0dc20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0aa7758
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
title: Anim Lab AI
emoji: πŸ”₯
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.50.0
app_file: app.py
pinned: true
tags:
- building-mcp-track-creative
- building-mcp-track-consumer
- mcp
- gradio
- claude
- education
- mathematics
- algorithm
- ai
- visualization
- education
short_description: Turn boring math into engaging animation videos
---

# 🎬 Anim Lab AI (MCP)

**Equip AI Agents with the power to visualize complex logic using Manim.**

[![MCP's 1st Birthday Hackathon](https://img.shields.io/badge/MCP%27s%201st%20Birthday-Hackathon-blue)](https://github.com/modelcontextprotocol)
[![Track 1: Building MCP](https://img.shields.io/badge/Track%201-Building%20MCP%20(Creative)-blueviolet)](https://huggingface.co/MCP-1st-Birthday)
[![Powered by Claude 3.7](https://img.shields.io/badge/Powered%20by-Claude%204.5%20Sonnet-orange)](https://anthropic.com)

[![Demo Video](https://img.shields.io/badge/β–Ά_Watch_Demo-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/watch?v=IFqazttMO_Y)
[![Try It Live](https://img.shields.io/badge/πŸš€_Try_It_Live-7C3AED?style=for-the-badge)](https://huggingface.co/spaces/MCP-1st-Birthday/anim-lab-ai)

## πŸ“– Overview

This is an **MCP Server** built with Gradio that allows AI agents to generate, execute, and render **Manim (Mathematical Animation Engine)** videos on the fly. 

While LLMs are great at text, they struggle to visualize dynamic concepts. This tool bridges that gap by allowing an agent to write Python/Manim code and immediately receive a rendered video file.

### Key Features
* **Text-to-Video:** Describe a math concept (e.g., "Explain Bubble Sort"), and the AI writes the code and renders the video.
* **AI Code Editor:** Refine animations using natural language instructions (e.g., "Move the circle to the left").
* **MCP Compliant:** Fully functional as a backend tool for Claude Desktop or other MCP clients. 
* **Powered by Anthropic Claude:** Uses `anthropic/claude-4.5-sonnet` for high-precision code generation. 

## πŸš€ Quick Start

### 1. Using the Web UI
1.  Type a prompt in the "Describe your animation" box.
2.  Click **Generate & Render**.
3.  Watch your code turn into a video!

### 2. Connect via MCP (Streamable HTTP)
To add this MCP to clients that support Streamable HTTP, add the following configuration to your MCP config:

```json
{
  "mcpServers": {
    "gradio": {
      "url": "https://mcp-1st-birthday-anim-lab-ai.hf.space/gradio_api/mcp/"
    }
  }
}
```
## βš™οΈ Tech Stack
* **Frontend/Server:** Gradio (MCP Mode)
* **Animation Engine:** Manim Community (v0.19)
* **LLM Inference:** Fal AI (Claude 4.5 Sonnet)


### Live Demo & Demo Video

- **Live Demo**: [Anim Lab AI - Huggingface](https://huggingface.co/spaces/MCP-1st-Birthday/anim-lab-ai)
- **Demo Video**: [Youtube](https://youtu.be/IFqazttMO_Y)

### Social Media Post

- **Huggingface Post**: [Introducing Anim Lab AI - HF](https://huggingface.co/posts/ovi054/498416611324104)
- **Twitter/X**: [Introducing Anim Lab AI - X](https://x.com/1Views66845/status/1995108296873898419)


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference