Skip to main content
Connect your favorite app to fal through browser sign-in. Search models, check pricing, and generate images, video, and audio without pasting an API key into chat. For public documentation search only, use https://fal.ai/docs/mcp. That server does not generate media or access your account. For model generation, use https://mcp.fal.ai/mcp-relay and follow the setup guide below.

Setup

Connect with browser sign-in using https://mcp.fal.ai/mcp-relay.

Coding agents: one command

On macOS or Linux, run this command in your terminal:
The installer adds fal to each of these agents that it finds on your computer:
  • Claude Code, Codex CLI, and Cursor
  • VS Code and Devin Desktop (formerly Windsurf)
  • Gemini CLI, Grok Build, and opencode
The installer skips agents that already have fal. It does not write an API key. If a config file has comments or trailing commas, the installer does not change it and prints the entry to add yourself. After it finishes, sign in once in each agent. The installer shows the sign-in step for each agent. To set up a coding agent by hand, use its guide:

Claude Code

Add the remote server, then authenticate with /mcp

Codex CLI

Add the server and run codex mcp login fal

Cursor

Install from the Cursor Marketplace, or add the server URL

Pi

Add the server. Run pi mcp login fal.
If you set up fal from inside a coding agent, paste this message into the agent instead. The agent then uses its own MCP command, which it can run without approval for an install script:

Apps and chat agents

The installer cannot reach these. Connect fal inside each app.

ChatGPT

Install the fal plugin and connect your account

Claude

Add a connector and sign in through your browser

Grok Bot

Add the fal plugin and sign in through your browser

Replit

Open the install link and sign in

Muse and Instinct

Ask the agent in chat to add fal

Other tools

Copy the URL into a Streamable HTTP and OAuth client

genmedia CLI

A separate terminal connection using a local API key