cogvideox-drama-mcp
Enables LangChain agents to generate drama videos from scripts using Zhipu CogVideoX, with automatic shot breakdown and video URL retrieval.
Click on "Install 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., "@cogvideox-drama-mcp将剧本拆成3个分镜并生成视频:主角在雨中奔跑。"
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.
漫剧生成 MCP 工具
基于 MCP(模型上下文协议) 的漫剧视频生成工具。输入一段剧本,自动拆分成镜头,调用视频大模型逐个生成分镜视频片段,返回每个分镜的视频下载地址。
功能特性
🎬 剧本 → 自动分镜 → 逐镜生成视频(全自动流水线)
🤖 DeepSeek 智能分镜(未配置时自动降级为兜底拆分)
🎥 视频生成基于智谱 CogVideoX(
cogvideox-3)🔧 视频模型与分镜 LLM 均可自由替换(换 Key、换地址、换模型名即可,代码零改动)
⚡ 异步任务模式:提交 → 轮询 → 返回视频 URL
Related MCP server: video-studio-mcp
快速开始
1. 安装
pip install uv # 客户端需先装 uv(若已有可跳过)
pip install cogvideox-drama-mcp2. 配置环境变量
以下环境变量按「智谱 CogVideoX 视频生成 + DeepSeek 智能分镜」的默认方案配置。 本工具的视频模型与分镜模型均为可替换设计:替换对应的 API Key、Base URL 与模型名,即可切换到其他视频生成或 LLM 服务,代码无需改动。
变量 | 作用 | 当前示例 | 可替换为 |
| 视频模型鉴权 | 智谱 API Key | 其他服务商的 Key |
| 视频服务地址 |
| 对应服务商地址 |
| 视频模型名 |
| 其他模型名 |
| 分镜 LLM 鉴权 | DeepSeek Key | 任意 OpenAI 兼容 LLM |
| 分镜 LLM 地址 |
| 对应服务地址 |
3. 接入 MCP 客户端
以 Cherry Studio / Cline / Cursor 为例:
{
"mcpServers": {
"cogvideox-drama": {
"command": "uvx",
"args": ["cogvideox-drama-mcp"]
}
}
}工具说明
generate_drama(script, shot_count)
参数 | 类型 | 必填 | 说明 |
| string | 是 | 漫剧剧本(一段文字) |
| int | 否 | 拆分镜头数,默认 3 |
示例:
输入剧本:一名少女在雨夜捡到一只发光的小猫,从此能听见别人的心声。
返回:
{
"title": "心声之猫",
"shots": [
{"index": 1, "video_url": "https://.../shot1.mp4"},
{"index": 2, "video_url": "https://.../shot2.mp4"},
{"index": 3, "video_url": "https://.../shot3.mp4"}
]
}注意事项
单个分镜视频最长约 15 秒,更长的剧情需拆多个分镜
生成的视频 URL 有时效,请及时保存
视频生成耗时约 1-5 分钟(异步轮询),请耐心等待
API Key 为调用者私有配置,请勿提交到公共仓库
许可
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.1151MIT
- Flicense-qualityBmaintenanceMCP server enabling AI agents to generate AI videos and images, analyze video content, and download videos from Douyin and Xiaohongshu.
- AlicenseAqualityBmaintenanceMCP server for generating images and videos using Z.AI models (GLM-Image, CogView-4, CogVideoX-3, Vidu Q1, etc.) with support for synchronous and asynchronous generation, downloads, and multiple input modes.102MIT
- Flicense-qualityBmaintenanceMCP server for agent-driven video generation from SRT subtitles to Remotion videos, supporting TTS, async tasks, and web console.
Related MCP Connectors
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Wan AI video generation
MCP server for Kling AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/lcy-fe-dev/cogvideox-drama-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server