Short Video Maker MCP
Short Video Maker MCP
README
Short Video Maker
An open source automated video creation tool for generating short-form video content. Short Video Maker combines text-to-speech, automatic captions, background videos, and music to create engaging short videos from simple text inputs.
This repository was open-sourced by the AI Agents A-Z Youtube Channel. We encourage you to check out the channel for more AI-related content and tutorials.
Hardware requirements
- CPU: at least 2 cores are recommended
- GPU: optional, makes the caption generation a lot faster (whisper.cpp) and the video rendering somewhat faster
Watch the official video on how to generate videos with n8n
Running the Project
Using NPX (recommended)
The easiest way to run the project with GPU support out of the box:
LOG_LEVEL=debug PEXELS_API_KEY= npx short-video-maker
Using Docker
CPU image
docker run -it --rm --name short-video-maker -p 3123:3123 \
-e PEXELS_API_KEY= \
gyoridavid/short-video-maker:latest
NVIDIA GPUs
docker run -it --rm --name shorts-video-maker -p 3123:3123 \
-e PEXELS_API_KEY= --gpus=all \
gyoridavid/short-video-maker:latest-cuda
Find help
Join our Discord community for support and discussions.
Environment Variables
| Variable | Description |
|---|---|
| PEXELS_API_KEY | Your Pexels API key for background video sourcing |
| PORT | Port for the API/MCP server (default: 3123) |
| LOG_LEVEL | Log level for the server (default: info, options: trace, debug, info, warn, error) |
| WHISPER_VERBOSE | Verbose mode for Whisper (default: false) |
Example
<table> <tr> <td> <video src="https://github.com/user-attachments/assets/bb7ce80f-e6e1-44e5-ba4e-9b13d917f55b" width="270" height="480"></video> </td> <td>
{
"scenes": [
{
"text": "Hello world! Enjoy using this tool to create awesome AI workflows",
"searchTerms": ["rainbow"]
}
],
"config": {
"paddingBack": 1500,
"music": "happy"
}
}
</td> </tr> </table>
Features
- Generate complete short videos from text prompts
- Text-to-speech conversion
- Automatic caption generation and styling
- Background video search and selection via Pexels
- Background music with genre/mood selection
- Serve as both REST API and Model Context Protocol (MCP) server
How It Works
Shorts Creator takes simple text inputs and search terms, then:
- Converts text to speech using Kokoro TTS
- Generates accurate captions via Whisper
- Finds relevant background videos from Pexels
- Composes all elements with Remotion
- Renders a professional-looking short video with perfectly timed captions
Dependencies for the video generation
| Dependency | Version | License | Purpose |
|---|---|---|---|
| Remotion | ^4.0.286 | Remotion License | Video composition and rendering |
| Whisper CPP | v1.5.5 | MIT | Speech-to-text for captions |
| FFmpeg | ^2.1.3 | LGPL/GPL | Audio/video manipulation |
| Kokoro.js | ^1.2.0 | MIT | Text-to-speech generation |
| Pexels API | N/A | Pexels Terms | Background videos |
How to contribute?
PRs are welcome. See the CONTRIBUTING.md file for instructions on setting up a local development environment.
API Usage
REST API
The following REST endpoints are available:
GET /api/short-video/:id- Get a video by ID and also can be downloaded like this :
curl -o output.mp4 http://localhost:3123/api/short-video/<videoId>
POST /api/short-video- Create a new video{ "scenes": [ { "text": "This is the text to be spoken in the video", "searchTerms": ["nature sunset"] } ], "config": { "paddingBack": 3000, "music": "chill" } }DELETE /api/short-video/:id- Delete a video by IDGET /api/music-tags- Get available music tags
Model Context Protocol (MCP)
The service also implements the Model Context Protocol:
GET /mcp/sse- Server-sent events for MCPPOST /mcp/messages- Send messages to MCP server
Available MCP tools:
create-short-video- Create a video from a list of scenesget-video-status- Check video creation status
License
This project is licensed under the MIT License.
Acknowledgments
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
