Skip to main content
Glama

LumaMCP

PyPI version PyPI downloads Python 3.10+ License: MIT MCP

Ein Model Context Protocol (MCP)-Server für KI-Videogenerierung mit Luma Dream Machine über die AceDataCloud API.

Generieren Sie KI-Videos direkt aus Claude, VS Code oder einem beliebigen MCP-kompatiblen Client.

Funktionen

  • Text zu Video - Erstellen Sie KI-generierte Videos aus Text-Prompts

  • Bild zu Video - Animieren Sie Bilder mit Kontrolle über Start-/End-Frames

  • Videoerweiterung - Erweitern Sie bestehende Videos mit zusätzlichen Inhalten

  • Mehrere Seitenverhältnisse - Unterstützung für 16:9, 9:16, 1:1 und mehr

  • Loop-Videos - Erstellen Sie nahtlos wiederholende Animationen

  • Verbesserung der Klarheit - Optionale Verbesserung der Videoqualität

  • Aufgabenverfolgung - Überwachen Sie den Fortschritt der Generierung und rufen Sie Ergebnisse ab

Related MCP server: SoraMCP

Tool-Referenz

Tool

Beschreibung

luma_generate_video

Generiert ein KI-Video aus einem Text-Prompt mit Luma Dream Machine.

luma_generate_video_from_image

Generiert ein KI-Video unter Verwendung von Referenzbildern als Start- und/oder End-Frames.

luma_extend_video

Erweitert ein bestehendes Video mit zusätzlichen Inhalten.

luma_extend_video_from_url

Erweitert ein bestehendes Video unter Verwendung seiner URL.

luma_get_task

Fragt den Status und das Ergebnis einer Videogenerierungsaufgabe ab.

luma_get_tasks_batch

Fragt mehrere Videogenerierungsaufgaben gleichzeitig ab.

luma_list_aspect_ratios

Listet alle verfügbaren Seitenverhältnisse für die Luma-Videogenerierung auf.

luma_list_actions

Listet alle verfügbaren Luma-API-Aktionen und die entsprechenden Tools auf.

Schnellstart

1. Holen Sie sich Ihren API-Token

  1. Registrieren Sie sich auf der AceDataCloud-Plattform

  2. Gehen Sie zur API-Dokumentationsseite

  3. Klicken Sie auf "Acquire", um Ihren API-Token zu erhalten

  4. Kopieren Sie den Token für die untenstehende Verwendung

2. Verwenden Sie den gehosteten Server (Empfohlen)

AceDataCloud hostet einen verwalteten MCP-Server — keine lokale Installation erforderlich.

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

Alle Anfragen erfordern einen Bearer-Token. Verwenden Sie den API-Token aus Schritt 1.

Claude.ai

Verbinden Sie sich direkt auf Claude.ai mit OAuth — kein API-Token erforderlich:

  1. Gehen Sie zu Claude.ai Einstellungen → Integrationen → Mehr hinzufügen

  2. Geben Sie die Server-URL ein: https://luma.mcp.acedata.cloud/mcp

  3. Schließen Sie den OAuth-Login-Prozess ab

  4. Beginnen Sie mit der Nutzung der Tools in Ihrer Konversation

Claude Desktop

Fügen Sie dies zu Ihrer Konfiguration hinzu (~/Library/Application Support/Claude/claude_desktop_config.json unter macOS):

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

Cursor / Windsurf

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu (.cursor/mcp.json oder .windsurf/mcp.json):

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

VS Code (Copilot)

Fügen Sie dies zu Ihrer VS Code MCP-Konfiguration hinzu (.vscode/mcp.json):

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

Oder installieren Sie die Ace Data Cloud MCP-Erweiterung für VS Code, die alle 15 MCP-Server mit einer Ein-Klick-Einrichtung bündelt.

JetBrains IDEs

  1. Gehen Sie zu Einstellungen → Tools → AI Assistant → Model Context Protocol (MCP)

  2. Klicken Sie auf Hinzufügen → HTTP

  3. Einfügen:

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

Claude Code

Claude Code unterstützt MCP-Server nativ:

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

Oder fügen Sie es zur .mcp.json Ihres Projekts hinzu:

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

Cline

Fügen Sie dies zu den MCP-Einstellungen von Cline hinzu (.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

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu:

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

Roo Code

Fügen Sie dies zu den Roo Code MCP-Einstellungen hinzu:

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

Continue.dev

Fügen Sie dies zu .continue/config.yaml hinzu:

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

Zed

Fügen Sie dies zu den Einstellungen von Zed hinzu (~/.config/zed/settings.json):

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

cURL-Test

# 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. Oder lokal ausführen (Alternative)

Wenn Sie den Server lieber auf Ihrem eigenen Rechner ausführen möchten:

# 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 (Lokal)

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

Docker (Self-Hosting)

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

Clients verbinden sich mit ihrem eigenen Bearer-Token — der Server extrahiert den Token aus dem Authorization-Header jeder Anfrage.

Verfügbare Tools

Videogenerierung

Tool

Beschreibung

luma_generate_video

Generiert Video aus einem Text-Prompt

luma_generate_video_from_image

Generiert Video unter Verwendung von Referenzbildern

luma_extend_video

Erweitert ein bestehendes Video per ID

luma_extend_video_from_url

Erweitert ein bestehendes Video per URL

Aufgaben

Tool

Beschreibung

luma_get_task

Fragt einen einzelnen Aufgabenstatus ab

luma_get_tasks_batch

Fragt mehrere Aufgaben gleichzeitig ab

Informationen

Tool

Beschreibung

luma_list_aspect_ratios

Listet verfügbare Seitenverhältnisse auf

luma_list_actions

Listet verfügbare API-Aktionen auf

Anwendungsbeispiele

Video aus Prompt generieren

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"]

Ein Bild animieren

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]

Ein Video erweitern

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]

Verfügbare Seitenverhältnisse

Seitenverhältnis

Beschreibung

Anwendungsfall

16:9

Querformat (Standard)

YouTube, TV, Präsentationen

9:16

Hochformat

TikTok, Instagram Reels

1:1

Quadratisch

Instagram-Posts

4:3

Traditionell

Klassisches Videoformat

3:4

Traditionelles Hochformat

Hochformat-Inhalte

21:9

Ultrawide

Kinematografische Inhalte

9:21

Hohes Ultrawide

Spezielle vertikale Displays

Konfiguration

Umgebungsvariablen

Variable

Beschreibung

Standard

ACEDATACLOUD_API_TOKEN

API-Token von AceDataCloud

Erforderlich

ACEDATACLOUD_API_BASE_URL

API-Basis-URL

https://api.acedata.cloud

ACEDATACLOUD_OAUTH_CLIENT_ID

OAuth-Client-ID (gehosteter Modus)

—

ACEDATACLOUD_PLATFORM_BASE_URL

Plattform-Basis-URL

https://platform.acedata.cloud

LUMA_DEFAULT_ASPECT_RATIO

Standard-Seitenverhältnis

16:9

LUMA_REQUEST_TIMEOUT

Anfrage-Timeout in Sekunden

1800

LOG_LEVEL

Logging-Level

INFO

Befehlszeilenoptionen

mcp-luma --help

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

Entwicklung

Entwicklungsumgebung einrichten

# 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]"

Tests ausführen

# 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

Code-Qualität

# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools

Build & Veröffentlichen

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

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

Projektstruktur

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

API-Referenz

Dieser Server umschließt die AceDataCloud Luma API:

Mitwirken

Beiträge sind willkommen! Bitte:

  1. Forken Sie das Repository

  2. Erstellen Sie einen Feature-Branch (git checkout -b feature/amazing)

  3. Committen Sie Ihre Änderungen (git commit -m 'Add amazing feature')

  4. Pushen Sie auf den Branch (git push origin feature/amazing)

  5. Öffnen Sie einen Pull Request

Lizenz

MIT-Lizenz - siehe LICENSE für Details.


Mit Liebe gemacht von 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