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.3.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.3.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fal_mcp_server-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 74eb0dcf2daa20921105f3e9c76eed25cd023eeeb5a6d42339b70cb6ea2185b0
MD5 7a8e9088b33cca057bb6c692f66ed96b
BLAKE2b-256 3e03e88c0908c73ccbb8ed97764ecbc8f0a675faeca7854b04508604a0602c92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fal_mcp_server-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 937b40ec489d24bb2c78cc6e99f82bde34275b356b17e1a279d71c80ae441aae
MD5 ee13c1f7be7acdcc3e5d4fbd1e0dcbe8
BLAKE2b-256 0d485646f44df66e86bbbf8870a9b173ab3cf5f4dd3c9e3b02187a85d2a1ead6

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