Connecting Codex CLI to Luma MCP

📘 Complete guide: Use Ace Data Cloud MCP in Codex CLI →

Luma AI's Dream Machine video model offers natural camera movement, strong physical realism, and image-to-video support. After connecting it to Codex CLI through MCP, you can invoke it directly in a conversation, without switching windows or copying and pasting.

Get an API Token

Log in to the application list, open the Universal Application, and click the copy button to the right of API KEY. For detailed steps, see the complete guide.

Get an Ace Data Cloud API Key

Configuration

Edit the configuration: ~/.codex/config.toml

[mcp_servers.luma]
url = "https://luma.mcp.acedata.cloud/mcp"
type = "http"

http_headers = { "Authorization" = "Bearer 你的Token" }

After saving, the tools will load automatically when the next codex session starts.

Usage Examples

Use Luma to generate a 5-second video: a lighthouse on the sea at night, with waves crashing

Turn this product image (link xxx) into a 360-degree rotating showcase video

Extend the previous 5-second video to 10 seconds, keeping the camera style

Tools

Tool Description
luma_generate_video Text-to-video / image-to-video / video extension