fal.ai MCP Server

fal.ai MCP Server

mcp-fal•byam0y

A Model Context Protocol server that lets MCP clients interact with fal.ai models and services, including model discovery, schema lookup, content generation and queue management.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Lists available fal.ai models with optional pagination and searches for models by keywords.
  • •Retrieves the OpenAPI schema for a specified fal.ai model.
  • •Generates content using any fal.ai model, supporting direct and queued execution.
  • •Manages queued requests by checking status, retrieving results and cancelling, and uploads files to the fal.ai CDN.

BEST FOR

  • •Clients that need to discover and inspect fal.ai models and their schemas before use.
  • •Workflows that generate content through fal.ai models and track long-running queued requests.

ABOUT MCP-FAL

fal.ai MCP Server is cataloged as an MCP server attributed to am0y. A Model Context Protocol server that lets MCP clients interact with fal.ai models and services, including model discovery, schema lookup, content generation and queue management. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for fal.ai MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What credentials does the server require?

It requires a fal.ai API key supplied as the FAL_KEY environment variable.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9c57d9970d92 · 采集于 2026-11-13 10:52:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

fal.ai MCP Server

A Model Context Protocol (MCP) server for interacting with fal.ai models and services.

Features

  • List all available fal.ai models
  • Search for specific models by keywords
  • Get model schemas
  • Generate content using any fal.ai model
  • Support for both direct and queued model execution
  • Queue management (status checking, getting results, cancelling requests)
  • File upload to fal.ai CDN

Requirements

  • Python 3.10+
  • fastmcp
  • httpx
  • aiofiles
  • A fal.ai API key

Installation

  1. Clone this repository:
git clone https://github.com/am0y/mcp-fal.git
cd mcp-fal
  1. Create a virtual environment and install dependencies:
python -m venv venv
venv/Scripts/pip install -r requirements.txt  # Windows
# OR
venv/bin/pip install -r requirements.txt      # Linux/Mac
  1. Set your fal.ai API key as an environment variable:
export FAL_KEY="YOUR_FAL_API_KEY_HERE"

Docker Installation (Experimental)

  1. Clone this repository:
git clone https://github.com/am0y/mcp-fal.git
cd mcp-fal
  1. Copy the environment template and add your API key:
cp .env.example .env
# Edit .env and add your fal.ai API key
  1. Start the server:
docker-compose up -d

Usage

[!IMPORTANT] For MCP Integration (VS Code, Claude Desktop, Antigravity)

✅ Use Option 2 (Direct Python Execution) - This is the correct and recommended approach.

❌ Do NOT use Docker - MCP servers use stdio transport and must be spawned by MCP clients. Docker containers will exit immediately because there's no stdin connection.

[!NOTE] Why Docker doesn't work for MCP

MCP servers communicate via standard input/output (stdio). They're designed to be spawned as child processes by MCP clients, not run as standalone services. When you try to run an MCP server in Docker, it starts, finds no stdin connection, and exits immediately.


Prerequisites: Python 3.10+ installed

Step 1: Create Virtual Environment

# Create virtual environment
python -m venv venv

# Activate it (optional, for manual testing)
venv\Scripts\activate  # Windows
source venv/bin/activate  # Linux/Mac

Step 2: Install Dependencies

# Windows
venv/Scripts/pip install -r requirements.txt

# Linux/Mac
venv/bin/pip install -r requirements.txt

Step 3: Set Up API Key

Create a .env file in the project root:

cp .env.example .env

Edit .env and add your fal.ai API key:

FAL_KEY=your_actual_fal_api_key_here

Option 2: Testing the Server Locally

For local testing and development (not required for MCP integration):

FastMCP Dev Mode

Launch the MCP Inspector web interface to test tools interactively:

fastmcp dev main.py

Direct Execution

Run the server directly (will wait for stdio input):

venv/Scripts/python main.py  # Windows
venv/bin/python main.py      # Linux/Mac

MCP Integration Configuration

After setting up the virtual environment above, configure your MCP client:

For Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac):

{
    "mcpServers": {
        "fal": {
            "command": "d:/Projects/python/mcp-fal/venv/Scripts/python.exe",
            "args": ["d:/Projects/python/mcp-fal/main.py"],
            "env": {
                "FAL_KEY": "your_fal_api_key_here"
            }
        }
    }
}

For VS Code/Antigravity (MCP settings):

{
    "mcpServers": {
        "fal": {
            "command": "d:/Projects/python/mcp-fal/venv/Scripts/python.exe",
            "args": ["d:/Projects/python/mcp-fal/main.py"],
            "env": {
                "FAL_KEY": "your_fal_api_key_here"
            }
        }
    }
}

For Linux/Mac, use:

{
    "mcpServers": {
        "fal": {
            "command": "/absolute/path/to/mcp-fal/venv/bin/python",
            "args": ["/absolute/path/to/mcp-fal/main.py"],
            "env": {
                "FAL_KEY": "your_fal_api_key_here"
            }
        }
    }
}

Key Point: Use the venv Python interpreter (venv/Scripts/python.exe on Windows or venv/bin/python on Linux/Mac) so all dependencies are available.

Security Tip: Instead of hardcoding your API key, you can:

  1. Set FAL_KEY as a system environment variable
  2. Use "FAL_KEY": "${env:FAL_KEY}" in the config to reference it
  3. Or create a .env file in the project directory and the server will load it automatically

API Reference

Tools

  • models(page=None, total=None) - List available models with optional pagination
  • search(keywords) - Search for models by keywords
  • schema(model_id) - Get OpenAPI schema for a specific model
  • generate(model, parameters, queue=False) - Generate content using a model
  • result(url) - Get result from a queued request
  • status(url) - Check status of a queued request
  • cancel(url) - Cancel a queued request
  • upload(path - Upload a file to fal.ai CDN

Appendix: Docker Setup (Experimental)

[!WARNING] This Docker setup is experimental and does NOT work for MCP integration.

MCP servers use stdio transport and must be spawned by MCP clients. Docker containers will exit immediately because there's no stdin connection. This is kept for educational purposes and potential future experimentation.

Docker Files Included

  • Dockerfile - Python 3.10-slim image with dependencies
  • docker-compose.yml - Compose configuration with auto-restart
  • .dockerignore - Excludes unnecessary files from build

Building the Docker Image

docker-compose build

Running (Will Exit Immediately)

docker-compose up -d

The container will start and exit immediately because MCP servers require an active stdin connection.

Why This Doesn't Work

MCP servers communicate via standard input/output (stdio). They're designed to be spawned as child processes by MCP clients, not run as standalone services. When run in Docker without an active stdin connection, the server starts, finds no input stream, and exits.


License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for fal.ai MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-fal)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent