fal-mcp
Click on "Deploy 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., "@fal-mcp Generate a cinematic photo of a cyberpunk city in the rain"
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.
fal-mcp
An MCP server that wraps the fal.ai image generation API, giving Claude (or any MCP client) the ability to generate and edit images.
Tools
Tool | Description |
| Text-to-image generation with configurable model, size, steps, and guidance |
| Image generation guided by a style/content reference image |
| Image generation with a LoRA model applied |
| Edit an existing image using natural language instructions (FLUX Kontext) |
| Submit arbitrary requests for advanced configurations (ControlNet, IP-Adapter, multi-LoRA) |
| List all saved images in the output directory |
Related MCP server: Nano-Banana MCP Server
Supported models
fal-ai/flux/dev— high quality (default)fal-ai/flux/schnell— fast, 1-4 stepsfal-ai/flux-pro/v1.1— professional, up to 2K resolutionfal-ai/flux-general— supports LoRA, ControlNet, IP-Adapterfal-ai/recraft/v3/text-to-image— illustration stylefal-ai/flux-pro/kontext— image editing
Setup
Get an API key from fal.ai
Set the
FAL_KEYenvironment variable (or add it to a.env.localfile in the parent directory)
Usage with Claude Code
Add this to your .mcp.json:
{
"mcpServers": {
"fal": {
"command": "uv",
"args": ["run", "--directory", "/path/to/fal-mcp", "python", "server.py"]
}
}
}Dependencies
Python >= 3.11
FastMCP v2
httpx
python-dotenv
Available Tools
6 toolsedit_imageB
Edit an existing image using natural language instructions (FLUX Kontext).
Pass a reference image and describe the changes you want in the prompt. Great for iterating on generated images.
Args: image_url: URL of the image to edit. prompt: Description of the desired changes.
Inputs: prompt (required), image_url (required), model, seed, +2 more. Returns: object
generate_imageA
Generate images from a text prompt using fal.ai.
Common models:
fal-ai/flux/dev (high quality, 28 steps)
fal-ai/flux/schnell (fast, 1-4 steps)
fal-ai/flux-pro/v1.1 (professional, up to 2K)
fal-ai/flux-general (supports LoRA, ControlNet, IP-Adapter)
fal-ai/recraft/v3/text-to-image (illustration style)
Returns paths to saved images and metadata.
Inputs: prompt (required), model, width, height, +6 more. Returns: object
generate_with_loraC
Generate images with a LoRA model applied.
Args: lora_url: URL to the LoRA safetensors file (e.g. from HuggingFace). lora_scale: Strength of the LoRA effect (0.0-2.0, default 1.0).
Inputs: prompt (required), lora_url (required), lora_scale, model, +8 more. Returns: object
generate_with_referenceC
Generate images with a style/content reference image.
Uses the reference_image feature of flux-general to guide generation toward a similar style or content as the reference.
Args: reference_image_url: URL of the reference image for style guidance. reference_strength: How strongly to follow the reference (0.0-1.0).
Inputs: prompt (required), reference_image_url (required), reference_strength, model, +8 more. Returns: object
list_outputsB
List all images previously saved in the output directory.
Inputs: no named parameters. Returns: object
raw_generateA
Submit an arbitrary request to any fal.ai model endpoint.
Use this for advanced configurations (ControlNet, IP-Adapter, multi-LoRA, custom parameters) that aren't covered by the other tools.
Args: model: The fal.ai model endpoint ID (e.g. "fal-ai/flux-general"). body: The full JSON request body to send to the model.
Inputs: model (required), body (required), filename. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes: edit_image modifies existing images, generate_image creates from text, generate_with_lora adds LoRA models, generate_with_reference uses style guidance, list_outputs enumerates saved images, and raw_generate handles advanced configurations. However, generate_image and generate_with_lora could potentially overlap in functionality if LoRA is used for generation, but their descriptions clarify the distinction.
Tool names follow a consistent verb-based snake_case pattern (e.g., edit_image, generate_image, list_outputs), which is clear and predictable. The only minor deviation is raw_generate, which uses 'raw' as a prefix instead of a verb, but it still fits the overall naming style without causing confusion.
With 6 tools, the server is well-scoped for image generation and editing tasks. Each tool serves a specific role, from basic generation to advanced configurations, and the count is neither too sparse nor overwhelming, fitting typical MCP server ranges for this domain.
The toolset covers core image generation workflows: creation (generate_image), editing (edit_image), style control (generate_with_reference), model customization (generate_with_lora), and advanced options (raw_generate), plus management (list_outputs). A minor gap is the lack of a delete or manage tool for removing saved images, but agents can work around this.
Maintenance
Related MCP Connectors
Generate AI images and videos from any compatible MCP client.
MCP server for Flux AI image generation
MCP server for Qwen Image 3 AI image generation
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Related MCP Servers
- AlicenseCqualityDmaintenanceHigh-performance MCP server that enables generation of images and videos using FAL AI models with automatic downloads to your local machine.24123 npm8MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. It allows users to create new images from text, modify existing files, and perform iterative edits through natural language prompts.61,729 npmMIT
- AlicenseBqualityDmaintenanceAn MCP server that integrates with fal.ai to provide AI agents with tools for image generation, text processing, audio synthesis, and model management via a unified interface.829 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets users and autonomous agents generate high-quality images in a chosen artistic style by automatically discovering and applying open-source LoRA models.1MIT