manim-mcp-server

by abhiemj
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Hosts the repository and enables collaboration through forking, branching, and pull requests for contributing to the MCP server.

  • Executes Manim Python scripts to generate mathematical animations, allowing for dynamic creation and rendering of visual content.

Manim MCP 服务器

概述

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

特征

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

安装

先决条件

确保已安装以下软件:

  • Python 3.8+
  • Manim(社区版)
  • 微胶囊钙

安装 Manim

pip install manim

安装 MCP

pip install mcp

克隆存储库

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

与克劳德的整合

要将 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. 分叉存储库。
  2. 创建新分支:
    git checkout -b add-feature
  3. 进行更改并提交:
    git commit -m "Added a new feature"
  4. 推送到你的 fork:
    git push origin add-feature
  5. 打开拉取请求。

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

作者

**abhiemj**创建。欢迎贡献!🚀

列入 Awesome MCP 服务器

此仓库位于“Awesome MCP Servers”仓库的**“动画与视频”**类别下。您可以查看它以及其他优秀的 MCP 服务器实现!

致谢

  • 感谢Manim 社区提供的出色的动画库。
  • 受到开源 MCP 生态系统的启发。
-
security - not tested
A
license - permissive license
-
quality - not tested

使用单个提示生成类似 3blue1brown 的动画。

  1. Overview
    1. Features
      1. Installation
        1. Prerequisites
        2. Install Manim
        3. Install MCP
        4. Clone the Repository
      2. Integration with Claude
        1. Finding Your Python Path
      3. Contributing
        1. License
          1. Author
            1. Listed in Awesome MCP Servers
          2. Acknowledgments
            ID: zujdaij12j