PM

paulnegz/manim-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

22 stars 7 forks 品質 60 トレンド 0MIT

マニムによるテキストビデオアニメーション。 テキスト→コード→ビデオ。 CLI、エージェントモード、MCPサーバー

概要

Manimgl(3Blue1Brown's Library)とマルチエージェントLLMパイプラインを搭載したText-to-videoアニメーション。 見たいものを記述し、レンダリングされたアニメーションを戻します。 Claude のような AI アシスタントと統合するための , または . - - - 高品質コード生成のための5,300 +インデックス文書を使用する: - 3,140 3Blue1 ブラウンシーン例 - 1,652 manimgl API のシグネチャ - 101 アニメーション パターン テンプレート (Riemann sums、transforms、物理など) - 470 ライブラリ ドキュメンテーション ファイル - 一般的な間違いのための 16+ エラー パターン - - プローブを使用してオプションの AST-aware semantic コード検索: - Tree-sitter ベースのコード 解析 (Python 構造を理解する) - より良いキーワードマッチングのためのハイブリッド BM25 + TF-IDF ランキング - 完全なコード 抽出 (連続したテキスト ) - アニメーション エラー パターン - Google アニメーション エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー エラー .

概要(AI 翻訳)

Manimgl(3Blue1Brown’s Library)とマルチエージェントLLMパイプラインを搭載したText-to-videoアニメーション。 見たいものを記述し、レンダリングされたアニメーションを戻します。

Claude などの AI アシスタントと連携するために、CLI ツール、LLM 搭載エージェント、MCP サーバー として動作します。

例

| サークルからスクエアトランスフォーメーションまで | 3D 回転キューブ | |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | [manim-mcp gen "Transform a blue circle into a red square" | [manim-mcp gen "A 3D cube rotating. Use ThreeDScene." |[manim-mcp gen "A 3D cube rotating. Use ThreeDScene." |[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."] |[[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]] |[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]] |[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]]] |[[[[[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]]]] [[[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]]]]]] [[[[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]]]]]]] [[[[manim-mcp gen "A 3D cube rotating. Use ThreeDScene."]]]]]] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

YouTubeで20以上のアニメーションを見る

##特徴

-RAGのコード生成 - 高品質コード生成のための5,300 +インデックス文書を使用する:

  • 3,140 3Blue1 ブラウンシーン例
  • 1,652 の manimgl API のシグネチャを正確にパラメータで署名
  • 101個のアニメーションパターンテンプレート(Riemannの合計、変換、物理など)
  • 470ライブラリのドキュメントファイル
  • 一般的な間違いのための16 +エラーパターン
  • プローブインテグレーション - プローブを使用してオプションのAST-awareセマンティックコード検索:
  • Tree-sitter ベースのコード解析 (Python 構造の理解)
  • ハイブリッドBM25 + TF-IDFランキングで、より優れたキーワードマッチングを実現
  • 完全なコードブロック抽出(truncationなし)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

manim-mcp

Text-to-video animation powered by manimgl (3Blue1Brown’s library) and a multi-agent LLM pipeline. Describe what you want to see, and get a rendered animation back.

Works as a CLI tool, an LLM-powered agent, or an MCP server for integration with AI assistants like Claude.

Examples

Circle to Square Transform 3D Rotating Cube
manim-mcp gen "Transform a blue circle into a red square" manim-mcp gen "A 3D cube rotating. Use ThreeDScene."

Watch 20+ example animations on YouTube

Features

  • RAG-powered code generation - Uses 5,300+ indexed documents for high-quality code generation:
    • 3,140 3Blue1Brown scene examples
    • 1,652 manimgl API signatures with exact parameters
    • 101 animation pattern templates (Riemann sums, transforms, physics, etc.)
    • 470 library documentation files
    • 16+ error patterns for common mistakes
  • Probe integration - Optional AST-aware semantic code search using Probe:
    • Tree-sitter based code parsing (understands Python structure)
    • Hybrid BM25 + TF-IDF ranking for better keyword matching
    • Complete code block extraction (no truncation)
  • Multi-animation videos - Each video uses 2+ animation patterns for professional quality
  • Multi-agent pipeline - Concept analysis, scene planning, code generation, and code review
  • Self-learning - Stores error patterns and fixes for continuous improvement
  • Multi-provider LLM - Supports Google Gemini, Anthropic Claude, and DeepSeek
  • Audio narration - Parallel audio generation with automatic sync:
    • Video code generated first (no narration constraint)
    • TTS runs in parallel with video rendering
    • Audio automatically paced to match video duration
  • Parameter validation - API signatures prevent invalid method calls

Quick Start

pip install -e ".[rag]"

Prerequisites

  • Python 3.11+
  • manimgl installed: pip install manimgl
  • A Google Gemini API key set as MANIM_MCP_GEMINI_API_KEY
  • Optional: ChromaDB (for RAG), ffmpeg (for audio mixing), LaTeX (for math text), S3/MinIO (for cloud storage)
  • Optional: Probe for AST-aware code search (install via cargo install probe-search)

Environment Variables

Copy .env.example to .env and fill in your values:

# LLM Provider
MANIM_MCP_GEMINI_API_KEY=your-gemini-api-key
MANIM_MCP_GEMINI_MODEL=gemini-3-flash-preview  # default

# Alternative: Claude
# MANIM_MCP_LLM_PROVIDER=claude
# MANIM_MCP_CLAUDE_API_KEY=your-claude-api-key
# MANIM_MCP_CLAUDE_MODEL=claude-sonnet-4-20250514

# Alternative: DeepSeek
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →