Luma MCP Server
Allows installation of the Luma MCP Server as an npm package for easy integration into projects.
Provides TypeScript type definitions and interfaces for type-safe interaction with the MCP server.
Uses Zod for input validation schemas to ensure properly formatted requests to the Luma AI API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Luma MCP Servergenerate a video of a cat playing piano in a jazz club"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Luma MCP Server
A server that provides Luma AI's video generation API as the Model Context Protocol (MCP)
๐ Overview
Luma MCP Server provides the video generation capabilities of Luma AI as an MCP server, providing the ability to generate videos from text and images, as well as augment and interpolate existing videos.
Related MCP server: AI Video Generator MCP Server
๐๏ธ Project structure
src/
โโโ types/ - ๅๅฎ็พฉ
โ โโโ schemas.ts - ๅ
ฅๅในใญใผใ
โ โโโ types.ts - ๅ
ฑ้ๅๅฎ็พฉ
โโโ services/ - ใใธใในใญใธใใฏ
โโโ handlers/ - ใชใฏใจในใใใณใใฉใผ
โ โโโ tool-handlers.ts
โโโ clients/ - ๅค้จAPIใฏใฉใคใขใณใ
โ โโโ luma-client.ts
โโโ utils/ - ใฆใผใใฃใชใใฃ
โ โโโ error-handler.ts
โโโ config/ - ่จญๅฎ
โ โโโ server-config.ts
โโโ index.ts - ใจใณใใชใผใใคใณใ๐ฆ Installation
npm install @sunwood-ai-labs/luma-mcp-serverโ๏ธ Preferences
Obtaining a Luma API key
Get your API key from the Luma AI Developer Portal .
Setting environment variables
export LUMA_API_KEY=your_api_key_here
๐ ๏ธ Available tools
generate_video
Generate videos from text prompts.
{
name: 'generate_video',
arguments: {
prompt: "A teddy bear in sunglasses playing electric guitar and dancing",
loop: true, // ใชใใทใงใณ
callback_url: "https://your-callback-url.com" // ใชใใทใงใณ
}
}generate_video_from_image
Generate a video using the image as the starting frame.
{
name: 'generate_video_from_image',
arguments: {
prompt: "Low-angle shot of a majestic tiger prowling through a snowy landscape",
image_url: "https://your-image-url.com/start-frame.jpg",
loop: true, // ใชใใทใงใณ
callback_url: "https://your-callback-url.com" // ใชใใทใงใณ
}
}extend_video
Extend an existing video.
{
name: 'extend_video',
arguments: {
prompt: "Continue the dance sequence",
source_generation_id: "existing-video-generation-id",
loop: true, // ใชใใทใงใณ
callback_url: "https://your-callback-url.com" // ใชใใทใงใณ
}
}interpolate_videos
It smoothly interpolates between two videos.
{
name: 'interpolate_videos',
arguments: {
prompt: "Create a smooth transition between the videos",
start_generation_id: "first-video-generation-id",
end_generation_id: "second-video-generation-id",
callback_url: "https://your-callback-url.com" // ใชใใทใงใณ
}
}๐ง Developer Information
architecture
Type definitions (
types/) :schemas.ts: Input validation schema using Zodtypes.ts: Common type definitions and interfaces
handlers/:tool-handlers.ts: MCP tool request handling
Clients (
clients/) :luma-client.ts: Responsible for communication with the Luma AI API
Utilities (
utils/) :error-handler.ts: Unified error handling
Configuration (
config/) :server-config.ts: Centralized server configuration
Error Handling
Unified Error Handling System
Proper mapping to MCP error codes
Detailed error messages and logging
๐ Notes
Please write your prompts in English
Video generation may take some time
Please be aware of API usage restrictions
๐ค Contributions
Fork this repository
Create a new branch (
git checkout -b feature/amazing-feature)Commit the changes (
git commit -m 'โจ feat: Add amazing feature')Push the branch (
git push origin feature/amazing-feature)Create a pull request
๐ License
MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityCmaintenanceCreate videos and images using Luma AI, this MCP server handles all API functionality for Luma Dream Machine from Claude Desktop.107
- AlicenseBqualityFmaintenanceModel Context Protocol server that enables generating videos from text prompts and/or images using AI models (Luma Ray2 Flash and Kling v1.6 Pro) with configurable parameters like aspect ratio, resolution, and duration.23MIT
- AlicenseBqualityDmaintenanceMCP server that exposes Google's Veo2 video generation capabilities, allowing clients to generate videos from text prompts or images.732MIT
- AlicenseNot gradedqualityDmaintenanceAn async video generation MCP server with multi-provider support. Currently in skeleton phase with stub implementations, it will eventually enable video generation through providers like Veo 3.1, Grok Imagine Video, and Sora 2 Pro.MIT
Related MCP Connectors
MCP server for Luma Dream Machine AI video generation
MCP server for Google Veo AI video generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sunwood-ai-labs/luma-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server