Mcp Server FalAI
@codecraftm
A Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Overview
What is Mcp Server FalAI?
Mcp Server FalAI is a Model Context Protocol server that generates, upscales, and edits images using fal.ai’s Stable Diffusion model. It is designed for developers and creators who want to produce AI‑powered visuals directly through MCP‑compatible clients.
How to use Mcp Server FalAI?
Install via npm install, set the FALAI_API_KEY environment variable, and add the server to your mcpServers configuration. Start the server in STDIO mode (default) or REST mode with optional --port and --endpoint flags.
Key features of Mcp Server FalAI
- Generate images from text prompts with multiple styles
- Supports 20+ anime and artistic styles (e.g., Ghibli, Pixar, Cyberpunk)
- Multiple image sizes: square, portrait, and landscape
- Generate up to 4 images in a single request
- Image upscaling with 4x resolution enhancement
- Image search and replace using a mask and prompt
- Built‑in NSFW content detection
Use cases of Mcp Server FalAI
- Create concept art or illustrations in specific anime or movie styles
- Quickly generate multiple variations of an image for design iteration
- Upscale low‑resolution images for higher quality display
- Edit images by replacing specific regions described by a text prompt
FAQ from Mcp Server FalAI
What API key is required?
You need a fal.ai API key set as the FALAI_API_KEY environment variable.
What transport modes are supported?
The server supports STDIO mode (default) and REST mode, configurable with --mode=rest, --port, and --endpoint options.
How many images can be generated at once?
Up to 4 images can be generated in a single request.
What image sizes are available?
Available sizes include square (512×512), square HD (1024×1024), portrait 4:3, portrait 16:9, landscape 4:3, and landscape 16:9.
Does the server have NSFW detection?
Yes, it includes built‑in NSFW content detection that returns detailed error messages.