Skip to main content
Glama

Fal.ai MCP Server

An MCP (Model Context Protocol) server that provides seamless integration with Fal.ai's image generation models and workflows.

Features

  • 🎨 Image Generation - Access 600+ Fal.ai models including Flux, Stable Diffusion, and more

  • 🔄 Workflow Support - Run pre-built pipelines like sdxl-sticker

  • 🚀 Streaming - Real-time progress updates for long-running operations

  • 📦 Simple API - Unified interface for all models and workflows

  • Queue Management - Built-in status tracking for async operations

Related MCP server: fal.ai MCP Server

Installation

Quick Install (npm)

npm install -g fal-mcp-server

From Source

git clone https://github.com/yourusername/fal-mcp-server.git
cd fal-mcp-server
npm install
npm run build
npm link

Setup

1. Get your Fal.ai API Key

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

2. Add to Claude Code

claude mcp add fal --env "FAL_KEY=your-api-key-here" -- npx -y fal-mcp-server

3. Verify Connection

claude mcp list

You should see:

fal: npx -y fal-mcp-server - ✓ Connected

Available Tools

generate_image

Generate images using any Fal.ai model.

Parameters:

  • prompt (required): Text description of the image

  • model: Model ID (default: "fal-ai/flux/schnell")

  • image_size: "square", "landscape_4_3", or "portrait_3_4"

  • num_images: 1-4 images

  • seed: For reproducible generation

Example:

{
  "prompt": "a cyberpunk cat in neon city",
  "model": "fal-ai/flux/dev",
  "image_size": "landscape_4_3",
  "num_images": 2
}

run_model

Run any Fal.ai model with custom parameters.

Parameters:

  • model_id (required): The model endpoint ID

  • input (required): Model-specific input parameters

  • stream: Enable streaming for real-time updates

Example:

{
  "model_id": "fal-ai/stable-diffusion-v3-medium",
  "input": {
    "prompt": "professional portrait photo",
    "negative_prompt": "low quality, blurry"
  }
}

run_workflow

Execute Fal.ai workflows (multi-step pipelines).

Parameters:

  • workflow_id (required): The workflow ID

  • input (required): Workflow input parameters

  • stream: Stream workflow events

Example:

{
  "workflow_id": "workflows/fal-ai/sdxl-sticker",
  "input": {
    "prompt": "cute puppy mascot"
  }
}

Get a list of popular Fal.ai models.

check_status

Check the status of an async request.

Parameters:

  • request_id (required): The request ID to check

  • fal-ai/flux/schnell - Fastest Flux model (4 steps)

  • fal-ai/flux/dev - High quality Flux model

  • fal-ai/flux-pro - Professional Flux model

  • fal-ai/fast-sdxl - Fast Stable Diffusion XL

  • fal-ai/stable-diffusion-v3-medium - Latest SD3

  • fal-ai/recraft-v3 - Artistic style generation

Workflows

  • workflows/fal-ai/sdxl-sticker - Generate → Remove BG → Sticker

Usage in Claude Code

Once installed, you can use natural language to interact with Fal.ai:

  • "Generate a cyberpunk cityscape using Flux"

  • "Create a sticker of a cute robot"

  • "Run the sdxl-sticker workflow with a puppy prompt"

  • "List available image models"

Environment Variables

  • FAL_KEY (required): Your Fal.ai API key

Development

# Install dependencies
npm install

# Build TypeScript
npm run build

# Watch mode for development
npm run watch

# Run locally
FAL_KEY=your-key node dist/index.js

License

MIT

Contributing

Contributions welcome! Please submit PRs to improve the server.

Support

Available Tools

5 tools
check_statusC

Check the status of a Fal.ai request

ParametersJSON Schema
NameRequiredDescriptionDefault
request_idYesThe request ID to check

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool checks status but doesn't explain what 'status' entails (e.g., pending, completed, failed), whether it's a read-only operation, potential rate limits, or error handling. This leaves significant gaps for an agent to understand how to use it effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence that efficiently conveys the core purpose without unnecessary words. It is front-loaded with the essential information, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't cover what the tool returns (e.g., status details, error messages), behavioral aspects like idempotency or side effects, or how it integrates with sibling tools. For a status-checking tool in a workflow context, this leaves critical information missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'request_id' parameter clearly documented. The description adds no additional meaning beyond this, such as format examples or context about where to obtain the request ID. Given the high schema coverage, a baseline score of 3 is appropriate as the schema handles the parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Check') and the resource ('status of a Fal.ai request'), making the purpose understandable. However, it doesn't differentiate this tool from potential siblings like 'run_model' or 'run_workflow' that might also involve status checking, leaving room for ambiguity in a multi-tool context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a request ID from another operation), exclusions, or how it relates to sibling tools like 'run_model', which might handle status as part of its execution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_imageC

Generate an image using Fal.ai models like Flux or Stable Diffusion

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesText description of the image to generate
modelNoModel to use (default: fal-ai/flux/schnell)fal-ai/flux/schnell
image_sizeNoImage size presetlandscape_4_3
num_imagesNoNumber of images to generate (1-4)
seedNoSeed for reproducible generation

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions using Fal.ai models but doesn't describe what happens during generation (e.g., processing time, cost implications, rate limits, authentication needs, or what happens if generation fails). For a tool that likely involves external API calls and resource consumption, this is a significant gap in behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point with no wasted words. It's appropriately sized for a tool with good schema documentation. However, it could be slightly more structured by front-loading the core purpose more explicitly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an image generation tool with 5 parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns (image data, URLs, metadata), doesn't mention potential costs or limitations, and provides minimal behavioral context. Given the complexity of image generation and lack of structured metadata, the description should do more to help agents understand the tool's behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly with descriptions, defaults, and constraints. The description adds no additional parameter semantics beyond what's in the schema. The baseline score of 3 is appropriate when the schema does all the parameter documentation work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'generate' and resource 'image', specifying it uses Fal.ai models like Flux or Stable Diffusion. It distinguishes from siblings like 'check_status' or 'list_popular_models' by focusing on image generation rather than status checking or listing. However, it doesn't explicitly differentiate from 'run_model' which might also generate images, leaving some ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'run_model' or 'run_workflow'. It mentions specific models (Flux, Stable Diffusion) but doesn't explain why to choose this tool over others for image generation tasks. There are no explicit when/when-not instructions or prerequisites stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_modelC

Run any Fal.ai model with custom parameters

ParametersJSON Schema
NameRequiredDescriptionDefault
model_idYesThe Fal.ai model endpoint ID
inputYesInput parameters for the model
streamNoWhether to stream results

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but doesn't mention critical aspects like authentication requirements, rate limits, error handling, or whether this is a synchronous/asynchronous operation. The mention of 'custom parameters' is vague about constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at just 8 words with zero wasted language. It's front-loaded with the core purpose and efficiently communicates the essential function without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters, no annotations, no output schema, and nested objects in the input, the description is insufficient. It doesn't explain what kind of response to expect, error conditions, or important behavioral aspects needed for proper tool invocation in a complex AI model execution context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond what's in the schema - it mentions 'custom parameters' which aligns with the 'input' parameter but doesn't provide additional context about parameter formats or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Run') and resource ('any Fal.ai model'), specifying it's for models with custom parameters. However, it doesn't distinguish this from sibling tools like 'run_workflow' or 'generate_image', which might have overlapping purposes in the same AI platform context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'run_workflow' or 'generate_image'. It mentions 'any Fal.ai model' but doesn't clarify if this is the primary tool for model execution or when other tools might be more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_workflowC

Run a Fal.ai workflow (e.g., sdxl-sticker pipeline)

ParametersJSON Schema
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID
inputYesInput parameters for the workflow
streamNoWhether to stream workflow events

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Run') but doesn't mention whether this is a read or write operation, what permissions are needed, if it's rate-limited, or what happens upon execution (e.g., asynchronous processing, costs). The example adds some context but lacks critical behavioral details for a tool with potential side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose with a clarifying example. There's no wasted verbiage or redundant information, making it easy for an agent to parse quickly and understand the tool's intent without unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of running a workflow (likely involving asynchronous execution, side effects, or costs), the lack of annotations and output schema means the description should do more. It doesn't cover behavioral aspects like error handling, response format, or dependencies, leaving significant gaps for an agent to use this tool effectively in context with its siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents the three parameters. The description doesn't add any semantic details beyond what's in the schema—it doesn't explain what a 'workflow ID' entails, what typical 'input parameters' might be, or when to use 'stream'. With high schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Run') and resource ('a Fal.ai workflow'), with a specific example ('sdxl-sticker pipeline') that helps illustrate the type of workflow. However, it doesn't explicitly differentiate this tool from sibling tools like 'run_model' or 'generate_image', which might have overlapping functionality in AI image generation contexts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'run_model' or 'generate_image'. It mentions an example workflow but doesn't specify prerequisites, constraints, or scenarios where this tool is preferred over siblings, leaving the agent to infer usage from context alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3.3/5.0
Disambiguation3/5

The tools have some overlap that could cause confusion, particularly between 'generate_image', 'run_model', and 'run_workflow'. While 'generate_image' is specific to image generation models, 'run_model' is a generic version that could handle the same task, and 'run_workflow' might also involve image generation. However, the descriptions provide enough context to differentiate them in most cases.

Naming Consistency4/5

The naming follows a consistent verb_noun pattern with snake_case throughout (e.g., check_status, generate_image, list_popular_models). The only minor deviation is that 'run_model' and 'run_workflow' use 'run' while others use more specific verbs like 'check' or 'generate', but this is still readable and logical.

Tool Count5/5

With 5 tools, this server is well-scoped for interacting with Fal.ai services. Each tool serves a distinct purpose in the workflow, from checking status and listing models to generating images and running custom models or workflows, making the count appropriate and efficient.

Completeness4/5

The toolset covers core operations for Fal.ai, including status checks, model listing, image generation, and running custom models or workflows. A minor gap is the lack of tools for managing or deleting requests, but agents can likely work around this given the server's focus on execution and monitoring.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with fal.ai AI models through MCP, supporting model discovery, content generation, queue management, and file uploads to the fal.ai platform.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides access to over 600 AI models on fal.ai for generating and editing images, videos, music, and speech directly within Claude. It supports high-performance models like FLUX, Kling, and Whisper for various creative and analytical tasks.
    578
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gravicity-archive/fal-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server