Skip to main content

MCP server for Fal.ai - Generate images, videos, music and audio with AI models

Project description

🎨 Fal.ai MCP Server

CI MCP GitHub Release PyPI Python License

A Model Context Protocol (MCP) server that enables Claude Desktop (and other MCP clients) to generate images, videos, music, and audio using Fal.ai models.

✨ Features

🚀 Performance

  • Native Async API - Uses fal_client.run_async() for optimal performance

  • Queue Support - Long-running tasks (video/music) use queue API with progress updates

  • Non-blocking - All operations are truly asynchronous

  • 🖼️ Image Generation - Create images using Flux, SDXL, and other models

  • 🎬 Video Generation - Generate videos from images or text prompts

  • 🎵 Music Generation - Create music from text descriptions

  • 🗣️ Text-to-Speech - Convert text to natural speech

  • 📝 Audio Transcription - Transcribe audio using Whisper

  • ⬆️ Image Upscaling - Enhance image resolution

  • 🔄 Image-to-Image - Transform existing images with prompts

🚀 Quick Start

Prerequisites

  • Python 3.10 or higher
  • Fal.ai API key (free tier available)
  • Claude Desktop (or any MCP-compatible client)

Installation

Option 1: Using uv (Recommended)

git clone https://github.com/raveenb/fal-mcp-server.git
cd fal-mcp-server
uv pip install -e .

Option 2: Using pip

git clone https://github.com/raveenb/fal-mcp-server.git
cd fal-mcp-server
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e .

Configuration

  1. Get your Fal.ai API key from fal.ai

  2. Configure Claude Desktop by adding to:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "fal-ai": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp",
        "--with",
        "fal-client",
        "python",
        "/path/to/fal-mcp-server/src/fal_mcp_server/server.py"
      ],
      "env": {
        "FAL_KEY": "your-fal-api-key"
      }
    }
  }
}
  1. Restart Claude Desktop

💬 Usage

Once configured, ask Claude to:

  • "Generate an image of a sunset"
  • "Create a video from this image"
  • "Generate 30 seconds of ambient music"
  • "Convert this text to speech"
  • "Transcribe this audio file"

📦 Supported Models

Image Models

  • flux_schnell - Fast high-quality generation
  • flux_dev - Development version with more control
  • sdxl - Stable Diffusion XL

Video Models

  • svd - Stable Video Diffusion
  • animatediff - Text-to-video animation

Audio Models

  • musicgen - Music generation
  • bark - Text-to-speech
  • whisper - Audio transcription

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📝 License

MIT License - see LICENSE file for details.

🙏 Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fal_mcp_server-0.1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fal_mcp_server-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file fal_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: fal_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for fal_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 99d58965203b62e339de3228f57ebefe362041a14e597d9439b5ef4e9438deed
MD5 3850464f586f07f67072d4d43460f8dc
BLAKE2b-256 e0046fc459f1a05621dd225735a6b85d966fd66d20107bdad0c16fe447a16a3c

See more details on using hashes here.

File details

Details for the file fal_mcp_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fal_mcp_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for fal_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25bdc14afd40617732b4e0a79ac0fb297fb1d18c914465553bf4b26a4b67fe87
MD5 b2ba90a5d687232da1963d2eda6b08fe
BLAKE2b-256 04d409735fdacc12f9cf52941c0b7e223f4c80996bc690e799486bd343602874

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page