Skip to main content
Glama

LumaMCP

PyPI version PyPI downloads Python 3.10+ License: MIT MCP

Un servidor del Protocolo de Contexto de Modelo (MCP) para la generación de vídeo con IA utilizando Luma Dream Machine a través de la API de AceDataCloud.

Genera vídeos con IA directamente desde Claude, VS Code o cualquier cliente compatible con MCP.

Características

  • Texto a vídeo - Crea vídeos generados por IA a partir de prompts de texto

  • Imagen a vídeo - Anima imágenes con control de fotogramas inicial/final

  • Extensión de vídeo - Extiende vídeos existentes con contenido adicional

  • Múltiples relaciones de aspecto - Soporte para 16:9, 9:16, 1:1 y más

  • Vídeos en bucle - Crea animaciones en bucle sin interrupciones

  • Mejora de claridad - Mejora opcional de la calidad del vídeo

  • Seguimiento de tareas - Monitorea el progreso de la generación y recupera resultados

Related MCP server: SoraMCP

Referencia de herramientas

Herramienta

Descripción

luma_generate_video

Genera vídeo con IA a partir de un prompt de texto usando Luma Dream Machine.

luma_generate_video_from_image

Genera vídeo con IA usando imágenes de referencia como fotogramas iniciales y/o finales.

luma_extend_video

Extiende un vídeo existente con contenido adicional.

luma_extend_video_from_url

Extiende un vídeo existente usando su URL.

luma_get_task

Consulta el estado y el resultado de una tarea de generación de vídeo.

luma_get_tasks_batch

Consulta múltiples tareas de generación de vídeo a la vez.

luma_list_aspect_ratios

Lista todas las relaciones de aspecto disponibles para la generación de vídeo de Luma.

luma_list_actions

Lista todas las acciones de la API de Luma disponibles y sus herramientas correspondientes.

Inicio rápido

1. Obtén tu token de API

  1. Regístrate en la Plataforma AceDataCloud

  2. Ve a la página de documentación de la API

  3. Haz clic en "Acquire" para obtener tu token de API

  4. Copia el token para usarlo a continuación

2. Usa el servidor alojado (Recomendado)

AceDataCloud aloja un servidor MCP gestionado — no requiere instalación local.

Endpoint: https://luma.mcp.acedata.cloud/mcp

Todas las solicitudes requieren un token Bearer. Usa el token de API del paso 1.

Claude.ai

Conéctate directamente en Claude.ai con OAuth — no se necesita token de API:

  1. Ve a Settings → Integrations → Add More en Claude.ai

  2. Introduce la URL del servidor: https://luma.mcp.acedata.cloud/mcp

  3. Completa el flujo de inicio de sesión OAuth

  4. Empieza a usar las herramientas en tu conversación

Claude Desktop

Añádelo a tu configuración (~/Library/Application Support/Claude/claude_desktop_config.json en macOS):

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cursor / Windsurf

Añádelo a tu configuración de MCP (.cursor/mcp.json o .windsurf/mcp.json):

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

VS Code (Copilot)

Añádelo a tu configuración de MCP de VS Code (.vscode/mcp.json):

{
  "servers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

O instala la extensión Ace Data Cloud MCP para VS Code, que agrupa los 15 servidores MCP con una configuración de un solo clic.

IDEs de JetBrains

  1. Ve a Settings → Tools → AI Assistant → Model Context Protocol (MCP)

  2. Haz clic en Add → HTTP

  3. Pega:

{
  "mcpServers": {
    "luma": {
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Claude Code

Claude Code admite servidores MCP de forma nativa:

claude mcp add luma --transport http https://luma.mcp.acedata.cloud/mcp \
  -h "Authorization: Bearer YOUR_API_TOKEN"

O añádelo al archivo .mcp.json de tu proyecto:

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cline

Añádelo a la configuración de MCP de Cline (.cline/mcp_settings.json):

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Amazon Q Developer

Añádelo a tu configuración de MCP:

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Roo Code

Añádelo a la configuración de MCP de Roo Code:

{
  "mcpServers": {
    "luma": {
      "type": "streamable-http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Continue.dev

Añádelo a .continue/config.yaml:

mcpServers:
  - name: luma
    type: streamable-http
    url: https://luma.mcp.acedata.cloud/mcp
    headers:
      Authorization: "Bearer YOUR_API_TOKEN"

Zed

Añádelo a la configuración de Zed (~/.config/zed/settings.json):

{
  "language_models": {
    "mcp_servers": {
      "luma": {
        "url": "https://luma.mcp.acedata.cloud/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_TOKEN"
        }
      }
    }
  }
}

Prueba con cURL

# Health check (no auth required)
curl https://luma.mcp.acedata.cloud/health

# MCP initialize
curl -X POST https://luma.mcp.acedata.cloud/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

3. O ejecútalo localmente (Alternativa)

Si prefieres ejecutar el servidor en tu propia máquina:

# Install from PyPI
pip install mcp-luma
# or
uvx mcp-luma

# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"

# Run (stdio mode for Claude Desktop / local clients)
mcp-luma

# Run (HTTP mode for remote access)
mcp-luma --transport http --port 8000

Claude Desktop (Local)

{
  "mcpServers": {
    "luma": {
      "command": "uvx",
      "args": ["mcp-luma"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your_token_here"
      }
    }
  }
}

Docker (Autoalojamiento)

docker pull ghcr.io/acedatacloud/mcp-luma:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-luma:latest

Los clientes se conectan con su propio token Bearer: el servidor extrae el token de la cabecera Authorization de cada solicitud.

Herramientas disponibles

Generación de vídeo

Herramienta

Descripción

luma_generate_video

Genera vídeo a partir de un prompt de texto

luma_generate_video_from_image

Genera vídeo usando imágenes de referencia

luma_extend_video

Extiende un vídeo existente por ID

luma_extend_video_from_url

Extiende un vídeo existente por URL

Tareas

Herramienta

Descripción

luma_get_task

Consulta el estado de una sola tarea

luma_get_tasks_batch

Consulta múltiples tareas a la vez

Información

Herramienta

Descripción

luma_list_aspect_ratios

Lista las relaciones de aspecto disponibles

luma_list_actions

Lista las acciones de API disponibles

Ejemplos de uso

Generar vídeo a partir de un prompt

User: Create a video of waves on a beach

Claude: I'll generate a beach wave video for you.
[Calls luma_generate_video with prompt="Ocean waves gently crashing on sandy beach, sunset"]

Animar una imagen

User: Animate this image: https://example.com/image.jpg

Claude: I'll create a video from your image.
[Calls luma_generate_video_from_image with start_image_url and appropriate prompt]

Extender un vídeo

User: Continue this video with more action

Claude: I'll extend the video with additional content.
[Calls luma_extend_video with video_id and new prompt]

Relaciones de aspecto disponibles

Relación de aspecto

Descripción

Caso de uso

16:9

Paisaje (predeterminado)

YouTube, TV, presentaciones

9:16

Retrato

TikTok, Instagram Reels

1:1

Cuadrado

Publicaciones de Instagram

4:3

Tradicional

Formato de vídeo clásico

3:4

Retrato tradicional

Contenido en retrato

21:9

Ultrawide

Contenido cinematográfico

9:21

Ultrawide vertical

Pantallas verticales especiales

Configuración

Variables de entorno

Variable

Descripción

Predeterminado

ACEDATACLOUD_API_TOKEN

Token de API de AceDataCloud

Requerido

ACEDATACLOUD_API_BASE_URL

URL base de la API

https://api.acedata.cloud

ACEDATACLOUD_OAUTH_CLIENT_ID

ID de cliente OAuth (modo alojado)

—

ACEDATACLOUD_PLATFORM_BASE_URL

URL base de la plataforma

https://platform.acedata.cloud

LUMA_DEFAULT_ASPECT_RATIO

Relación de aspecto predeterminada

16:9

LUMA_REQUEST_TIMEOUT

Tiempo de espera de solicitud en segundos

1800

LOG_LEVEL

Nivel de registro

INFO

Opciones de línea de comandos

mcp-luma --help

Options:
  --version          Show version
  --transport        Transport mode: stdio (default) or http
  --port             Port for HTTP transport (default: 8000)

Desarrollo

Configurar el entorno de desarrollo

# Clone repository
git clone https://github.com/AceDataCloud/LumaMCP.git
cd LumaMCP

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # or `.venv\Scripts\activate` on Windows

# Install with dev dependencies
pip install -e ".[dev,test]"

Ejecutar pruebas

# Run unit tests
pytest

# Run with coverage
pytest --cov=core --cov=tools

# Run integration tests (requires API token)
pytest tests/test_integration.py -m integration

Calidad del código

# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools

Construir y publicar

# Install build dependencies
pip install -e ".[release]"

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

Estructura del proyecto

LumaMCP/
├── core/                   # Core modules
│   ├── __init__.py
│   ├── client.py          # HTTP client for Luma API
│   ├── config.py          # Configuration management
│   ├── exceptions.py      # Custom exceptions
│   ├── server.py          # MCP server initialization
│   ├── types.py           # Type definitions
│   └── utils.py           # Utility functions
├── tools/                  # MCP tool definitions
│   ├── __init__.py
│   ├── video_tools.py     # Video generation tools
│   ├── task_tools.py      # Task query tools
│   └── info_tools.py      # Information tools
├── prompts/                # MCP prompts
│   └── __init__.py        # Prompt templates
├── tests/                  # Test suite
│   ├── conftest.py
│   ├── test_client.py
│   ├── test_config.py
│   ├── test_integration.py
│   └── test_utils.py
├── deploy/                 # Deployment configs
│   └── production/
│       ├── deployment.yaml
│       ├── ingress.yaml
│       └── service.yaml
├── .env.example           # Environment template
├── .gitignore
├── CHANGELOG.md
├── Dockerfile             # Docker image for HTTP mode
├── docker-compose.yaml    # Docker Compose config
├── LICENSE
├── main.py                # Entry point
├── pyproject.toml         # Project configuration
└── README.md

Referencia de la API

Este servidor envuelve la API de Luma de AceDataCloud:

Contribución

¡Las contribuciones son bienvenidas! Por favor:

  1. Haz un fork del repositorio

  2. Crea una rama de características (git checkout -b feature/amazing)

  3. Confirma tus cambios (git commit -m 'Add amazing feature')

  4. Envía a la rama (git push origin feature/amazing)

  5. Abre una Pull Request

Licencia

Licencia MIT - consulta LICENSE para más detalles.

Enlaces


Hecho con amor por AceDataCloud

Available Tools

8 tools
luma_extend_videoAInspect

Extend an existing video with additional content.

This allows you to continue a previously generated video, adding more motion
and content after the original video ends.

Use this when:
- A generated video is too short and you want to add more
- You want to continue the story or motion from a previous video
- You're building a longer video piece by piece

Returns:
    Task ID and the extended video information.

Inputs: prompt (required), video_id (required), callback_url, end_image_url. Returns: result

luma_extend_video_from_urlAInspect

Extend an existing video using its URL.

Similar to luma_extend_video, but uses the video URL instead of video ID.
This is useful when you have the video URL but not the original video ID.

Use this when:
- You have the video URL from a previous generation
- You want to extend a video but don't have the video_id

Returns:
    Task ID and the extended video information.

Inputs: prompt (required), video_url (required), callback_url, end_image_url. Returns: result

luma_generate_videoAInspect

Generate AI video from a text prompt using Luma Dream Machine.

This is the simplest way to create video - just describe what you want and Luma
will generate a high-quality AI video.

Use this when:
- You want to create a video from a text description
- You don't have reference images
- You want quick video generation

For using reference images (start/end frames), use luma_generate_video_from_image instead.

Returns:
    Task ID and generated video information including URLs, dimensions, and thumbnail.

Inputs: prompt (required), loop, timeout, enhancement, +2 more. Returns: result

luma_generate_video_from_imageAInspect

Generate AI video using reference images as start and/or end frames.

This allows you to control the video by specifying what the first frame
and/or last frame should look like. Luma will generate smooth motion between them.

Use this when:
- You have a specific image you want to animate
- You want to create a video transition between two images
- You need precise control over the video's visual content

At least one of start_image_url or end_image_url must be provided.

Returns:
    Task ID and generated video information including URLs, dimensions, and thumbnail.

Inputs: prompt (required), loop, timeout, enhancement, +4 more. Returns: result

luma_get_taskAInspect

Query the status and result of a video generation task.

Use this to check if a generation is complete and retrieve the resulting
video URLs, thumbnails, and other metadata.

Use this when:
- You want to check if a generation has completed
- You need to retrieve video URLs from a previous generation
- You want to get the full details of a generated video

Task states:
- 'pending': Generation is still in progress
- 'completed': Generation finished successfully
- 'failed': Generation failed (check error message)

Returns:
    Task status and generated video information including URLs, dimensions, and thumbnail.

Inputs: task_id (required). Returns: result

luma_get_tasks_batchAInspect

Query multiple video generation tasks at once.

Efficiently check the status of multiple tasks in a single request.
More efficient than calling luma_get_task multiple times.

Use this when:
- You have multiple pending generations to check
- You want to get status of several videos at once
- You're tracking a batch of generations

Returns:
    Status and video information for all queried tasks.

Inputs: task_ids (required). Returns: result

luma_list_actionsAInspect

List all available Luma API actions and corresponding tools.

Reference guide for what each action does and which tool to use.
Helpful for understanding the full capabilities of the Luma MCP.

Returns:
    Categorized list of all actions and their corresponding tools.

Inputs: no named parameters. Returns: result

luma_list_aspect_ratiosAInspect

List all available aspect ratios for Luma video generation.

Shows all available aspect ratio options with their use cases.
Use this to understand which aspect ratio to choose for your video.

Returns:
    Table of all aspect ratios with their descriptions and use cases.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools are clearly distinct: generation, image-based generation, status checks, and aspect ratio listing are unambiguous. The only potential confusion is luma_extend_video vs luma_extend_video_from_url, which perform the same operation but differ by input identifier; descriptions help but the overlap could still cause misselection.

    Naming Consistency5/5

    All tools follow a consistent luma_<verb>_<object> snake_case pattern. Verbs are predictable (list, get, generate, extend) and names clearly map to their actions, making the set easy to navigate.

    Tool Count5/5

    Eight tools is well-scoped for a video generation MCP server. Each tool earns its place, covering discovery, generation, extension, and status retrieval without unnecessary redundancy or bloat.

    Completeness4/5

    The core video generation lifecycle is covered: generate text-to-video, generate from images, extend videos, and query task status individually or in batch. Minor gaps exist, such as no cancellation or listing of all past tasks, but these are not critical to the primary workflow.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers