This MCP server provides Model Context Protocol support for Flux AI image generation. It is identified as io.github.AceDataCloud/mcp-flux-pro and is categorized under topics including AI image workflows, developer tools, the Flux API, and image-generation use cases. It aligns with MCP by exposing Flux-related capabilities.
๐ ๏ธ Key Features
MCP server for Flux AI image generation
Topics include ai-image, developer-tools, flux-api, image-generation, mcp-server, and model-context-protocol
Package and project details referenced via PyPI (version and downloads) and GitHub CI badges
MIT license badge indicated in the readme excerpt
๐ Use Cases
Generate images using Flux AI through an MCP-compatible interface
Integrate Flux API-driven image-generation into developer tooling
โก Developer Benefits
Developer-oriented integration via MCP and the model-context-protocol topic grouping
If you prefer to run the server on your own machine:
bash
# Install from PyPI
pip install mcp-flux-pro
# or
uvx mcp-flux-pro
# Set your API tokenexport ACEDATACLOUD_API_TOKEN="your_token_here"# Run (stdio mode for Claude Desktop / local clients)
mcp-flux-pro
# Run (HTTP mode for remote access)
mcp-flux-pro --transport http --port 8000
docker pull ghcr.io/acedatacloud/mcp-flux-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-flux-pro:latest
Clients connect with their own Bearer token โ the server extracts the token from each request's Authorization header.
Available Tools
Tool
Description
flux_generate_image
Generate images from text prompts with model selection
flux_edit_image
Edit existing images with text instructions
flux_get_task
Query status of a single generation task
flux_get_tasks_batch
Query multiple task statuses at once
flux_list_models
List all available Flux models and capabilities
flux_list_actions
Show all tools and workflow examples
Available Prompts
Prompt
Description
flux_image_generation_guide
Guide for choosing the right tool and model
flux_prompt_writing_guide
Best practices for writing effective prompts
flux_workflow_examples
Common workflow patterns and examples
Supported Models
Model
Quality
Speed
Size Format
Best For
flux-dev
Good
Fast
Pixels (256-1440px)
Quick prototyping
flux-pro
High
Medium
Pixels (256-1440px)
Production use
flux-kontext-pro
High
Medium
Aspect ratios
Image editing
flux-kontext-max
Highest
Slower
Aspect ratios
Complex editing
flux-2-flex
High
Fast
Aspect ratios
Flux 2 balanced quality
flux-2-pro
Higher
Medium
Aspect ratios
Flux 2 production
flux-2-max
Highest
Slower
Aspect ratios
Flux 2 maximum quality
flux-2-klein
Good
Fast
Aspect ratios
Flux 2 efficient output
Usage Examples
Generate an Image
code
"Generate a photorealistic mountain landscape at golden hour"
โ flux_generate_image(prompt="...", model="flux-2-max", size="16:9")
Edit an Image
code
"Add sunglasses to the person in this photo"
โ flux_edit_image(prompt="Add sunglasses", image_url="https://...", size="1:1", model="flux-kontext-pro")
Check Task Status
code
"What's the status of my generation?"
โ flux_get_task(task_id="...")
Environment Variables
Variable
Required
Default
Description
ACEDATACLOUD_API_TOKEN
Yes (stdio)
โ
API token from AceDataCloud
ACEDATACLOUD_API_BASE_URL
No
https://api.acedata.cloud
API base URL
ACEDATACLOUD_OAUTH_CLIENT_ID
No
โ
OAuth client ID (hosted mode)
ACEDATACLOUD_PLATFORM_BASE_URL
No
https://platform.acedata.cloud
Platform base URL
FLUX_REQUEST_TIMEOUT
No
1800
Request timeout in seconds
MCP_SERVER_NAME
No
flux
MCP server name
LOG_LEVEL
No
INFO
Logging level
Development
Setup
bash
git clone https://github.com/AceDataCloud/FluxMCP.git
cd FluxMCP
pip install -e ".[all]"cp .env.example .env# Edit .env with your API token
Lint & Format
bash
ruff check .
ruff format .
mypy core tools main.py
Use flux_generate_video with a structured request for t2v, i2v, v2v or draft_enhance. For example: {"mode":"t2v","prompt":"Waves at sunset","duration":5,"resolution":"hd","generate_audio":false}. Image mode requires keyframes; video mode requires start_video. Draft enhancement uses an owned platform draft_task_id and requires the temporary draft cache still to be available.
Video generation uses POST /flux/videos with action=generate (default) and mode=t2v/i2v/v2v/draft_enhance. Each generation mode accepts its own fields. Tools return task IDs asynchronously by default; use flux_get_task for the final video. Set async=false in the request to wait synchronously.
Install
Configuration
Environment variables
ACEDATACLOUD_API_TOKENrequiredsecret
API token from Ace Data Cloud (https://platform.acedata.cloud)