luma-mcp-server
Luma MCP Server is an integration of Luma AI's video generation capabilities, offering tools to create and manipulate videos through a Model Context Protocol server. It includes features like generating videos from text, extending existing videos, and interpolating between video frames.
Luma MCP Server
Luma MCP Server provides the video generation capabilities of Luma AI as a Model Context Protocol (MCP) server. It offers features to generate videos from text and images, extend existing videos, and interpolate smoothly between video frames.
Project Structure
- Types: Defines types and schemas for input validation.
- Services: Contains business logic.
- Handlers: Manages request handling tools.
- Clients: Handles external API communication.
- Utils: Provides utility functions like error handling.
- Config: Centralized server configuration management.
Installation
To install, run the following command:
npm install @sunwood-ai-labs/luma-mcp-server
Environment Setup
- Obtain an API key from the Luma AI Developer Portal.
- Set your environment variables.
Available Tools
- generate_video: Create videos using text prompts.
- generate_video_from_image: Generate videos using an image as the starting frame.
- extend_video: Extend existing videos.
- interpolate_videos: Smoothly transition between two videos.
Developer Information
- Architecture: Description of various directories such as types, handlers, clients, and utils.
- Error Handling: Systematic error handling mechanisms with detailed logging.
Contribution
Fork the repository, create a new branch, commit your changes, push the branch, and create a pull request.
License
Released under the MIT License. See LICENSE for more details.