Skip to main content

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.py file 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

๐Ÿ“ 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


Built for the Runway AI community ๐Ÿš€

For issues or questions, refer to the Runway Developer Portal or check the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runway_mcp_server-0.1.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runway_mcp_server-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for runway_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0563844d650c1f9b066d9a5d7cfe5f76c8ec01df95979f5bc8f15954fded5adb
MD5 4040689c342a8060270a8510de1db084
BLAKE2b-256 43a0384a195aa208c89b00bd313c33cc6de8fb72e194d7b331468b82d9b0c161

See more details on using hashes here.

File details

Details for the file runway_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for runway_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31124e0ed9e5689114b6841947a81061c5871a3aebe19b9bed08dfcfcf8fc9e0
MD5 5e2005877f2d2b3283c2c642c1e66d58
BLAKE2b-256 f0cef7916472fcd55aa72f056e284586ba0dba4f19907a938378c443cf874188

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page