AI Video Generator MCP Server
Enables configuration of API keys through environment variables in a .env file for secure credential management.
Provides package management for installing dependencies and running the server through npm commands.
Offers access to Luma Ray2 Flash, an AI model for image-to-video conversion, allowing for video generation from text prompts or images.
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., "@AI Video Generator MCP ServerCreate a 9-second video of a sunset over mountains with Kling model"
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.
AI Video Generator MCP Server
This MCP (Model Context Protocol) server provides tools to generate videos from text prompts and images using AI image generation models.
Compatible Models
Luma Ray2 Flash - Luma's cutting edge image to video conversion model
Kling v1.6 Pro - Kling's high quality image to video conversion model
Related MCP server: Video Edit MCP Server
function
Video generation from text prompts
Video generation with start and/or end images
Control video parameters (aspect ratio, resolution, duration, loop)
Check the generation status
Choosing which AI model to use
install
Clone this repository
Install the dependencies:
npm installCreate a
.envfile and set your FAL.AI API key:FAL_KEY=your_fal_key_hereYou can get the API key from FAL.AI
Building the Server
npm run buildRunning the Server
You can run the server directly:
npm startIntegration with Claude Desktop
To use this server with Claude Desktop, add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"video-generator": {
"command": "node",
"args": ["your_install_path/fal-mcp-server/build/index.js"],
"env": {
"FAL_KEY": "your_fal_key_here"
}
}
}
}Available Tools
generate-video
It uses AI models to generate videos from text prompts and/or images.
Parameters:
prompt(required): A text description of the content of the video you want to generate.image_url(optional): The starting image URL for the video (URL or base64 data URI).end_image_url(optional): The end image URL for the video (URL or base64 data URI).aspect_ratio(default "16:9"): Video aspect ratio ("16:9", "9:16", "4:3", "3:4", "21:9", "9:21")resolution(default "540p"): Video resolution ("540p", "720p", "1080p")duration(default "5s"): video length ("5s", "9s")loop(default false): whether the video should loopmodel(default "luma"): AI model to use ("luma"=Ray2, "kling"=Kling v1.6 Pro)
check-video-status
Check the status of your video generation request.
Parameters:
request_id(required): The request ID to check.model(default "luma"): AI model used for the request ("luma"=Ray2, "kling"=Kling v1.6 Pro)
Claude usage example
猫が毛糸玉で遊んでいる動画を生成してください。縦向きモードでお願いします。Klingモデルを使用してください。Claude calls the generate-video tool with the appropriate parameters and provides the resulting video URL.
Compare Models
Luma Ray2 Flash : Excellent for smooth motion and realistic physics, producing natural results.
Kling v1.6 Pro : Excellent for detailed textures and special effects, producing stylized results.
Depending on the prompt and the desired outcome, different models may work best.
Limitations
Video generation may take some time (especially at higher resolutions)
A valid FAL.AI API key and sufficient credits are required
Higher resolution and longer videos cost more credits
Both models consume FAL.AI credits (prices may vary per model)
troubleshooting
API Key Error
Make sure the FAL_KEY environment variable is set correctly, or you can set it directly in the Claude Desktop configuration file.
Video Generation Error
If an error occurs during video generation, a detailed error message will be logged. Common issues are:
Invalid or expired API key
Insufficient credits on your account
Inappropriate prompts or images
A temporary server-side issue
If the error persists, wait a while and try again or try changing the prompt.
license
MIT
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
- FlicenseNot gradedqualityDmaintenanceA server that provides Luma AI's video generation API as the Model Context Protocol (MCP)3
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables AI assistants to perform comprehensive video and audio editing operations including trimming, effects, overlays, audio processing, and YouTube downloads.25MIT
- AlicenseAqualityAmaintenanceFastMCP server for Google's gemini-omni-flash-preview video model, enabling text-to-video, image-to-video, and video editing with stateful interactions and batch generation.2MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server for AI image and video generation using Midjourney through the AceDataCloud API.MIT
Related MCP Connectors
MCP server for Kling 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/el-el-san/fal-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server