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: Install from PyPI (Recommended)

pip install fal-mcp-server

Or with uv:

uv pip install fal-mcp-server

Option 2: Install from source

git clone https://github.com/raveenb/fal-mcp-server.git
cd fal-mcp-server
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

For PyPI Installation:

{
  "mcpServers": {
    "fal-ai": {
      "command": "python",
      "args": ["-m", "fal_mcp_server.server"],
      "env": {
        "FAL_KEY": "your-fal-api-key"
      }
    }
  }
}

For Source Installation:

{
  "mcpServers": {
    "fal-ai": {
      "command": "python",
      "args": ["/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.2.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.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fal_mcp_server-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 5025021c4bc13954f7b2ca6e39f9a7ecb53f52e9d74f5888ce50819b9dbf343d
MD5 5fb43551a60821c526b617c2e454af1e
BLAKE2b-256 5ec8ce5e1de8f4ac3184638c5a9a348a526f49e9f9673b2006ae5ec69ceea3d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fal_mcp_server-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 152a924aa49d76866514437053449a7c0797e79be2ccdad0f2a1efd255b30cce
MD5 e839f6d43c7d1ea699c7a67cb0698d48
BLAKE2b-256 f995a9662ee93f3a634b1e64b6685aadddaf8e4358aee47cc2b4c034e84488fe

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