remotion-mcp-server
Enables AI agents to analyze audio beats, synthesize voices with Google Gemini TTS, and programmatically construct and render professional videos using Remotion and React.
README
Remotion Video Production MCP Server
A world-class Model Context Protocol (MCP) server that acts as an intelligent bridge for AI agents to analyze audio beats, synthesize voices with Google Gemini TTS, and programmatically construct and render professional videos using Remotion (v4.0+) and React.
๐ Key Features
- ๐ฌ Programmatic Scaffolding: Create zero-config React/Remotion video projects with built-in aspect ratios: TikTok/Reels (
tiktok-916), YouTube (youtube-169), and Social (social-11). - ๐๏ธ Gemini 3.1 Flash TTS integration: Generate high-fidelity voiced scene dialogues with regional accents, and produce word-level timecodes for kinetic subtitles.
- ๐ต Librosa Audio Beat Sync: Analyze background music to extract BPM, beat boundaries, RMS energy drops/rises, and recommend frame-accurate scene cuts.
- ๐ธ Visual Preview Snapshots: Instantly render frame snapshots (PNG/JPEG/WebP) at any frame index for AI visual verification.
- โก Headless Rendering: Programmatically compile high-quality MP4/WebM videos with multi-core concurrency control and progress tracking.
๐ ๏ธ Prerequisites
To run this MCP server and render videos, the host environment requires:
- Node.js (v18.0.0 or higher) and npm.
- Python 3 (v3.10+ recommended) with the following packages installed:
pip install librosa numpy scipy google-genai - Remotion Browser Dependencies: Launching Chrome headless requires Chromium. Install it via CLI:
npx remotion browser ensure
๐ฆ Installation & Setup
๐ Automated Setup (Recommended)
Run the automated installer inside the cloned repository root:
- macOS / Linux:
chmod +x autoinstall.sh ./autoinstall.sh - Windows (PowerShell):
Set-ExecutionPolicy Bypass -Scope Process -Force .\autoinstall.ps1
This installer automatically compiles the codebase, installs Python packages, ensures Chrome dependencies are loaded, copies the global SKILL.md to your optimizations folder, and registers the server configuration to Claude Desktop and Antigravity.
๐ ๏ธ Manual Installation (Alternative)
- Compile the Server:
git clone https://github.com/ivanv/remotion-mcp-server.git cd remotion-mcp-server npm install npm run build
2. Register with your AI Client
Add the server configuration to your MCP settings file (e.g. claude_desktop_config.json, antigravity.json, or .mcp.json):
{
"mcpServers": {
"remotion": {
"command": "node",
"args": ["C:/Users/ivanv/PycharmProjects/remotion-mcp-server/dist/index.js"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY_HERE"
}
}
}
}
๐ค Available MCP Tools
1. remotion_scaffold_project
Scaffolds a complete React/Remotion project with prebuilt templates, standard layout components, and automatically installs npm dependencies.
- Arguments:
projectName(string, required): Folder name of the target project.template(enum:tiktok-916,youtube-169,social-11, required): Aspect ratio.targetDir(string, required): Parent directory path.
2. remotion_analyze_audio
Performs signal processing on audio files using Python Librosa to return BPM, beat frames, energy profiles, recommended scene cut frame numbers, and aligns SRT subtitles.
- Arguments:
audioPath(string, required): Path to input audio track.srtPath(string, optional): Path to SRT subtitles file.outputPath(string, optional): Path to save the output JSON analysis.fps(number, default30): Target composition frame rate.minSceneDuration(number, default3.5): Minimum seconds between scene cuts.
3. remotion_generate_tts
Synthesizes speech using Google Gemini 3.1 Flash TTS (gemini-3.1-flash-tts-preview) and outputs character-weighted word timecodes. Automatically falls back to clean synthetic audio if GEMINI_API_KEY is not present.
- Arguments:
text(string, required): Dialogue text to synthesize.outputPath(string, required): Path to save generated.wavfile.voice(string, default"Puck"): Gemini prebuilt voice name.accent(string, optional): Optional regional accent instruction.fps(number, default30): Frame rate.
4. remotion_preview_frame
Renders a still snapshot image (PNG/JPEG/WebP) of a specific frame in the composition using Remotion's CLI.
- Arguments:
projectDir(string, required): Path to Remotion project.compositionId(string, required): Target Composition ID.frame(number, default0): Frame index to capture.imageFormat(enum:png,jpeg,webp, defaultpng): Format.props(object, optional): Input React props.
5. remotion_render_video
Compiles a composition into a production-grade video (MP4/WebM).
- Arguments:
projectDir(string, required): Path to Remotion project.compositionId(string, required): Target Composition ID.outputPath(string, optional): Output video path.concurrency(number/string, default"auto"): CPU threads to utilize.codec(string, default"h264"): Target codec.props(object, optional): Input React props.
๐จ Prebuilt React Components
Scaffolded projects include these production-ready layout components:
SubtitleOverlay: Word-by-word active scaling and custom text shadow glows ("Efecto Lupa PRO") for dual-language subtitles.KenBurnsImage: Clean interpolation-based image scaling and translation without CSS animations.AudioSpectrum: Sound frequency spectrum visualizer bars reactively synchronized with the soundtrack.LowerThird: Elegant lower-third pop-ups for social media profiles or name cards.
๐งช Testing & Verification
Run the full E2E test suite to verify tool execution, path resolution, and CLI rendering:
npm test
๐ License
This project is licensed under the MIT License.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.