fal MCP server for AI agents

Live

OAUTH 2.1

MEDIA GENERATION

AI

fal MCP gives your agent fal's generative media models: search and recommend models, run or queue jobs, upload files, manage your saved media library, and check pricing and cost estimates.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
fal MCP
agent · Acme Q3
Run
Find a model that removes the background from an image.
S
falmcp_search_models
246ms
Media generation agent
Found 5 background removal models. The top match is listed with its endpoint ID, so I can pull its input schema and run it next.
Sources: fal model catalog, 5 models
falmcp
5 models
18:29
Message Claude...

Tools your AI media generation agent reaches for on fal, scoped per user.

CALL ANY TOOL
42 tools for AI media generation in fal: search and run models, submit and track jobs, upload files, and manage a saved media library.
falmcp_browse_models
Browse models
Browse active model endpoints by canonical category with Explore's Trending or Recently added order. Use search_models for keywords such as music, upscaling, background removal or specific model names; use recommend_model to choose a model for a task. Category image-to-image covers image edits and transforms; aliases such as image-editing, tts or i2v are mapped to canonical categories. Music has no text-to-music category: search for music, rather than broadening to all text-to-audio models. Sorting is performed by the server before pagination, never on one local page. Trending is shared discovery order, not a quality, speed or authored recommendation rank. Entries keep that order; fal's published picks are tagged recommended, and a caveat marks entries that are off-task unless asked for (superseded by a listed newer version, routed as another task, trainer, LoRA/style/preset variant, streaming, not callable). Recent requires a supporting catalog API and explicit ordering acknowledgement. Entries tagged callable: false are catalog listings that can't run through MCP: a realtime session app is playground-only at its playground_url; other such listings carry only a model_page_url and no playground.
Parameters
Name
Type
Required
Description
category
string
Optional
Canonical category such as image-to-image, text-to-image, image-to-video, video-to-video, text-to-audio or training. Omit to browse all active endpoints.
cursor
string
Optional
next_cursor from the previous page. Keep category, sort and limit unchanged. Catalog cursors are page positions, not snapshots.
limit
integer
Optional
Page size, default 20. Keep it unchanged when following a cursor.
sort
string
Optional
trending (default) follows Explore's shared browse order; recent is Recently added, by publication date with creation date as fallback. One of: `trending`, `recent`.
user_intent
string
Optional
The user's request that prompted this tool call, copied verbatim. Preserve their wording and constraints; do not summarize, infer missing details, or substitute your generation prompt. Omit when the original request text is unavailable. Agent-reported context, not verified conversation history.
falmcp_cancel_job
Cancel job
falmcp_check_account_status
Check account status
falmcp_get_generation_defaults
Get generation defaults
falmcp_get_job_recipe
Get job recipe
falmcp_get_model_schema
Get model schema
falmcp_get_pricing
Get pricing
falmcp_inspect_images
Inspect images
falmcp_library_create
Create library
falmcp_library_delete
Delete library
falmcp_library_favorite
Library favorite
falmcp_library_read
Read library
falmcp_library_search
Search library
falmcp_library_update
Update library
falmcp_list_accounts
List accounts
falmcp_open_library
Open library
falmcp_open_media_file
Open media file
falmcp_prepare_media_transform
Prepare media transform
falmcp_prepare_media_workflow
Prepare media workflow
falmcp_resolve_model_inputs
Resolve model inputs
falmcp_run_model
Run model
falmcp_search_docs
Search docs
falmcp_search_mentions
Search mentions
falmcp_search_models
Search models
falmcp_select_account
Select account
falmcp_send_feedback
Send feedback
falmcp_submit_job
Submit job
falmcp_submit_jobs
Submit jobs
falmcp_upload_attachment
Upload attachment
falmcp_upload_file
Upload file

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// fal tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["falmcp"], toolNames: [
    "falmcp_search_models",
    "falmcp_get_model_schema",
    "falmcp_run_model"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find a model that removes image backgrounds, show its input schema, and run it on this image URL" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["falmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find a model that removes image backgrounds, show its input schema, and run it on this image URL" }],
  tools,
});

// Execute the tool call with the user's vaulted fal OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["falmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find a model that removes image backgrounds, show its input schema, and run it on this image URL" }],
  tools,
});

// Tool call runs with the user's vaulted fal OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["falmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "media_generation_agent",
  model: "gemini-2.5-pro",
  instruction: "fal tools scoped to this user",
  tools,
});

await agent.run("Find a model that removes image backgrounds, show its input schema, and run it on this image URL");
Try these prompts
Copy any prompt into your agent. Each maps directly to a fal MCP tool. Click to copy, paste into your agent, done.
Find models
Copy the prompt
Copied
Search for text to speech models.
Copy the prompt
Copied
Recommend a model for turning this product photo into a short video.
Copy the prompt
Copied
Show the input schema for this model.
Run and track jobs
Copy the prompt
Copied
Estimate the cost of this request before running it.
Copy the prompt
Copied
Submit this generation job without waiting for it.
Copy the prompt
Copied
Wait for these jobs to finish and show me the outputs.
Library and account
Copy the prompt
Copied
Search my saved media for images of this character.
Copy the prompt
Copied
Check my fal account status.
Copy the prompt
Copied
Cancel the job I just submitted.
SEE HOW AUTH WORKS
Each user signs in to fal once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
fal MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
fal MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
fal MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
fal MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI and media connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other AI and media connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared fal token looks fine in a demo. In production every model run looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
fal today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access fal as the user or through a shared service account?
As the user. Each user signs in to fal once, and Scalekit stores and refreshes their tokens. Every model run in your audit trail is attributed to that user, not a shared service account.
Where is the fal OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in fal?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search, pricing, and library read tools without falmcp_run_model and falmcp_submit_job, which start generations, and falmcp_library_delete, which removes saved library objects. Scalekit also enforces scope checks before every API call.
What happens when a user revokes fal access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which fal account does the agent use?
falmcp_list_accounts lists the personal and team accounts the connected user can select, and falmcp_select_account saves the account to use for later calls. falmcp_check_account_status checks the connected account.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""falmcp"": {
""url"": ""https://mcp.scalekit.com/falmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.falmcp]
url = ""https://mcp.scalekit.com/falmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""falmcp"": {
""url"": ""https://mcp.scalekit.com/falmcp"",
""type"": ""http""
}
}
}