fal

fal

Enables MCP clients to run 600+ generative AI models from fal.ai, including image, video, audio, and text, with tools for synchronous and asynchronous execution, model catalog browsing, and schema inspection.

Category
访问服务器

README

fal-mpc

A general-purpose Model Context Protocol server that puts the full power of fal.ai inside any MCP client.

MCP fal.ai Node License

fal.ai is a generative-media powerhouse — 600+ image, video, audio, and text models (FLUX, Kontext, Veo, Kling, Suno-style audio, and more) served on some of the fastest inference infrastructure in the industry. This server hands that entire catalog to an MCP client (Claude Code, Claude Desktop, Cursor, etc.) through a small, clean set of tools: run any model by id, manage the async job queue, browse and search the model catalog, and inspect a model's exact input schema before calling it.

Why fal.ai

  • Breadth that's hard to beat. One API key unlocks 600+ production models across every generative modality — no per-vendor integrations, no juggling SDKs.
  • Built for speed. fal's inference stack is engineered for low-latency generation, so fast models return in seconds and heavy jobs stream through a robust async queue.
  • Always current. New state-of-the-art models land on fal continuously — pointing this server at a new model_id is all it takes to use them.
  • Schema-first, no guesswork. Every model publishes an OpenAPI schema, so fal_get_model_schema lets your agent discover exact inputs and defaults instead of guessing.
  • Agent-friendly by design. A predictable REST surface and a clean queue model make fal a natural fit for autonomous, multi-step generative workflows.

This MCP server is a thin, faithful bridge to that platform — it stays out of the way and lets fal.ai shine.

Tools

Tool Purpose
fal_run_model Run a model synchronously and block for the result (best for fast models, <2 min)
fal_submit_request Submit a job to the async queue and get a request_id back immediately (best for video/training)
fal_check_status Poll a queued request's status (IN_QUEUE / IN_PROGRESS / COMPLETED)
fal_get_result Fetch the final output of a completed queued request
fal_cancel_request Cancel a request that's still IN_QUEUE
fal_list_models Search/browse the fal.ai model catalog to find the right model id
fal_get_model_schema Fetch a model's OpenAPI schema — exact input fields, types, defaults
fal_encode_file_as_data_uri Locally base64-encode a file so it can be passed as an image_url-style argument without a separate upload step

Setup

  1. Get an API key from fal.ai/dashboard/keys.
  2. Build the server:
    npm install
    npm run build
    
  3. Add it to your MCP client config (e.g. Claude Code's .mcp.json or Claude Desktop's config), pointing at dist/index.js and setting FAL_KEY:
    {
      "mcpServers": {
        "fal": {
          "command": "node",
          "args": ["/absolute/path/to/fal-mpc/dist/index.js"],
          "env": {
            "FAL_KEY": "your-fal-api-key"
          }
        }
      }
    }
    

Typical workflows

Quick image generation:

fal_run_model(model_id="fal-ai/flux/dev", arguments={"prompt": "a sunset over mountains"})

Not sure what a model accepts?

fal_get_model_schema(model_id="fal-ai/flux-pro/kontext")

Slow model (video) — fire and check back later:

fal_submit_request(model_id="fal-ai/minimax/video-01", arguments={"prompt": "a rocket launch"})
  -> fal_check_status(model_id=..., request_id=...)
  -> fal_get_result(model_id=..., request_id=...)   # once COMPLETED

Using a local image as input:

fal_encode_file_as_data_uri(file_path="/path/to/photo.jpg")
  -> pass the returned data: URI as image_url in fal_run_model / fal_submit_request

Find a model for a task:

fal_list_models(query="background removal")

Notes

  • Base64 data URIs work directly as file inputs anywhere fal expects a URL — fal_encode_file_as_data_uri handles this locally (no fal upload API call needed). For files already hosted publicly, just pass the URL directly.
  • fal_run_model has a 5-minute timeout; anything slower should go through fal_submit_request.
  • All tools support response_format: "json" for structured output or "markdown" (default) for readability.

Evaluation

evaluation.xml contains 10 read-only QA pairs testing fal_get_model_schema against known model defaults. Run with the harness described in the mcp-builder skill's evaluation guide. Since fal.ai model schemas can change as models are updated, spot-check these against the live API before relying on them.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选