The RunwayML + Luma AI MCP server provides tools to interact with RunwayML and Luma AI APIs for generating videos and images through text prompts or image inputs. This server follows the Model Context Protocol (MCP) to enable AI assistants to create visual content via these services.
npm install
Create a .env
file in the server's root directory with your API keys:
RUNWAYML_API_SECRET=your_runwayml_api_secret_here
LUMAAI_API_KEY=your_luma_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here
Build and start the server with these commands:
npm run build
npm start
You should see RunwayML MCP server running on stdio
in your terminal's error output.
Configure your MCP client (like Claude Desktop App or Cline) with these settings:
runway-luma-server
)node
/path/to/your/runwayml-mcp-server/build/server-index.js
)RUNWAYML_API_SECRET
: Your RunwayML API SecretLUMAAI_API_KEY
: Your Luma AI API KeyOPENROUTER_API_KEY
: Your OpenRouter API KeyExample configuration for an MCP client:
{
"mcpServers": {
"runway-luma-server": {
"command": "node",
"args": ["/full/path/to/runwayml-mcp-server/build/server-index.js"],
"env": {
"RUNWAYML_API_SECRET": "your_runwayml_api_secret_here",
"LUMAAI_API_KEY": "your_luma_api_key_here",
"OPENROUTER_API_KEY": "your_openrouter_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
{
"tool_name": "generate_text_to_video",
"arguments": {
"provider": "runwayml",
"promptText": "A serene mountain landscape at sunset",
"runway_model": "gen-2",
"runway_resolution": "1280:768",
"runway_watermark": false
}
}
Key parameters:
provider
: runwayml
(default) or lumaai
promptText
: Your text description{
"tool_name": "generate_image_to_video",
"arguments": {
"provider": "lumaai",
"promptImage": "https://example.com/your-image.jpg",
"promptText": "Subtle camera pan right",
"luma_model": "ray-2",
"luma_aspect_ratio": "16:9",
"duration": 5
}
}
Key parameters:
provider
: runwayml
(default) or lumaai
promptImage
: URL to your imagepromptText
: Optional text guidance{
"tool_name": "luma_generate_image",
"arguments": {
"prompt": "A futuristic cityscape at night",
"aspect_ratio": "16:9",
"model": "photon-1"
}
}
{
"tool_name": "enhance_prompt",
"arguments": {
"original_prompt": "A cat in space",
"instructions": "Make this more detailed and cinematic"
}
}
luma_list_generations
luma_get_generation
luma_delete_generation
luma_add_audio
luma_upscale
{
"tool_name": "luma_generate_image",
"arguments": {
"prompt": "Overhead shot of a dark, rainy cyberpunk city street at night. Bright neon signs reflect on wet pavement.",
"aspect_ratio": "16:9"
}
}
{
"tool_name": "generate_image_to_video",
"arguments": {
"provider": "lumaai",
"promptImage": "[URL from step 1]",
"promptText": "Slow pan left across the rainy cyberpunk cityscape",
"luma_aspect_ratio": "16:9",
"duration": 5
}
}
{
"tool_name": "luma_generate_image",
"arguments": {
"prompt": "A sleek futuristic wireless earbud floats in a bright, minimalist white room",
"aspect_ratio": "1:1",
"image_ref": [{ "url": "[PRODUCT_IMAGE_URL]", "weight": 0.8 }]
}
}
{
"tool_name": "generate_image_to_video",
"arguments": {
"provider": "lumaai",
"promptImage": "[URL from step 1]",
"promptText": "The earbud slowly rotates in zero gravity",
"luma_aspect_ratio": "1:1",
"duration": 5
}
}
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.