MCP server for Runway ML video generation with Gen-4, Veo 3, Aleph video editing, and comprehensive AI video tools
Project description
๐ฌ Runway MCP Server
A Model Context Protocol (MCP) server for Runway AI - featuring Gen-4 models, Aleph video editing, and comprehensive video generation tools.
MCP Registry Name: io.github.sidart10/runway-mcp-server
โจ Features
- ๐ฅ Aleph Video Editing - Add/remove objects, change camera angles, transform lighting
- ๐จ Gen-4 Image Generation - High-fidelity images with reference support
- ๐น Gen-4 Video Generation - Text-to-video, image-to-video, keyframe control
- ๐ญ Advanced Tools - Video extension, 4K upscaling, style transfer
๐ฆ Installation
โ ๏ธ Note: The root-level
runway_mcp_server.pyfile is kept for backward compatibility. New installations should use the PyPI package below.
Option 1: Install from PyPI (Recommended)
# Install with uvx (automatically manages dependencies)
uvx runway-mcp-server
# Or install globally with pip
pip install runway-mcp-server
Option 2: Install from Source
# Clone the repository
git clone https://github.com/sidart10/runway-mcp-server.git
cd runway-mcp-server
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # Mac/Linux (or venv\Scripts\activate on Windows)
# Install in development mode
pip install -e .
๐ Quick Start
1. Configure API Key
Create a .env file in the project root:
# .env file
RUNWAY_API_KEY=your_api_key_here
Get your API key from dev.runwayml.com
2. Add to MCP Config
For Cursor: Edit ~/.cursor/mcp.json
For Claude Desktop: Edit ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"runway": {
"command": "uvx",
"args": ["runway-mcp-server"],
"env": {
"RUNWAY_API_KEY": "your_api_key_here"
}
}
}
}
Note: Replace your_api_key_here with your actual Runway API key from dev.runwayml.com
3. Restart Your Client
Restart Cursor or Claude Desktop to load the server.
๐ ๏ธ Available Tools
| Tool | Description |
|---|---|
generate_image_gen4 |
Create high-quality images with Gen-4 |
generate_video_text_to_video |
Generate videos from text descriptions |
generate_video_image_to_video |
Animate images with motion |
generate_video_first_last_frame |
Precise start/end frame control |
edit_video_with_aleph |
โญ Advanced video editing & transformation |
restyle_video |
Apply artistic styles to videos |
extend_video |
Extend videos by 5-10 seconds |
upscale_video_4k |
Upscale to 4K resolution |
get_task_status |
Check generation progress |
cancel_task |
Cancel running tasks |
list_available_models |
List all available models |
get_api_info |
Server configuration info |
๐ Documentation
- Quick Start Guide - Get running in 5 minutes
- Aleph Guide - Video editing deep dive
- Features Guide - All capabilities explained
- Architecture - Technical details
- Examples - Working code samples
๐ Project Structure
runway-mcp-server/
โโโ runway_mcp_server.py # Main server code
โโโ requirements.txt # Python dependencies
โโโ .env # API key (create this)
โโโ README.md # This file
โโโ .gitignore # Git ignore rules
โโโ venv/ # Virtual environment
โโโ docs/ # Documentation
โ โโโ QUICKSTART.md
โ โโโ ALEPH_GUIDE.md
โ โโโ FEATURES.md
โ โโโ ARCHITECTURE.md
โ โโโ ...
โโโ examples/ # Code examples
โ โโโ example_usage.py
โโโ config/ # Configuration templates
โโโ mcp_config_example.json
๐ก Usage Examples
Generate a Video
"Generate a 10-second video of an eagle soaring over mountains at sunset"
Edit with Aleph
"Edit this video to remove the person in the background: [video URL]"
Create an Image
"Create a Gen-4 image of a futuristic cyberpunk city at night, 1920x1080"
๐ Rate Limits
- API calls are rate-limited based on your Runway plan
- Gen-4 Turbo: ~5 credits per second
- Aleph editing: ~15 credits per second
- Check usage at dev.runwayml.com
๐ Troubleshooting
API Key Not Loading:
# Verify .env file exists
ls -la .env
# Check if key loads
python -c "from dotenv import load_dotenv; import os; load_dotenv(); print('โ
' if os.getenv('RUNWAY_API_KEY') else 'โ')"
Server Won't Start:
- Ensure Python 3.10+ is installed:
python3 --version - Verify virtual environment is activated
- Check all dependencies installed:
pip list
Task Timeouts:
- Video generation takes 2-10 minutes depending on length
- Use
get_task_status()to check progress - Increase wait time if needed
๐ค Contributing
This is an MCP server implementation following the Model Context Protocol specification.
๐ License
This MCP server is provided as-is for use with the Runway API. Runway API usage is subject to Runway's terms of service.
๐ Resources
- Runway Developer Portal: dev.runwayml.com
- API Documentation: docs.dev.runwayml.com
- MCP Specification: modelcontextprotocol.io
- Help Center: help.runwayml.com
Built for the Runway AI community ๐
For issues or questions, refer to the Runway Developer Portal or check the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runway_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: runway_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0563844d650c1f9b066d9a5d7cfe5f76c8ec01df95979f5bc8f15954fded5adb
|
|
| MD5 |
4040689c342a8060270a8510de1db084
|
|
| BLAKE2b-256 |
43a0384a195aa208c89b00bd313c33cc6de8fb72e194d7b331468b82d9b0c161
|
File details
Details for the file runway_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: runway_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31124e0ed9e5689114b6841947a81061c5871a3aebe19b9bed08dfcfcf8fc9e0
|
|
| MD5 |
5e2005877f2d2b3283c2c642c1e66d58
|
|
| BLAKE2b-256 |
f0cef7916472fcd55aa72f056e284586ba0dba4f19907a938378c443cf874188
|