Fal MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "FAL_KEY=${FAL_KEY}" fal-mcp -- uv run --directory /path/to/fal-mcp python server.py
Required:FAL_KEY
README.md

Integrates fal.ai's image generation and editing capabilities into MCP

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
generate_image Text-to-image generation with configurable model, size, steps, and guidance
generate_with_reference Image generation guided by a style/content reference image
generate_with_lora Image generation with a LoRA model applied
edit_image Edit an existing image using natural language instructions (FLUX Kontext)
raw_generate Submit arbitrary requests for advanced configurations (ControlNet, IP-Adapter, multi-LoRA)
list_outputs List all saved images in the output directory

Supported models

  • fal-ai/flux/dev — high quality (default)
  • fal-ai/flux/schnell — fast, 1-4 steps
  • fal-ai/flux-pro/v1.1 — professional, up to 2K resolution
  • fal-ai/flux-general — supports LoRA, ControlNet, IP-Adapter
  • fal-ai/recraft/v3/text-to-image — illustration style
  • fal-ai/flux-pro/kontext — image editing

Setup

  1. Get an API key from fal.ai
  2. Set the FAL_KEY environment variable (or add it to a .env.local file 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

Tools (6)

generate_imageText-to-image generation with configurable model, size, steps, and guidance
generate_with_referenceImage generation guided by a style/content reference image
generate_with_loraImage generation with a LoRA model applied
edit_imageEdit an existing image using natural language instructions
raw_generateSubmit arbitrary requests for advanced configurations
list_outputsList all saved images in the output directory

Environment Variables

FAL_KEYrequiredAPI key from fal.ai

Configuration

claude_desktop_config.json
{"mcpServers": {"fal": {"command": "uv", "args": ["run", "--directory", "/path/to/fal-mcp", "python", "server.py"]}}}

Try it

Generate a high-quality image of a futuristic city using the flux dev model.
Edit the image I just generated to change the sky color to sunset orange.
Create an image of a cat in a cyberpunk style using the LoRA model.
List all the images I have generated so far.

Frequently Asked Questions

What are the key features of Fal MCP?

Text-to-image generation using various FLUX models. Image editing via natural language instructions. Support for LoRA models and style references. Advanced configuration support for ControlNet and IP-Adapter. Local output management and listing.

What can I use Fal MCP for?

Generating custom assets for design projects directly within the Claude interface. Iteratively editing AI-generated images using natural language feedback. Applying specific artistic styles to images using LoRA models. Managing and retrieving generated image files from a local directory.

How do I install Fal MCP?

Install Fal MCP by running: uv run --directory /path/to/fal-mcp python server.py

What MCP clients work with Fal MCP?

Fal MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Fal MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare