Integrating Cursor with Luma MCP
You spent two weeks building a beautiful landing page, and the PM says, "Make a demo video showing the animations and post it on social media." You're at a loss—writing code is fine, but making a video?
No need to film anything. Continue your work in Cursor and tell the AI:
> 生成一段5秒的视频:深色背景下,一个数据仪表盘的图表在缓缓变化,散发着蓝色的光
Luma Dream Machine will generate a short video with cinematic quality. It's ten times faster than recording your screen and adding effects yourself.
¶ Get an API Token
Log in to the application list, open General Application, and click the copy button to the right of API KEY.

If your balance is insufficient, click the "Recharge" button.
One token can be used for all MCP servers; there is no need to apply separately for each service.
¶ Configure Cursor
Create .cursor/mcp.json in your project's root directory:
{
"mcpServers": {
"luma": {
"type": "http",
"url": "https://luma.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的Token"
}
}
}
}
Save the file and restart Cursor. You can then use Luma's video generation capabilities in Agent mode.
¶ Practical Scenarios
A product launch needs animated assets
A static image in the Hero Section is too boring, and you want to add a looping background video:
> 生成一段科技感的抽象视频,深蓝色粒子在缓慢流动,适合做网站背景,循环播放
Set loop: true, and the generated video's beginning and end will connect seamlessly, ready to be embedded directly into the page.
Bring a design mockup to life
The designer gives you a Hero image, and you want to add some motion to it:
> 用这张图片作为参考,生成一段视频,让画面中的云层缓缓移动,光线在变化
luma_generate_video_from_image accepts an image or video as a reference, and the AI generates a video based on the reference content.
Five seconds not enough? Extend it
The video is too short and needs to be extended to 15 seconds:
> 把这个视频续写10秒,保持同样的风格和运镜
luma_extend_video continues generating from the end of the video, keeping the style consistent.
¶ Available Tools
| Tool | Description |
|---|---|
| luma_generate_video | Generate video from text |
| luma_extend_video | Extend a video |
| luma_generate_video_from_image | Generate video from a reference image |
¶ Configuration for Other Editors
- VS Code — Use the same configuration under
serversin.vscode/mcp.json, or install the Ace Data Cloud MCP extension for one-click configuration - Claude Code — Configure via terminal commands; see the Claude Code + Luma MCP tutorial
- Claude Desktop — See the Claude Desktop + Luma MCP tutorial
- JetBrains — Settings → Tools → AI Assistant → MCP, add an HTTP-type Luma service
