LF 

luminarylane/fal-mcp-server 是从 https://github.com/luminarylane/fal-mcp-server. 导入的 MCP 服务器候选
概览
luminarylane/fal-mcp-server 是从 https://github.com/luminarylane/fal-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,使 Claude Desktop(及其他 MCP 客户端)能够使用 Fal.ai 模型生成图像、视频、音乐和音频。
✨ 特色
🚀 表演
- 原生异步API - 使用 fal_client.run_async() 以实现最佳性能
- 队列支持 - 长时间运行的任务(视频/音乐)使用队列 API 进行进度更新
- 非阻塞 - 所有操作都是真正的异步操作
🌐 交通模式(新!)
- STDIO - 传统模型上下文协议通信
- HTTP/SSE - 通过服务器发送事件进行基于网页的访问
- 双模式 - 同时运行两种传输
🎨 媒体生成(18个工具)
图像生成:
- 🖼️ generate_image - 从文本提示(Flux、SDXL 等)创建图片
- 🎯 generate_image_structured - 对构图、光线、主题的细致控制
- 🔄 generate_image_from_image - 通过样式转移转换现有图像
图像编辑:
- ✂️ remove_background - 从图像中移除背景(透明PNG)
- 🔍 upscale_image - 在保持画质的同时进行2倍或4倍放大图像
- ✏️ edit_image - 使用自然语言指令编辑图像
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
🎨 Fal.ai MCP Server
A Model Context Protocol (MCP) server that enables Claude Desktop (and other MCP clients) to generate images, videos, music, and audio using Fal.ai models.
✨ Features
🚀 Performance
- Native Async API - Uses fal_client.run_async() for optimal performance
- Queue Support - Long-running tasks (video/music) use queue API with progress updates
- Non-blocking - All operations are truly asynchronous
🌐 Transport Modes (New!)
- STDIO - Traditional Model Context Protocol communication
- HTTP/SSE - Web-based access via Server-Sent Events
- Dual Mode - Run both transports simultaneously
🎨 Media Generation (18 Tools)
Image Generation:
- 🖼️ generate_image - Create images from text prompts (Flux, SDXL, etc.)
- 🎯 generate_image_structured - Fine-grained control over composition, lighting, subjects
- 🔄 generate_image_from_image - Transform existing images with style transfer
Image Editing:
- ✂️ remove_background - Remove backgrounds from images (transparent PNG)
- 🔍 upscale_image - Upscale images 2x or 4x while preserving quality
- ✏️ edit_image - Edit images using natural language instructions
- 🎭 inpaint_image - Edit specific regions using masks
- 📐 resize_image - Smart resize for social media (Instagram, YouTube, TikTok, etc.)
- 🏷️ compose_images - Overlay images (watermarks, logos) with precise positioning
Video Tools:
- 🎬 generate_video - Text-to-video and image-to-video generation
- 📹 generate_video_from_image - Animate images into videos
- 🔀 generate_video_from_video - Video restyling and motion transfer
Audio Tools:
- 🎵 generate_music - Create instrumental music or songs with vocals
Utility Tools:
安装
uvx --from fal-mcp-server fal-mcp配置
{
"mcpServers": {
"fal-ai": {
"command": "uvx",
"args": ["--from", "fal-mcp-server", "fal-mcp"],
"env": {
"FAL_KEY": "your-fal-api-key"
}
}
}
}