fal-api-mcp-server logo

fal-api-mcp-server

by taimo3810

This is a Model Context Protocol (MCP) server that provides image generation capabilities using fal.ai's FLUX.1 Pro model. It allows users to generate images from text prompts using the fal.ai service.

View on GitHub

Last updated: N/A

What is fal-api-mcp-server?

This server is a Model Context Protocol (MCP) server that acts as a bridge between a client (like Claude) and fal.ai's FLUX.1 Pro model for image generation. It exposes a tool that can generate images based on text prompts.

How to use fal-api-mcp-server?

To use this server, you need to configure it with a fal.ai API key. You can then use a client like Claude to send text prompts to the server, which will use the fal.ai FLUX.1 Pro model to generate images. The server provides options to customize the image size, number of images, safety checker settings, and output format.

Key features of fal-api-mcp-server

  • Generates images from text prompts

  • Uses fal.ai FLUX.1 Pro model

  • Configurable image size and number of images

  • Safety checker with adjustable tolerance

  • Supports JPEG and PNG output formats

Use cases of fal-api-mcp-server

  • Generating images for creative writing

  • Creating visual content for social media

  • Prototyping image ideas

  • Generating images for educational purposes

FAQ from fal-api-mcp-server

What is a fal.ai API key and how do I get one?

A fal.ai API key is required to authenticate with the fal.ai service. You can obtain an API key by signing up at fal.ai.

How do I configure the server with my fal.ai API key?

You need to set the FAL_KEY environment variable to your fal.ai API key. This can be done in your shell or in a .env file.

What image sizes are supported?

The server supports the following image sizes: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, and landscape_16_9.

How do I enable or disable the safety checker?

You can enable or disable the safety checker using the enable_safety_checker parameter. The default value is true.

What is the MCP Inspector and how do I use it?

The MCP Inspector is a tool for debugging MCP servers. You can launch it using npx @modelcontextprotocol/inspector uv --directory /path/to/fal-api-mcp-server run fal-api-mcp-server and access it in your browser.