Skip to main content
Glama

Manim MCP 服务器

Manim MCP 演示

概述

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

Related MCP server: MCP Prompts Server

特征

  • 执行 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhiemj/manim-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server