Luma MCP Integration Guide

MCP (Model Context Protocol) is a model context protocol introduced by Anthropic that allows AI models (such as Claude, GPT, etc.) to call external tools through a standardized interface. With the Luma MCP Server provided by AceData Cloud, you can generate AI videos directly in AI clients such as Claude Desktop, VS Code, and Cursor.

Feature Overview

Luma MCP Server provides the following core features:

  • Text-to-video — Generate high-quality videos from text prompts
  • Image-to-video — Generate videos using an image as the starting or ending frame
  • Video extension — Continue generating from the last frame of an existing video
  • Multiple aspect ratios — Supports 16:9, 9:16, 1:1, and other ratios
  • Visual enhancement — Optional visual quality enhancement
  • Task queries — Monitor generation progress and retrieve results

Prerequisites

Log in to the application list, open General Application, and click the copy button to the right of API KEY.

Get an Ace Data Cloud API Key

Replace the Token placeholder in the configuration below with the copied Key. When running locally, you can provide the original Key through ACEDATACLOUD_API_TOKEN.

Method 1: Use the Hosted MCP Server (Recommended, No Installation)

AceData Cloud already hosts the Luma MCP Server in the cloud. There is no need to install any dependencies locally; simply enter the URL below in your AI client to use it:

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

Authentication: Add Authorization: Bearer Your API Token to the request header (Claude.ai handles this automatically through OAuth, so there is no need to enter the Token manually).

Claude.ai (Web Version, OAuth Login, Easiest)

  1. Open Claude.ai → Customize in the bottom-left corner → Connectors → Add More
  2. Enter the URL: https://luma.mcp.acedata.cloud/mcp
  3. Complete the OAuth authorization login (you will be automatically redirected to the AceData Cloud login page)
  4. Return to the conversation interface, and the tools will be ready to use

Claude Desktop

Edit the configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "luma": {
      "type": "http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Save the file and restart Claude Desktop for the changes to take effect.

Claude Code (Terminal Command Line)

claude mcp add luma --transport http https://luma.mcp.acedata.cloud/mcp \
  -H "Authorization: Bearer 你的API Token"

VS Code (GitHub Copilot)

Create .vscode/mcp.json in the project root directory:

{
  "servers": {
    "luma": {
      "type": "http",
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Cursor

Create .cursor/mcp.json in the project root directory:

{
  "mcpServers": {
    "luma": {
      "url": "https://luma.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Other MCP-Compatible Clients

Any client that supports the MCP Streamable HTTP protocol (Windsurf, Cline, ChatGPT Connectors, Gemini CLI, JetBrains AI Assistant, etc.) can connect by entering the following two items:

  • URL: https://luma.mcp.acedata.cloud/mcp
  • Header: Authorization: Bearer Your API Token

Method 2: Run Locally (pip / uvx Installation)

If you need to run offline, customize the code, or deploy to an internal network, you can install the MCP Server locally and start it through stdio.

Installation

Install with pip (recommended):

pip install mcp-luma

Or install from source:

git clone https://github.com/AceDataCloud/LumaMCP.git
cd LumaMCP
pip install -e .

Once installation is complete, you can start the server using the mcp-luma command.

Use in Claude Desktop (Local)

Edit the Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "luma": {
      "command": "mcp-luma",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

If using uvx (no need to install the package in advance):

{
  "mcpServers": {
    "luma": {
      "command": "uvx",
      "args": ["mcp-luma"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Save the configuration and restart Claude Desktop for the changes to take effect.

Use in VS Code / Cursor (Local)

Create .vscode/mcp.json in the project root directory:

{
  "servers": {
    "luma": {
      "command": "mcp-luma",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Or use uvx:

{
  "servers": {
    "luma": {
      "command": "uvx",
      "args": ["mcp-luma"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Available Tools

Tool Name Description
luma_generate_video Generate a video from a text prompt
luma_generate_video_from_image Generate a video from an image
luma_extend_video Extend an existing video
luma_extend_video_from_url Extend a video specified by URL
luma_get_task Query the status of a single task
luma_get_tasks_batch Query the status of multiple tasks in bulk

Usage Examples

Once configured, you can call these features directly in your AI client using natural language, for example:

  • “Help me generate a video of a beach at sunset”
  • “Use this photo as the first frame and generate a 5-second video”
  • “Continue this video and extend it further”
  • “Generate a vertical video with a 9:16 aspect ratio”

More Information