← Back to fal.ai MCP Server
Install fal.ai MCP Server
Pick your client, copy the command, done.
1
Add it to Claude Code
claude mcp add -e "FAL_KEY=${FAL_KEY}" fal-ai -- npx -y fal-ai-mcpRequired:
FAL_KEYEnvironment Variables
Set these before running fal.ai MCP Server.
VariableDescriptionRequired
FAL_KEYYour fal.ai API key obtained from the dashboardYesAvailable Tools (8)
Once configured, fal.ai MCP Server gives your AI agent access to:
generate_imageText-to-image generation (FLUX, Recraft, etc.)edit_imageImage editing, inpainting, upscalinggenerate_videoText/image-to-video (Kling, Veo, Sora, LTX)speech_to_textAudio transcription with Whispertext_to_speechText-to-speech synthesisgenerate_musicMusic generation from text promptssearch_modelsSearch for available models on fal.airun_modelRun any fal.ai model with custom parametersTry It Out
After setup, try these prompts with your AI agent:
→Generate a photorealistic image of a sunset over mountains
→Create a video of waves crashing on a beach
→Transcribe this audio file: https://example.com/recording.mp3
→Convert this text to speech: Hello, welcome to fal.ai!
→Generate a 30-second lo-fi hip hop beat
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
FAL_KEY— Your fal.ai API key obtained from the dashboard
Alternative installation methods
Claude Code
claude mcp add fal-ai -e FAL_KEY=your-fal-api-key -- npx -y fal-ai-mcpSource
git clone https://github.com/enescanguven/fal-mcp.git && cd fal-mcp && npm install && npm run buildKeep this setup from going cold
Save the docs, env vars, and workflow around fal.ai MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.