Logotipo de RunwayML + Luma AI MCP 服务器

RunwayML + Luma AI MCP 服务器

Comunidad
wheattoast11

Luma AI Video + Audio + Image Generation and RunwayML Video Generation from Image and Text

Editorwheattoast11
Repositoriomcp-video-gen
IdiomaTypeScript
Forks
3
Estrellas
17
Herramientas disponibles
0
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    RunwayML + Luma AI MCP 服务器 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    17 estrellas y 3 forks en el repositorio enlazado.

MseeP.ai Security Assessment Badge

RunwayML + Luma AI MCP Server

This MCP server provides tools to interact with the RunwayML and Luma AI APIs for video and image generation tasks.

Features

  • Generate videos from text prompts (RunwayML or Luma AI).
  • Generate videos from images (RunwayML or Luma AI).
  • Generate images from text prompts (Luma AI).
  • Manage Luma AI generations (list, get, delete).
  • Add audio to Luma AI generations.
  • Upscale Luma AI generations.
  • Enhance prompts using OpenRouter LLMs before generation.

Prerequisites

  • Node.js (v18 LTS or later recommended)
  • npm (usually included with Node.js)
  • API Keys:
    • RunwayML API Secret
    • Luma AI API Key
    • OpenRouter API Key (for the enhance_prompt tool)

Installation

  1. Clone or Download: Obtain the server code.
  2. Navigate to Directory: Open a terminal in the server's root directory (runwayml-mcp-server).
  3. Install Dependencies:
    bash
    npm install

Configuration

  1. Create .env file: In the server's root directory, create a file named .env.
  2. Add API Keys: Add your API keys to the .env file:
    dotenv
    RUNWAYML_API_SECRET=your_runwayml_api_secret_here
    LUMAAI_API_KEY=your_luma_api_key_here
    OPENROUTER_API_KEY=your_openrouter_api_key_here
    Replace the placeholder values with your actual keys.

Running the Server

  1. Build the Server: Compile the TypeScript code:
    bash
    npm run build
  2. Start the Server:
    bash
    npm start
    You should see a message like RunwayML MCP server running on stdio in your terminal's error output (stderr).

MCP Client Setup (e.g., Claude Desktop App, Cline)

Configure your MCP client to connect to this server. The exact steps depend on the client, but you'll typically need to provide:

  • Name: A descriptive name (e.g., runway-luma-server)
  • Command: node
  • Arguments: The full path to the compiled server index file (e.g., /path/to/your/runwayml-mcp-server/build/server-index.js)
  • Environment Variables:
    • RUNWAYML_API_SECRET: Your RunwayML API Secret
    • LUMAAI_API_KEY: Your Luma AI API Key
    • OPENROUTER_API_KEY: Your OpenRouter API Key

Example Configuration (Conceptual):

json
{
  "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": []
    }
  }
}

(Remember to replace /full/path/to/ with the actual path on your system)

Available Tools

  • generate_text_to_video: Generates video from text.
    • provider: (Optional) runwayml (default) or lumaai.
    • promptText: (Required) The text prompt.
    • runway_model: (Optional) Runway model (e.g., "gen-2").
    • runway_resolution: (Optional) Runway resolution (1280:768 or 768:1280).
    • runway_watermark: (Optional) Boolean, default false.
    • luma_model: (Optional) Luma model (ray-flash-2, ray-2 (default), ray-1-6).
    • luma_aspect_ratio: (Optional) Luma aspect ratio (e.g., 16:9 (default), 1:1).
    • luma_loop: (Optional) Boolean.
    • duration: (Optional) Video duration in seconds (number).
    • seed: (Optional) Generation seed (number).
  • generate_image_to_video: Generates video from an image.
    • provider: (Optional) runwayml (default) or lumaai.
    • promptImage: (Required) URL of the input image, or for Runway, an array [{uri: "url", position: "first" | "last"}].
    • promptText: (Optional) Text prompt to accompany the image.
    • runway_model: (Optional) Runway model (gen3a_turbo (default)).
    • runway_duration: (Optional) Runway duration (5 (default) or 10).
    • runway_ratio: (Optional) Runway resolution (1280:768 or 768:1280).
    • runway_watermark: (Optional) Boolean, default false.
    • luma_model: (Optional) Luma model (ray-flash-2, ray-2 (default), ray-1-6).
    • luma_aspect_ratio: (Optional) Luma aspect ratio (e.g., 16:9 (default)).
    • luma_loop: (Optional) Boolean.
    • seed: (Optional) Generation seed (number).
  • enhance_prompt: Refines a prompt using OpenRouter.
    • original_prompt: (Required) The prompt to enhance.
    • model: (Optional) OpenRouter model name (defaults to a capable model like anthropic/claude-3.5-sonnet).
    • instructions: (Optional) Specific instructions for the enhancement.
  • luma_generate_image: Generates an image using Luma AI.
    • prompt: (Required) Text prompt.
    • aspect_ratio: (Optional) Luma aspect ratio (16:9 (default)).
    • model: (Optional) Luma image model (photon-1 (default), photon-flash-1).
    • image_ref: (Optional) Array of image reference objects ({url: string, weight?: number}). Max 4.
    • style_ref: (Optional) Array of style reference objects ({url: string, weight?: number}). Max 1.
    • character_ref: (Optional) Character reference object ({ identity0: { images: [url1, ...] } }).
    • modify_image_ref: (Optional) Modify image reference object ({url: string, weight?: number}).
  • luma_list_generations: Lists previous Luma AI generations.
    • limit: (Optional) Number of results (default 10).
    • offset: (Optional) Offset for pagination (default 0).
  • luma_get_generation: Gets details for a specific Luma AI generation.
    • generation_id: (Required) UUID of the generation.
  • luma_delete_generation: Deletes a specific Luma AI generation.
    • generation_id: (Required) UUID of the generation.
  • luma_get_camera_motions: Lists supported camera motions for Luma AI prompts. (No parameters).
  • luma_add_audio: Adds audio to a Luma generation.
    • generation_id: (Required) UUID of the generation.
    • prompt: (Required) Prompt for the audio.
    • negative_prompt: (Optional) Negative prompt for audio.
  • luma_upscale: Upscales a Luma generation.
    • generation_id: (Required) UUID of the generation.
    • resolution: (Optional) Target resolution (1080p (default) or 4k).

(Note: For tools involving generation (generate_*, luma_upscale), the server initiates the task and returns immediately. Progress updates and the final result URL will be sent via MCP progress notifications.)

Example Workflows

Here are examples of how to combine the server's tools for common use cases:

1. Music Video Snippet (Cyberpunk Noir)

Goal: Create a 5-second cyberpunk noir video clip for the lyric "Neon rivers flowing through a city of chrome".

Steps:

  1. Generate Base Image (Luma):

    json
    {
      "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, resembling rivers of light flowing between towering chrome skyscrapers. Film noir aesthetic, photorealistic.",
        "aspect_ratio": "16:9"
      }
    }

    (Wait for image generation to complete and get the image URL)

  2. Animate Image (Luma):

    json
    {
      "tool_name": "generate_image_to_video",
      "arguments": {
        "provider": "lumaai",
        "promptImage": "{IMAGE_URL_FROM_STEP_1}",
        "promptText": "Slow pan left across the rainy cyberpunk cityscape, neon lights flickering subtly.",
        "luma_aspect_ratio": "16:9",
        "duration": 5
      }
    }

    (Wait for video generation to complete)

2. Product Ad Concept (Floating Earbud)

Goal: Create a 5-second video showing a futuristic earbud floating in a minimalist environment.

Steps:

  1. Generate Scene with Product Reference (Luma):

    json
    {
      "tool_name": "luma_generate_image",
      "arguments": {
        "prompt": "A single, sleek futuristic wireless earbud floats weightlessly in the center of a bright, minimalist white room with soft, diffused ambient light. Zero gravity effect.",
        "aspect_ratio": "1:1",
        "image_ref": [{ "url": "{PRODUCT_IMAGE_URL}", "weight": 0.8 }]
      }
    }

    (Wait for image generation to complete and get the image URL)

  2. Animate Scene (Luma):

    json
    {
      "tool_name": "generate_image_to_video",
      "arguments": {
        "provider": "lumaai",
        "promptImage": "{IMAGE_URL_FROM_STEP_1}",
        "promptText": "The earbud slowly rotates and drifts gently in zero gravity.",
        "luma_aspect_ratio": "1:1",
        "duration": 5
      }
    }

    (Wait for video generation to complete)

3. Image Animation (RunwayML Gen3a)

Goal: Animate an existing image using RunwayML's Gen3a model.

Steps:

  1. (Optional) Generate Base Image (Luma): Use luma_generate_image if you don't have an image.
  2. Animate Image (RunwayML):
    json
    {
      "tool_name": "generate_image_to_video",
      "arguments": {
        "provider": "runwayml",
        "promptImage": "{YOUR_IMAGE_URL}",
        "promptText": "Subtle zoom in, cinematic lighting.",
        "runway_model": "gen3a_turbo",
        "runway_duration": "5",
        "runway_ratio": "1280:768" // Or "768:1280"
      }
    }
    (Wait for video generation to complete)

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "wheattoast11-mcp-video-gen": {
      "command": "",
      "args": []
    }
  }
}

Usa el MCP de RunwayML + Luma AI MCP 服务器 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado RunwayML + Luma AI MCP 服务器, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade RunwayML + Luma AI MCP 服务器 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de RunwayML + Luma AI MCP 服务器.
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "wheattoast11-mcp-video-gen": {
      "command": "npx",
      "args": [
        "-y",
        "runwayml-mcp-server"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de RunwayML + Luma AI MCP 服务器 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de RunwayML + Luma AI MCP 服务器.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar RunwayML + Luma AI MCP 服务器 para ayudarme con esta tarea?
RunwayML + Luma AI MCP 服务器
Claro. Lo he leído.
Esto es lo que he encontrado con RunwayML + Luma AI MCP 服务器.

Preguntas frecuentes

¿Para qué sirve el servidor MCP RunwayML + Luma AI MCP 服务器?

RunwayML + Luma AI MCP 服务器 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP RunwayML + Luma AI MCP 服务器 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar RunwayML + Luma AI MCP 服务器 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP RunwayML + Luma AI MCP 服务器 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con RunwayML + Luma AI MCP 服务器 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP RunwayML + Luma AI MCP 服务器 a TypingMind?

RunwayML + Luma AI MCP 服务器 funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP RunwayML + Luma AI MCP 服务器 en TypingMind?

RunwayML + Luma AI MCP 服务器 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP RunwayML + Luma AI MCP 服务器?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si RunwayML + Luma AI MCP 服务器 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇