manim-mcp-server

manim-mcp-server

This is a complex request! Generating animations like 3Blue1Brown with a single prompt is currently impossible with existing AI tools. 3Blue1Brown animations are meticulously crafted using a combination of programming (primarily Python with libraries like Manim), mathematical understanding, and artistic design. A single prompt simply cannot encapsulate the necessary detail and control. However, I can give you a *starting point* prompt that might generate *something* vaguely reminiscent, and then explain why it's unlikely to be successful and what you'd need to do to get closer to the desired result. **Prompt (for an image generation AI like DALL-E 3, Midjourney, or Stable Diffusion):** `"A dynamic, colorful animation frame showing a vector transforming a grid, inspired by 3Blue1Brown's style. Use a vibrant color palette, clean lines, and a focus on mathematical visualization. Include subtle motion blur to suggest movement. Emphasis on clarity and understanding."` **Why this will likely fall short:** * **Lack of Mathematical Understanding:** Image generation AIs don't "understand" the underlying mathematics. They can mimic visual styles, but they won't accurately represent mathematical concepts like linear transformations, eigenvalues, or calculus. The grid might be distorted, but not in a mathematically meaningful way. * **No True Animation:** This prompt will only generate a single image, not an animation. Creating an animation requires generating a sequence of images with controlled changes over time. * **Inability to Control Precision:** 3Blue1Brown animations are precise. Every line, every movement, is carefully calculated. Image generation AIs are inherently stochastic (random) and lack this level of control. * **No Narrative or Explanation:** 3Blue1Brown videos are more than just visuals; they tell a story and explain complex concepts. A single image can't convey that. * **Style Mimicry Only:** The AI will try to mimic the visual style (color palette, clean lines), but it won't understand the *purpose* of that style, which is to enhance understanding. **What you *would* need to do to get closer to a 3Blue1Brown-style animation:** 1. **Learn Manim (or a similar animation library):** This is the most important step. Manim is specifically designed for creating mathematical animations. It allows you to define objects, transformations, and animations with precise mathematical control. 2. **Break Down the Animation into Steps:** Plan the animation carefully. What concepts are you trying to illustrate? What sequence of transformations will best convey those concepts? 3. **Write Code:** Use Manim to write code that creates each frame of the animation. This will involve defining mathematical objects (vectors, matrices, graphs), specifying transformations (rotations, scaling, shearing), and controlling the timing and easing of the animations. 4. **Render the Animation:** Manim will render the code into a sequence of images, which you can then combine into a video. 5. **Add Narration and Music:** Finally, add narration and music to explain the concepts and enhance the viewing experience. **In summary:** While AI image generation can create visually appealing images inspired by 3Blue1Brown, it cannot replicate the mathematical accuracy, precision, and explanatory power of a true 3Blue1Brown animation. You'll need to learn programming and mathematical animation techniques to achieve that level of quality. **Translation of the prompt to Chinese:** `"生成一个动态的、色彩鲜艳的动画帧,展示一个向量变换一个网格,灵感来自 3Blue1Brown 的风格。 使用充满活力的调色板、干净的线条,并专注于数学可视化。 包括微妙的运动模糊来暗示运动。 强调清晰度和理解力。"` (Pinyin: `"Shēngchéng yīgè dòngtài de, sècǎi xiānyàn de dònghuà zhēn, zhǎnshì yīgè xiàngliàng biànhuàn yīgè wǎnggé, línggǎn láizì 3Blue1Brown de fēnggé. Shǐyòng chōngmǎn huólì de tiáosèbǎn, gānjìng de xiàntiáo, bìng zhuānzhù yú shùxué kěshìhuà. Bāokuò wēimiào de yùndòng móhú lái ànshì yùndòng. Qiángdiào qīngxīdù hé lǐjiě lì."`)

Category
访问服务器

README

Manim MCP 服务器

Manim MCP 演示

概述

这是一个 MCP (模型上下文协议) 服务器,用于执行 Manim 动画代码并返回生成的视频。它允许用户发送 Manim 脚本并接收渲染后的动画。

特性

  • 执行 Manim Python 脚本。
  • 将动画输出保存在可见的媒体文件夹中。
  • 允许用户在执行后清理临时文件。
  • 可移植且可通过环境变量配置。

安装

前提条件

确保您已安装以下内容:

  • Python 3.8+
  • Manim (社区版)
  • MCP

安装 Manim

pip install manim

安装 MCP

pip install mcp

克隆仓库

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

与 Claude 集成

要将 Manim MCP 服务器与 Claude 集成,请将以下内容添加到您的 claude_desktop_config.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"
      }
    }
  }
}

查找您的 Python 路径

要查找您的 Python 可执行文件路径,请使用以下命令:

Windows (PowerShell):

(Get-Command python).Source

Windows (命令提示符/终端):

where python

Linux/macOS (终端):

which python

这确保了 Claude 可以与 Manim MCP 服务器通信以动态生成动画。

贡献

  1. Fork 仓库。
  2. 创建一个新分支:
    git checkout -b add-feature
    
  3. 进行更改并提交:
    git commit -m "Added a new feature"
    
  4. 推送到您的 fork:
    git push origin add-feature
    
  5. 打开一个 pull request。

许可证

此 MCP 服务器在 MIT 许可证下获得许可。 这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。 有关更多详细信息,请参阅项目存储库中的 LICENSE 文件。

作者

abhiemj 创建。 欢迎贡献! 🚀

列于 Awesome MCP Servers

此存储库已在 动画 & 视频 类别下的 Awesome MCP Servers 存储库中列出。 与其他出色的 MCP 服务器实现一起查看!

致谢

  • 感谢 Manim Community 提供的精彩动画库。
  • 受益于开源 MCP 生态系统的启发。

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选