Skip to main content
fal provides an MCP server that gives any compatible AI assistant direct access to the full fal platform: search models, check schemas, run inference, upload files, and browse documentation — all without leaving your editor. Your assistant becomes an expert in every fal model and can generate working code on the first try. The server is hosted at mcp.fal.ai/mcp and works with any client that supports the Model Context Protocol, including Claude Code, Claude Desktop, Cursor, Windsurf, and more. Every request uses your own API key — nothing is stored on the server.
You need a fal API key to use the MCP server. If you don’t have one yet, create one here.

Setup

Run this command in your terminal:
That’s it. Claude Code will now have access to all fal tools.Claude Code MCP setup

Available Tools

The MCP server exposes 9 tools organized in three categories. Your AI assistant picks the right tool automatically based on what you ask.

Discovery

Execution

Utility


Examples

Here are concrete examples of what you can ask your AI assistant once the MCP server is connected.

Generate an image

“Generate a photorealistic image of a mountain lake at golden hour using fal”
The assistant will:
  1. Use search_models to find image generation models
  2. Use get_model_schema to check the parameters for the chosen model
  3. Use run_model to generate the image
  4. Return the image URL

Generate a video from an image

“Take this image and turn it into a 5-second cinematic video”
The assistant will:
  1. Use upload_file to upload your image to fal’s CDN
  2. Use recommend_model to find the best image-to-video model
  3. Use submit_job (since video generation takes longer)
  4. Use check_job to poll for the result

Check pricing before running

“How much does it cost to generate a video with Kling 3.0?”
The assistant will call get_pricing with fal-ai/kling-video/v3/pro/image-to-video and return the per-run cost.

Find the right model

“What’s the best model for removing backgrounds from product photos?”
The assistant will call recommend_model with your task description and return a ranked list of models with tips on how to use them.

Search the docs

“How do I set up webhooks with fal?”
The assistant will call search_docs and return relevant guides and code examples from the fal documentation.

How It Works

The MCP server is a stateless API hosted on Vercel. Each request is fully isolated:
  1. Your AI assistant sends a request to mcp.fal.ai/mcp with your API key
  2. The server calls the fal Platform API on your behalf
  3. Results are returned to your assistant, which formats them for you
Your API key is sent per-request in the Authorization header and is never stored. The server has no sessions, no state, and no access to anything beyond what the fal public API provides with your key.
The MCP server uses the same Model APIs you would call directly with the fal client SDK. Anything you can do with the SDK, your AI assistant can do through MCP.

Tool Reference

search_models

Search fal’s model catalog by keyword, category, or both. Parameters: Example response:

get_model_schema

Get the full input/output schema for a specific model. Use this before run_model to understand what parameters are accepted. Parameters:

run_model

Run any fal model. Submits to the queue, polls until complete, and returns the result. Parameters: Example:
For long-running models (video, 3D, training), use submit_job + check_job instead to avoid timeouts.

submit_job

Submit a job without waiting for the result. Returns immediately with a request_id you can use with check_job. Parameters:

check_job

Check the status of a running job, fetch the result, or cancel it. Parameters:

upload_file

Upload a file to fal’s CDN so it can be used as input to models. Accepts a URL to a remote file. Parameters: Returns a cdn_url that you can pass to any model parameter that accepts a URL (e.g. image_url, audio_url).

get_pricing

Get the cost of running a model. Parameters:

recommend_model

Describe what you want to create and get model recommendations ranked by popularity. Parameters:

search_docs

Search the fal documentation for guides, API references, and code examples. Parameters:

FAQ

All 1,000+ models in the fal catalog — image generation, video, audio, speech, 3D, LLMs, and more. Use search_models or recommend_model to find what you need.