FluxMCP
FluxMCP
Un servidor de Model Context Protocol (MCP) para generación y edición de imágenes con IA usando Flux a través de la plataforma AceDataCloud.
Genera y edita impresionantes imágenes con IA usando los modelos Flux (flux-dev, flux-pro, flux-kontext) directamente desde Claude, Cursor o cualquier cliente compatible con MCP.
Características
Generación de imágenes - Genera imágenes a partir de prompts de texto con 6 modelos Flux
Edición de imágenes - Edita imágenes existentes con los modelos Flux Kontext sensibles al contexto
Gestión de tareas - Realiza seguimiento de tareas de generación asíncronas y consultas de estado por lotes
Guía de modelos - Guía integrada para selección de modelos y redacción de prompts
Doble transporte - Modos stdio (local) y HTTP (remoto/nube)
Listo para Docker - Contenerizado con manifiestos de despliegue para K8s
Seguro - Autenticación con token Bearer con aislamiento por solicitud en modo HTTP
Related MCP server: DiffuGen
Referencia de herramientas
Herramienta | Descripción |
| Genera imágenes de IA a partir de un prompt de texto usando Flux. |
| Edita una imagen existente usando Flux con un prompt de texto. |
| Lista todos los modelos Flux disponibles y sus capacidades. |
| Lista todas las herramientas Flux disponibles y sus casos de uso. |
| Consulta el estado y el resultado de una tarea de generación de imágenes Flux. |
| Consulta varias tareas de generación de imágenes Flux a la vez. |
Inicio rápido
1. Obtén tu token de API
Regístrate en Plataforma AceDataCloud
Haz clic en "Adquirir" para obtener tu token de API
Copia el token para usarlo a continuación
2. Usa el servidor alojado (recomendado)
AceDataCloud aloja un servidor MCP gestionado — no se requiere instalación local.
Endpoint: https://flux.mcp.acedata.cloud/mcp
Todas las solicitudes requieren un token Bearer. Usa el token de API del Paso 1.
Claude.ai
Conéctate directamente en Claude.ai con OAuth — no se necesita token de API:
Ve a Claude.ai Configuración → Integraciones → Añadir más
Introduce la URL del servidor:
https://flux.mcp.acedata.cloud/mcpCompleta el flujo de inicio de sesión con OAuth
Empieza a usar las herramientas en tu conversación
Claude Desktop
Añade a tu configuración (~/Library/Application Support/Claude/claude_desktop_config.json en macOS):
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cursor / Windsurf
Añade a tu configuración de MCP (.cursor/mcp.json o .windsurf/mcp.json):
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}VS Code (Copilot)
Añade a tu configuración de MCP de VS Code (.vscode/mcp.json):
{
"servers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}O instala la extensión Ace Data Cloud MCP para VS Code, que registra los servidores MCP alojados con configuración en un clic.
IDEs JetBrains
Ve a Configuración → Herramientas → Asistente de IA → Model Context Protocol (MCP)
Haz clic en Añadir → HTTP
Pega:
{
"mcpServers": {
"flux": {
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Claude Code
Claude Code admite servidores MCP de forma nativa:
claude mcp add flux --transport http https://flux.mcp.acedata.cloud/mcp \
-h "Authorization: Bearer YOUR_API_TOKEN"O añade a .mcp.json de tu proyecto:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cline
Añade a la configuración de MCP de Cline (.cline/mcp_settings.json):
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Amazon Q Developer
Añade a tu configuración de MCP:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Roo Code
Añade a la configuración de MCP de Roo Code:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Continue.dev
Añade a .continue/config.yaml:
mcpServers:
- name: flux
type: streamable-http
url: https://flux.mcp.acedata.cloud/mcp
headers:
Authorization: "Bearer YOUR_API_TOKEN"Zed
Añade a la configuración de Zed (~/.config/zed/settings.json):
{
"language_models": {
"mcp_servers": {
"flux": {
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
}Prueba con cURL
# Health check (no auth required)
curl https://flux.mcp.acedata.cloud/health
# MCP initialize
curl -X POST https://flux.mcp.acedata.cloud/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'3. O ejecuta localmente (alternativa)
Si prefieres ejecutar el servidor en tu propia máquina:
# Install from PyPI
pip install mcp-flux-pro
# or
uvx mcp-flux-pro
# Set your API token
export 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 8000Claude Desktop (local)
{
"mcpServers": {
"flux": {
"command": "uvx",
"args": ["mcp-flux-pro"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_token_here"
}
}
}
}Docker (autoalojamiento)
docker pull ghcr.io/acedatacloud/mcp-flux-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-flux-pro:latestLos clientes se conectan con su propio token Bearer — el servidor extrae el token del encabezado Authorization de cada solicitud.
Herramientas disponibles
Herramienta | Descripción |
| Genera imágenes a partir de prompts de texto con selección de modelo |
| Edita imágenes existentes con instrucciones de texto |
| Consulta el estado de una sola tarea de generación |
| Consulta el estado de varias tareas a la vez |
| Lista todos los modelos Flux disponibles y sus capacidades |
| Muestra todas las herramientas y ejemplos de flujos de trabajo |
Prompts disponibles
Prompt | Descripción |
| Guía para elegir la herramienta y el modelo adecuados |
| Mejores prácticas para escribir prompts eficaces |
| Patrones de flujo de trabajo comunes y ejemplos |
Modelos compatibles
Modelo | Calidad | Velocidad | Formato de tamaño | Mejor para |
| Buena | Rápida | Píxeles (256-1440px) | Prototipado rápido |
| Alta | Media | Píxeles (256-1440px) | Uso en producción |
| Alta | Media | Relaciones de aspecto | Edición de imágenes |
| Máxima | Más lenta | Relaciones de aspecto | Edición compleja |
| Alta | Rápida | Relaciones de aspecto | Calidad equilibrada de Flux 2 |
| Más alta | Media | Relaciones de aspecto | Producción con Flux 2 |
| Máxima | Más lenta | Relaciones de aspecto | Calidad máxima de Flux 2 |
| Buena | Rápida | Relaciones de aspecto | Salida eficiente de Flux 2 |
Ejemplos de uso
Generar una imagen
"Generate a photorealistic mountain landscape at golden hour"
→ flux_generate_image(prompt="...", model="flux-2-max", size="16:9")Editar una imagen
"Add sunglasses to the person in this photo"
→ flux_edit_image(prompt="Add sunglasses", image_url="https://...", size="1:1", model="flux-kontext-pro")Comprobar el estado de una tarea
"What's the status of my generation?"
→ flux_get_task(task_id="...")Variables de entorno
Variable | Obligatoria | Valor predeterminado | Descripción |
| Sí (stdio) | — | Token de API de AceDataCloud |
| No |
| URL base de la API |
| No | — | ID de cliente OAuth (modo alojado) |
| No |
| URL base de la plataforma |
| No |
| Tiempo de espera de la solicitud en segundos |
| No |
| Nombre del servidor MCP |
| No |
| Nivel de registro |
Desarrollo
Configuración
git clone https://github.com/AceDataCloud/FluxMCP.git
cd FluxMCP
pip install -e ".[all]"
cp .env.example .env
# Edit .env with your API tokenLint y formato
ruff check .
ruff format .
mypy core tools main.pyPruebas
# Unit tests
pytest --cov=core --cov=tools
# Skip integration tests
pytest -m "not integration"
# With coverage report
pytest --cov=core --cov=tools --cov-report=htmlHooks de Git
git config core.hooksPath .githooksReferencia de la API
Este servidor MCP usa la API Flux de AceDataCloud:
POST /flux/images — Genera o edita imágenes
POST /flux/tasks — Consulta el estado de tareas (individual o por lotes)
Documentación completa de la API: platform.acedata.cloud
Documentación
Licencia
Licencia MIT — consulta LICENSE para más detalles.
Enlaces
Available Tools
7 toolsflux_edit_imageAInspect
Edit an existing image using Flux with a text prompt.
This allows you to modify an existing image based on a text description.
The kontext models (flux-kontext-pro, flux-kontext-max) are specifically
designed for high-quality image editing and style transfer.
Use this when:
- You want to modify or transform an existing image
- You want to change specific elements in an image
- You want to apply style changes or artistic effects
- You want to add, remove, or replace objects in an image
For generating new images from scratch, use flux_generate_image instead.
Returns:
Task ID and edited image information including URLs.
Inputs: size (required), prompt (required), image_url (required), model, +1 more. Returns: result
flux_generate_imageAInspect
Generate AI images from a text prompt using Flux.
Flux is a family of fast, high-quality image generation models by Black Forest Labs.
Different models offer different tradeoffs between speed, quality, and capabilities.
Use this when:
- You want to create new images from a text description
- You need high-quality AI-generated artwork or photos
- You want fast image generation with good prompt following
For editing existing images, use flux_edit_image instead.
Returns:
Task ID and generated image information including URLs.
Inputs: size (required), prompt (required), count, model, +1 more. Returns: result
flux_generate_videoBInspect
Generate text/image/video-to-video or enhance an owned temporary draft. Poll flux_get_task.
Inputs: request (required). Returns: result
flux_get_taskAInspect
Query the status and result of a Flux image or video generation task.
Use this to check if a generation is complete and retrieve the resulting
image/video URLs and metadata.
Use this when:
- You want to check if an image generation has completed
- You need to retrieve image URLs from a previous generation
- You used async callback and want to check results later
- The initial generation returned a task_id without immediate results
Returns:
Task status and generation result including image URLs.
Inputs: task_id (required). Returns: result
flux_get_tasks_batchAInspect
Query multiple Flux image or video generation tasks at once.
Efficiently check the status of multiple tasks in a single request.
More efficient than calling flux_get_task multiple times.
Use this when:
- You have multiple pending generations to check
- You want to get status of several images at once
- You're tracking a batch of generations
Returns:
Status and result information for all queried tasks.
Inputs: task_ids (required). Returns: result
flux_list_actionsAInspect
List all available Flux tools and their use cases.
Reference guide for what each tool does and when to use it.
Returns:
Categorized list of all tools with descriptions.
Inputs: no named parameters. Returns: result
flux_list_modelsAInspect
List all available Flux models and their capabilities.
Reference guide for choosing the right Flux model for your use case.
Returns:
Detailed list of all Flux models with descriptions and recommendations.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The core tools are clearly separated: generate vs edit vs video generation, and single-task vs batch task queries are explicitly distinguished. Minor overlap exists because flux_generate_video bundles several video workflows and flux_get_tasks_batch could be seen as an optimization of flux_get_task, but descriptions make the intended boundaries clear.
All tools follow a consistent flux_verb_noun snake_case pattern, such as flux_generate_image, flux_edit_image, flux_get_task, and flux_list_models. The convention is predictable throughout.
Seven tools is well-scoped for an image/video generation service. The set covers generation, editing, task polling, batch polling, and reference discovery without obvious padding.
The surface covers the main lifecycle: generate/edit media, generate video, poll tasks, batch poll, and discover models/actions. Minor gaps remain around cancellation or listing existing tasks, but core workflows appear supported.
Maintenance
Related MCP Connectors
Generate images, videos, music & lip sync with 200+ AI models (Flux, Veo 3, Kling, Suno)
AI image, video & music generation. Flux, Veo 3.1, Suno V5. Free tier included.
Generate, edit, and explore AI images. Flux, Imagen, LoRA identity swap, upscale, and more.
AI photo tools and 18 image models (GPT Image 2.6, Nano Banana, FLUX 3, more) over MCP. Pay per use.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.426MIT
- AlicenseNot gradedqualityDmaintenancePowerful image generation system leveraging multiple Stable Diffusion models (flux-schnell, flux-dev, sdxl, sd3, sd15) for creating high-quality AI-generated images with precise customization.19MIT
- AlicenseBqualityFmaintenanceEnables seamless integration with Fal.ai's 600+ image generation models including Flux and Stable Diffusion. Supports real-time streaming, workflow execution, and unified access to AI image generation through natural language.541 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables high-quality image generation with advanced text rendering and contextual understanding using FLUX.1 Kontext Max through the Replicate API. Supports text-to-image generation, image editing, multiple aspect ratios, and automatically downloads generated images locally.1-