Offers seamless integration with Node.js environments, allowing the MCP server to run in any Node.js 18+ environment with proper platform detection and resource management.
Leverages TypeScript 5.0+ for type-safe development and integration, ensuring robust API interactions with the FAL AI platform.
FAL Image/Video MCP Server 🎨🎬
High-performance MCP server for FAL AI image and video generation with automatic downloads
Seamless bridge between FAL AI's powerful image and video generation capabilities and MCP-compatible clients like Claude. All generated content is automatically downloaded to your local machine while providing public URLs, data URLs, and local file paths.
Make Images
Make Videos
🚀 Claude Desktop Setup
Quick Setup
- Get your FAL API key from fal.ai
- Add to Claude Desktop configuration:
Configuration File Locations
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Optimized for Claude Desktop
Environment Variables:
FAL_KEY
(required): Your FAL AI API keyDOWNLOAD_PATH
(optional): Custom download directory (defaults to ~/Downloads)ENABLE_DATA_URLS
(optional): Enable/disable data URLs (default: false, optimized for Claude Desktop)MAX_DATA_URL_SIZE
(optional): Max file size for data URLs in bytes (default: 2MB)AUTOOPEN
(optional): Automatically open generated files with default application (default: true, cross-platform)
Getting Your FAL API Key
- Visit fal.ai and create an account
- Navigate to your API keys section
- Generate a new API key
- Replace
YOUR-FAL-AI-API-KEY
with your actual key - Restart Claude Desktop
📥 Automatic Downloads
All generated content is automatically saved to your local machine!
Default Behavior:
- Images: Downloaded as
.jpg
files - Videos: Downloaded as
.mp4
files - Location:
~/Downloads
folder (or customDOWNLOAD_PATH
) - Naming:
fal_{model}_{timestamp}_{index}.{ext}
🎯 Claude Desktop Optimized Response:
Why this works better for Claude Desktop:
- ✅ Local file paths allow Claude to directly access downloaded images
- ✅ No large data URLs that overwhelm the context
- ✅ Auto-open files instantly display generated content in default applications
- ✅ Public URLs available for sharing if needed
- ✅ Size limits prevent context overflow
✨ Features
Category | Features |
---|---|
🎨 Image Generation | 8 curated models including Imagen 4, FLUX Kontext Pro, Ideogram V3 |
🎬 Video Generation | 7 text-to-video models including Veo 3, Kling 2.1 Master, Pixverse V4.5 |
🔄 Image-to-Video | 6 image-to-video models for animating static images |
📥 Auto Downloads | All content automatically saved locally with custom path support |
🔗 Triple URL Support | Public URLs, Data URLs, and Local file paths |
🚀 Universal Execution | Run any FAL model beyond the curated registry |
🌐 Multi-Transport | stdio (Claude Desktop) + HTTP/SSE (Smithery/Web) |
🔐 Lazy Authentication | Discover tools without API key, authenticate on use |
⚡ Performance | TypeScript implementation, async operations, error handling |
🚀 Version History
Version 1.0.0
- ✅ Initial release with FAL AI integration
- ✅ Image generation with Flux models
- ✅ Video generation with Minimax
- ✅ Data URL conversion for MCP compatibility
- ✅ TypeScript support
- ✅ NPX deployment ready
Coming Soon
- 🔜 Additional FAL models
- 🔜 Batch processing
- 🔜 Enhanced error handling
- 🔜 Performance optimizations
🏗️ Technical Architecture
Component | Technology | Purpose |
---|---|---|
Backend | TypeScript + Node.js | Core server implementation |
AI Client | @fal-ai/client | FAL API integration |
MCP SDK | @modelcontextprotocol/sdk | MCP protocol compliance |
Transport | stdio / HTTP + SSE | Multi-transport communication |
Build System | TypeScript Compiler | Production builds |
Deployment | npm / Docker / Smithery | Multiple deployment options |
📖 Usage
Available Tools
🎨 Image Generation Models (8 Available)
The server dynamically loads the latest available models from FAL AI. Current models include:
imagen4
- Imagen 4
Google's latest text-to-image model with superior quality.
flux_kontext
- FLUX Kontext Pro
State-of-the-art prompt adherence and typography generation.
ideogram_v3
- Ideogram V3
Advanced typography and realistic outputs.
recraft_v3
- Recraft V3
Professional design and illustration capabilities.
Other Available Models:
stable_diffusion_35
- Stable Diffusion 3.5 Largeflux_dev
- FLUX Dev (High-quality 12B parameter model)hidream
- HiDream I1 (High-resolution generation)janus
- Janus (Multimodal understanding)
🎬 Image-to-Video Models (6 Available)
kling_master_image
- Kling 2.1 Master I2V
Premium image-to-video conversion with motion fluidity.
pixverse_image
- Pixverse V4.5 I2V
Advanced image-to-video with high quality output.
wan_pro_image
- Wan Pro I2V
Professional image animation with effects.
Other Available Models:
hunyuan_image
- Hunyuan I2V (Open-source)vidu_image
- Vidu I2V (High-quality animation)luma_ray2_image
- Luma Ray 2 I2V (Latest Luma)
📹 Text-to-Video Models (7 Available)
veo3
- Veo 3
Google DeepMind's latest with speech and audio capabilities.
kling_master_text
- Kling 2.1 Master
Premium text-to-video with motion fluidity and cinematic quality.
pixverse_text
- Pixverse V4.5
Advanced text-to-video generation with precise control.
luma_ray2
- Luma Ray 2
Latest Luma Dream Machine with enhanced capabilities.
Other Available Models:
magi
- Magi (Creative video generation)wan_pro_text
- Wan Pro (Professional video effects)vidu_text
- Vidu Q1 (High-quality text-to-video)
🔄 Image-to-Video Workflow
Yes! You can absolutely pass generated images back to Claude and use them for video generation. Here's how:
- Generate an image using any image model:
- Use the returned image URL in any image-to-video model:
🔧 Advanced Model System
This MCP server features comprehensive model access:
📋 Model Discovery
Use list_available_models
to see all models in the registry:
🚀 Universal Model Execution
Use execute_custom_model
to run ANY FAL endpoint beyond our registry:
✨ Smart Features:
- ✅ 21 curated models from actual FAL AI platform
- ✅ Universal execution for any FAL endpoint
- ✅ Automatic downloading to ~/Downloads (configurable)
- ✅ Triple URL support (public + data + local file URLs)
- ✅ Automatic categorization by type
- ✅ Dynamic tool generation for each model
- ✅ Model-specific parameter handling
🎯 No Limitations:
- Want to use a model not in our registry? Use
execute_custom_model
- Need to see all available models? Use
list_available_models
- Want both curated experience AND full flexibility? You got it!
The MCP server provides both public URLs and data URLs for maximum compatibility with Claude and other clients.
Response Format
Both tools return structured JSON with:
- Public URL: Direct link to the generated content
- Data URL: Base64-encoded data URL for direct embedding
- Metadata: Generation parameters and dimensions
- Claude-compatible format: Ready for immediate use in conversations
Example Response:
🔧 Alternative Installation Methods
🌐 HTTP Server Mode (Standalone Testing)
Start HTTP server for testing or integration:
HTTP Endpoints:
GET /health
- Server health checkGET /mcp
- SSE endpoint for MCP communicationPOST /mcp
- JSON-RPC message handling
Test the server:
🎯 Authentication in HTTP Mode
Lazy Loading Support:
- ✅ Server starts without FAL_KEY (for tool discovery)
- ✅ API key validated only when tools are invoked
- ✅ Clear error messages for missing authentication
Set your FAL_KEY:
Production deployment example:
📱 NPX (One-time use)
🔧 Global Installation
💻 From Source
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🌐 Connect
Created by Matthew Rogers - Bringing AI creativity to MCP clients everywhere! 🚀
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
High-performance MCP server that enables generation of images and videos using FAL AI models with automatic downloads to your local machine.
- 🚀 Claude Desktop Setup
- 📥 Automatic Downloads
- ✨ Features
- 🚀 Version History
- 🏗️ Technical Architecture
- 📖 Usage
- 🎨 Image Generation Models (8 Available)
- 🎬 Image-to-Video Models (6 Available)
- 📹 Text-to-Video Models (7 Available)
- 🔄 Image-to-Video Workflow
- 🔧 Advanced Model System
- 🔧 Alternative Installation Methods
- 📄 License
- 🌐 Connect
Related MCP Servers
- AsecurityFlicenseAqualityA FastMCP server implementation that facilitates resource-based access to AI model inference, focusing on image generation through the Replicate API, with features like real-time updates, webhook integration, and secure API key management.Last updated -1810Python
- -securityFlicense-qualityAn MCP server that allows users to generate, edit, and create variations of images through OpenAI's DALL-E API, supporting both DALL-E 2 and DALL-E 3 models.Last updated -2TypeScript
- AsecurityFlicenseAqualityAn MCP (Model Context Protocol) server that allows generating, editing, and creating variations of images using OpenAI's DALL-E APIs.Last updated -1TypeScript
Recraft AI MCP Serverofficial
-securityAlicense-qualityAn MCP server that integrates with Recraft AI to enable generation and manipulation of high-quality raster and vector images through tools like image generation, editing, vectorization, background removal, and upscaling.Last updated -4551TypeScriptMIT License