minimax-video
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@minimax-videogenerate a 6-second 768p 16:9 video of a kitten surfing a wave at sunset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
minimax-video-mcp
把 MiniMax Code 的视频生成能力接到第三方中转站上。
工具名、参数、调用流程与 MiniMax 内置的 matrix 视频连接器完全一致,
Agent(MiniMax Code / Claude Code / Cursor)侧的写法一个字都不用改。
你只需要做一件事:把 API Key 写进
api.txt。 别的什么都不用改、什么都不用配。
三步接入
1. 拿仓库
git clone https://github.com/FlapPearLabs/minimax-video-mcp.git
cd minimax-video-mcp2. 写 key
在中转站控制台「管理 API 密钥」创建一个 key,复制 api.txt.example 为 api.txt,
把 key 粘进第一行:
cp api.txt.example api.txt # Windows: copy api.txt.example api.txtsk-xxxxxxxxxxxxxxxx格式很宽松,下面这些都能认出来(# 开头是注释):
你可能写成这样 | 认不认 |
| ✅ 标准 |
| ✅ |
| ✅ 带引号 |
| ✅ 整行粘 |
| ✅ JSON |
文件里有多行 | ✅ 取第一个 |
末尾有空格 / 空行 / 换行符是 CRLF | ✅ 自动清理 |
文件开头有 BOM | ✅ 自动清理 |
3. 跑一条命令
python install.py它会:检查环境 → 装依赖 → 读 key → 验证 key 能不能用(只读,不花钱)→ 列出你能用的视频模型 → 跑完整测试 → 打印出 MCP 注册参数。
看到「准备就绪」就成了。
Related MCP server: vicsee-mcp-server
注册到 MiniMax Code
install.py 最后会打印一段 JSON。把它交给 Agent,Agent 调用 mavis 工具即可完成:
mcp create
name = minimax-video
transport = stdio
command = python
args = ["<仓库绝对路径>/server.py"]
description = 第三方中转站 MiniMax 视频生成
env不用传 ——server.py会自己去读同目录的api.txt。 想用环境变量的话,设VIDEO_API_KEY即可(优先级更高)。
注册完 mcp list 里能看到 minimax-video 就成了。
或者:直接把这段发给 Agent
仓库里的 接入提示词.md 是一段可以直接粘贴进 MiniMax Code 的提示词,
Agent 读完会自己完成克隆、读 key、注册、验证。你也可以直接说:
帮我把 https://github.com/FlapPearLabs/minimax-video-mcp.git 这个项目接进 MiniMax Code。 key 在 api.txt 里。
要把这个项目分享给别人? 看
给同学的说明.md—— 里面有可以直接群发的文案, 和一段转发给同学自己 AI 助手的提示词。
提供的工具
工具 | 作用 | 对应官方 |
| 提交异步任务 → 返回 |
|
| 轮询 → |
|
| 分页列任务 | — |
| 列站点上可用的视频模型 | — |
| 768P 成品升 2K | — |
| 删除已结束的任务记录 | — |
| 适配器配置概览 + key 来源 | — |
站点接口
项 | 值 |
Base URL |
|
鉴权 |
|
创建任务 |
|
查询任务 |
|
任务列表 |
|
删除任务 |
|
升 2K |
|
推荐模型 |
|
请求体与 MiniMax 官方 V2 逐字段同形(model / content[] / resolution / duration /
ratio / callback_url),所以成片效果和走官方一致。
平台规则(提交前本地拦截,不白烧额度)
resolution与duration必填文生视频必须给具体
ratio,且不能是adaptive图生视频
ratio恒按adaptive处理只传
last_frame会 400,必须与first_frame同传帧模式与参考模式互斥(
first_frame/last_frame不能与reference_*同传)POST /v2/h3_context_ir平台未接入,固定 400不支持
mm_file://;图片/音频可公网 URL 或data:内联;视频只收公网 URLfailed任务已自动退款,不要重复提交轮询 5~10 秒一次;768P 通常 1~4 分钟,1080P/2K/4K 更久
这些写在 provider.json 的 rules 段,server.py 会在发出请求之前拦下违规组合。
跑测试
python -m unittest discover -s tests -t . -v覆盖:key 解析的 30+ 种边界情况、content[] 组装、9 条平台规则、mock 端到端、 base_url 故障切换、真实 MCP stdio 协议握手、安装器行为、仓库完整性。
常见问题
现象 | 原因与处理 |
|
|
| key 抄错了,或用了 MiniMax 官方 key 而不是中转站的 key |
| 控制台给本机 IP 设了白名单,把本机公网 IP 加进去或清空白名单 |
| 余额不足,去控制台充值 |
| 网络/代理问题;也可改 |
|
|
Agent 说工具没出现 |
|
任务失败 | 已自动退款。看 |
虚拟环境(推荐,避免系统 Python 限制)
python -m venv .venv
.venv/Scripts/activate # Windows
source .venv/bin/activate # macOS / Linux
pip install -r requirements.txt
python install.py安全
api.txt已在.gitignore里,不要提交、不要贴进聊天密钥只走
api.txt或环境变量VIDEO_API_KEY,不进命令行参数中转站会留存你提交的 prompt 和素材。公开素材走中转站没问题;工作文档、商业机密建议仍走官方直连
许可
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
MCP server for Hailuo (MiniMax) AI video generation
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables interaction with MiniMax AI APIs for text-to-speech, voice cloning, video generation, image generation, and music creation through MCP clients like Claude Desktop and Cursor.9MIT

vicsee-mcp-serverofficial
AlicenseAqualityCmaintenanceEnables AI agents to generate, edit, and upscale videos and images using VicSee's API, with support for multiple models and asynchronous task polling.772 npmMIT- FlicenseAqualityDmaintenanceEnables MiniMax-H3 video+audio generation on a local ComfyUI via five simple tools, including image/reference-to-video, job polling/cancelling, and asset listing, with stateless prompt_id-based job handling.61-
- AlicenseAqualityCmaintenanceEnables video generation via MiniMax's official V2 API using your own API key, integrating with mcode for submitting and querying video tasks, with automatic mp4 downloads.2MIT