fal.ai MCP Server

Access 600+ AI models for image, video, music, and speech generation

README.md

fal.ai MCP Server

MCP (Model Context Protocol) server for fal.ai — access 600+ AI models for image generation, video creation, speech-to-text, text-to-speech, music generation, and more directly from Claude.

Tools

Tool Description
generate_image Text-to-image generation (FLUX, Recraft, etc.)
edit_image Image editing, inpainting, upscaling
generate_video Text/image-to-video (Kling, Veo, Sora, LTX)
speech_to_text Audio transcription with Whisper
text_to_speech Text-to-speech synthesis
generate_music Music generation from text prompts
search_models Search for available models on fal.ai
run_model Run any fal.ai model with custom parameters

Setup

1. Get a fal.ai API Key

Sign up at fal.ai and get your API key from the dashboard.

2. Configure Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "fal-ai": {
      "command": "npx",
      "args": ["-y", "fal-ai-mcp"],
      "env": {
        "FAL_KEY": "your-fal-api-key"
      }
    }
  }
}

3. Configure Claude Code

claude mcp add fal-ai -e FAL_KEY=your-fal-api-key -- npx -y fal-ai-mcp

Alternative: Install from source

git clone https://github.com/enescanguven/fal-mcp.git
cd fal-mcp
npm install
npm run build
claude mcp add fal-ai -e FAL_KEY=your-fal-api-key -- node dist/index.js

Usage Examples

Generate an Image

"Generate a photorealistic image of a sunset over mountains"

Uses fal-ai/flux/schnell by default. You can specify other models:

"Generate an image of a cat using the fal-ai/flux-pro/v1.1 model"

Edit an Image

"Upscale this image: https://example.com/photo.jpg"

Generate a Video

"Create a video of waves crashing on a beach"

Transcribe Audio

"Transcribe this audio file: https://example.com/recording.mp3"

Text to Speech

"Convert this text to speech: Hello, welcome to fal.ai!"

Generate Music

"Generate a 30-second lo-fi hip hop beat"

Run Any Model

"Run the fal-ai/nano-banana-2 model with prompt 'a beautiful landscape'"

Available Models

fal.ai hosts 600+ models. Some popular ones:

Image Generation:

  • fal-ai/flux/schnell — Fast FLUX generation (default)
  • fal-ai/flux/dev — FLUX dev model
  • fal-ai/flux-pro/v1.1 — FLUX Pro
  • fal-ai/recraft/v4/pro/text-to-image — Recraft V4

Video Generation:

  • fal-ai/kling-video/v3/pro/text-to-video — Kling Video V3
  • fal-ai/veo3.1 — Google Veo 3.1
  • fal-ai/sora-2 — Sora 2

Audio:

  • fal-ai/whisper — Speech-to-text
  • fal-ai/chatterbox/text-to-speech — Text-to-speech

Browse all models at fal.ai/models.

License

MIT

Tools 8

generate_imageText-to-image generation (FLUX, Recraft, etc.)
edit_imageImage editing, inpainting, upscaling
generate_videoText/image-to-video (Kling, Veo, Sora, LTX)
speech_to_textAudio transcription with Whisper
text_to_speechText-to-speech synthesis
generate_musicMusic generation from text prompts
search_modelsSearch for available models on fal.ai
run_modelRun any fal.ai model with custom parameters

Environment Variables

FAL_KEYrequiredYour fal.ai API key obtained from the dashboard

Try it

Generate a photorealistic image of a sunset over mountains
Create a video of waves crashing on a beach
Transcribe this audio file: https://example.com/recording.mp3
Convert this text to speech: Hello, welcome to fal.ai!
Generate a 30-second lo-fi hip hop beat

Frequently Asked Questions

What are the key features of fal.ai MCP Server?

Access to over 600 AI models on fal.ai. Support for high-performance image generation models like FLUX and Recraft. Video generation capabilities including Kling, Veo, and Sora. Audio processing tools for speech-to-text and text-to-speech. Ability to search and run any model available on the fal.ai platform.

What can I use fal.ai MCP Server for?

Rapidly generating visual assets for creative projects directly in the chat. Automating the transcription of audio recordings or meetings. Creating custom text-to-speech audio for presentations or content. Experimenting with different AI video models for prototyping. Generating background music or sound effects for multimedia projects.

How do I install fal.ai MCP Server?

Install fal.ai MCP Server by running: npx -y fal-ai-mcp

What MCP clients work with fal.ai MCP Server?

fal.ai MCP Server 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.ai MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare