ai-video-mcp
Allows searching and retrieving stock videos from Pexels for each chapter of the video script.
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., "@ai-video-mcpGenerate a video from script.txt"
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.
๐ฌ AI Video MCP Server
Turn text scripts into complete videos with stock footage, AI narration, and subtitles. Standard MCP tool โ works with Claude, OpenClaw, Cursor, and any MCP-compatible AI assistant.
โจ Features
๐ Script-driven โ Just provide text, auto-split into chapters
๐ฅ Smart footage โ Auto-matches stock videos from Pexels per chapter
๐ฃ๏ธ TTS narration โ Minimax voice synthesis, 6 voice options
๐บ Auto subtitles โ Generates SRT subtitles from narration
๐ฌ One-click compose โ ffmpeg auto-merges into final video
๐ MCP standard โ Compatible with all MCP-enabled AI assistants
Related MCP server: ittybitty MCP server
๐ Quick Start
1. Install
pip install ai-video-mcpOr from source:
git clone https://github.com/yqyqstart-crypto/ai-video-mcp.git
cd ai-video-mcp
pip install -e .2. Set API Keys
export MINIMAX_API_KEY="your-minimax-key"
export PEXELS_API_KEY="your-pexels-key"Key | Get it from | Purpose |
MINIMAX_API_KEY | TTS voice synthesis | |
PEXELS_API_KEY | Stock video search |
3. Use
Command Line
ai-video-mcpMCP Config (Claude Desktop / OpenClaw / Cursor)
{
"mcpServers": {
"ai-video": {
"command": "ai-video-mcp",
"env": {
"MINIMAX_API_KEY": "your-key",
"PEXELS_API_KEY": "your-key"
}
}
}
}Once configured, just tell the AI:
"Generate a video from this script: /path/to/script.txt"
The AI will call the generate_video tool automatically.
๐ Tools
generate_video
Generate a complete video from a text script.
Parameters:
Param | Type | Default | Description |
| string | required | Path to script file |
| string |
| Output directory |
| string |
| TTS voice ID |
| float |
| Speech speed (0.5-2.0) |
| string |
| Output resolution |
| int |
| Pexels clip duration per chapter (sec) |
Returns:
{
"success": true,
"final_video": "out/final_video.mp4",
"chapters": 3,
"details": [
{
"chapter": 0,
"title": "Chapter 1",
"query": "search keywords",
"video": "out/chapter_00/chapter.mp4",
"tts": true
}
]
}list_voices
List available TTS voice IDs.
list_styles
List available video styles (planned).
๐ Script Format
Plain text (.txt) โ Split with ---
Artificial intelligence is changing our lives. From smartphones to self-driving cars, AI is everywhere.
---
In healthcare, AI helps doctors diagnose diseases more accurately.
---
In the future, AI will continue to drive social progress.Markdown (.md) โ Split with ##
## The Rise of AI
Artificial intelligence is changing our lives...
## Healthcare Revolution
In healthcare, AI helps doctors...
## Future Outlook
In the future, AI will continue...๐๏ธ Available Voices
ID | Name | Gender |
| Youth | Male |
| Girl | Female |
| Elite Male | Male |
| Elegant Lady | Female |
| Male Host | Male |
| Female Host | Female |
๐ Output Structure
out/
โโโ final_video.mp4 # โ Final complete video
โโโ concat.txt # ffmpeg merge list
โโโ chapter_00/
โ โโโ source.mp4 # Pexels raw footage
โ โโโ audio.mp3 # TTS narration audio
โ โโโ audio.srt # Subtitle file
โ โโโ chapter.mp4 # Composed chapter video
โโโ chapter_01/
โ โโโ ...
โโโ chapter_02/
โโโ ...๐๏ธ Workflow
โโโโโโโโโโโโโโโ
โ Text Script โ
โ .txt / .md โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โParse Chaptersโ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโผโโโโโโโ โโโโผโโโโโ โโโโโโโผโโโโโโ
โ Pexels Searchโ โ TTS โ โ Subtitles โ
โ Stock Videos โ โ Voice โ โ SRT โ
โโโโโโโโฌโโโโโโโ โโโโฌโโโโโ โโโโโโโฌโโโโโโ
โ โ โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โffmpeg Composeโ
โVideo+Audio+Subโ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ final.mp4 โ
โโโโโโโโโโโโโโโ๐ง Requirements
Python 3.8+
ffmpeg (system install)
requests
fastmcp
๐ก Why MCP?
MCP (Model Context Protocol) lets AI assistants call external tools directly. With this MCP Server installed:
โ Claude Desktop can generate videos
โ OpenClaw can generate videos
โ Cursor can generate videos
โ Any MCP-enabled AI assistant works
No coding needed. No command line. Just tell the AI.
๐ License
MIT
๐ค Contributing
PRs welcome! Especially:
More TTS engines (Edge TTS, Azure TTS)
More video sources (Pixabay, Coverr)
AI image generation (DALL-E, Stable Diffusion)
Custom subtitle styles
Background music mixing
โญ Star this repo
If you find this useful, give it a โญ to help others discover it!
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
AlicenseAqualityBmaintenanceCreate AI-powered videos from any MCP-compatible client. Generate videos with AI narration, visuals, and synced captions for short-form and long-form content.Last updated22944MIT- Alicense-qualityAmaintenanceEnables AI agents to generate narrated videos from topics or scripts, with stock footage, home videos, or local AI clips.Last updated2MIT
- Alicense-qualityDmaintenanceOne-stop automated video generation MCP service integrating digital human cloning, voice cloning, video/audio creation, and web content aggregation for LLMs.Last updated1MIT
- Alicense-qualityCmaintenanceEnables AI agents to edit video assemblies from A-roll and B-roll, add captions, and publish to social media platforms.Last updated18MIT
Related MCP Connectors
Produce complete AI videos from a brief with Maestro
Turn long videos into AI-curated short clips: caption, reframe, thumbnail, schedule, and publish.
Multimodal video analysis MCP โ transcription, vision, and OCR for any video URL.
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/yqyqstart-crypto/ai-video-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server