Advanced text-to-image generation model using the fal.ai API. Requires a FAL_KEY environment variable.
A Model Context Protocol (MCP) server that provides access to the fal-ai/minimax/image-01 image generation model. This server allows you to generate high-quality images with superior capabilities using advanced AI technology through the fal.ai platform.
git clone https://github.com/PierrunoYT/fal-minimax-image-01-mcp-server.git
cd fal-minimax-image-01-mcp-server
npm install
npm run build
Set your fal.ai API key as an environment variable:
export FAL_KEY="your_fal_api_key_here"
You can get your API key from fal.ai.
Add this server to your MCP client configuration. For example, in Claude Desktop's config file:
{
"mcpServers": {
"fal-minimax-image-01": {
"command": "npx",
"args": ["-y", "https://github.com/PierrunoYT/fal-minimax-image-01-mcp-server.git"],
"env": {
"FAL_KEY": "your_fal_api_key_here"
}
}
}
}
If the package is published to npm, you can use:
{
"mcpServers": {
"fal-minimax-image-01": {
"command": "npx",
"args": ["fal-minimax-image-01-mcp-server"],
"env": {
"FAL_KEY": "your_fal_api_key_here"
}
}
}
}
Alternatively, if you've cloned the repository locally:
{
"mcpServers": {
"fal-minimax-image-01": {
"command": "node",
"args": ["/path/to/fal-minimax-image-01-mcp-server/build/index.js"],
"env": {
"FAL_KEY": "your_fal_api_key_here"
}
}
}
}
minimax_generate
Generate images using the standard synchronous method.
Parameters:
prompt
(required): Text description of the image to generate (max 1500 characters)aspect_ratio
(optional): Aspect ratio of the generated image (default: "1:1")num_images
(optional): Number of images to generate (1-9, default: 1)prompt_optimizer
(optional): Enable prompt optimization for better resultssync_mode
(optional): Wait for completion (default: true)Example:
{
"prompt": "A futuristic cityscape with flying cars and neon lights",
"aspect_ratio": "16:9",
"num_images": 2,
"prompt_optimizer": true
}
minimax_generate_queue
Submit a long-running image generation request to the queue.
Parameters: Same as minimax_generate
plus:
webhook_url
(optional): URL for webhook notificationsReturns: A request ID for tracking the job
minimax_queue_status
Check the status of a queued request.
Parameters:
request_id
(required): The request ID from queue submissionlogs
(optional): Include logs in response (default: true)minimax_queue_result
Get the result of a completed queued request.
Parameters:
request_id
(required): The request ID from queue submissionThe MiniMax model supports the following aspect ratios:
1:1
: Square format (default)16:9
: Widescreen landscape4:3
: Standard landscape3:2
: Classic photo landscape2:3
: Classic photo portrait3:4
: Standard portrait9:16
: Vertical/mobile format21:9
: Ultra-wide panoramicExample:
{
"aspect_ratio": "16:9"
}
Enable prompt optimization to enhance your text prompts for better results:
{
"prompt_optimizer": true
}
When enabled, the AI will automatically improve your prompt to generate higher quality images.
Generated images are automatically downloaded to a local images/
directory with descriptive filenames. The response includes:
The server provides detailed error messages for:
npm run dev
npm test
npm run get-path
This server implements the fal-ai/minimax/image-01 API. For detailed API documentation, visit:
{
"prompt": "A majestic dragon soaring through clouds"
}
{
"prompt": "A serene mountain landscape at sunset",
"aspect_ratio": "16:9",
"prompt_optimizer": true
}
{
"prompt": "A cute cartoon cat in different poses",
"aspect_ratio": "1:1",
"num_images": 4
}
{
"prompt": "A professional headshot of a confident businesswoman in a modern office setting, natural lighting, high resolution",
"aspect_ratio": "2:3",
"prompt_optimizer": true
}
{
"prompt": "A detailed architectural visualization of a futuristic smart city with sustainable technology",
"aspect_ratio": "21:9",
"webhook_url": "https://your-server.com/webhook"
}
MIT License - see LICENSE file for details.
For issues and questions:
Interact with the Meta Ads API to access, analyze, and manage advertising campaigns.
A security-focused MCP server for performing safe operations on an Ubuntu system, featuring robust security controls and audit logging.
Send emails using AWS Simple Email Service (SES). Supports plain text, HTML, CC, BCC, reply-to, and email scheduling.
A server for Snowflake providing tools for its Cortex AI features, including Search, Analyst, and Complete.
Golang-based Kubernetes MCP Server. Built to be extensible.
Integrates with the Uberall API to manage business listings, locations, and social media presence.
Access AWS CloudWatch logs to list log groups and read log entries.
Automate Akamai resource actions using a conversational AI client. Requires Akamai API credentials.
Interact with the Illumio Policy Compute Engine (PCE) to manage workloads, labels, and analyze traffic flows.
Access and manage AWS VPC Lattice resources and related documentation.