FluxMCP
FluxMCP
Ein Model Context Protocol (MCP)-Server für KI-Bildgenerierung und -bearbeitung mit Flux über die AceDataCloud-Plattform.
Erstelle und bearbeite beeindruckende KI-Bilder mit Flux-Modellen (flux-dev, flux-pro, flux-kontext) direkt von Claude, Cursor oder jedem MCP-kompatiblen Client.
Funktionen
Bildgenerierung – Bilder aus Text-Prompts mit 6 Flux-Modellen generieren
Bildbearbeitung – Vorhandene Bilder mit kontextbewussten Flux-Kontext-Modellen bearbeiten
Aufgabenverwaltung – Asynchrone Generierungsaufgaben und Stapelstatusabfragen verfolgen
Modellführer – Integrierte Anleitung zur Modellauswahl und Prompt-Erstellung
Dualer Transport – stdio (lokal) und HTTP (remote/cloud) Modi
Docker-bereit – Containerisiert mit K8s-Bereitstellungsmanifesten
Sicher – Bearer-Token-Authentifizierung mit Anforderungsisolierung im HTTP-Modus
Related MCP server: DiffuGen
Tool-Referenz
Tool | Beschreibung |
| KI-Bilder aus einem Text-Prompt mit Flux generieren. |
| Ein vorhandenes Bild mit Flux und einem Text-Prompt bearbeiten. |
| Alle verfügbaren Flux-Modelle und ihre Fähigkeiten auflisten. |
| Alle verfügbaren Flux-Tools und ihre Anwendungsfälle auflisten. |
| Status und Ergebnis einer Flux-Bildgenerierungsaufgabe abfragen. |
| Mehrere Flux-Bildgenerierungsaufgaben gleichzeitig abfragen. |
Schnellstart
1. API-Token erhalten
Registriere dich auf der AceDataCloud-Plattform
Gehe zur API-Dokumentationsseite
Klicke auf „Abrufen“, um dein API-Token zu erhalten
Kopiere das Token für die spätere Verwendung
2. Gehosteten Server verwenden (empfohlen)
AceDataCloud hostet einen verwalteten MCP-Server – keine lokale Installation erforderlich.
Endpunkt: https://flux.mcp.acedata.cloud/mcp
Alle Anfragen erfordern ein Bearer-Token. Verwende das API-Token aus Schritt 1.
Claude.ai
Verbinde dich direkt auf Claude.ai mit OAuth – kein API-Token erforderlich:
Gehe zu Claude.ai Einstellungen → Integrationen → Weitere hinzufügen
Gib die Server-URL ein:
https://flux.mcp.acedata.cloud/mcpSchließe den OAuth-Anmeldevorgang ab
Beginne, die Tools in deinem Gespräch zu verwenden
Claude Desktop
Füge zu deiner Konfiguration hinzu (~/Library/Application Support/Claude/claude_desktop_config.json auf macOS):
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cursor / Windsurf
Füge zu deiner MCP-Konfiguration hinzu (.cursor/mcp.json oder .windsurf/mcp.json):
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}VS Code (Copilot)
Füge zu deiner VS-Code-MCP-Konfiguration hinzu (.vscode/mcp.json):
{
"servers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Oder installiere die Ace Data Cloud MCP-Erweiterung für VS Code, die die gehosteten MCP-Server mit einem Klick registriert.
JetBrains-IDEs
Gehe zu Einstellungen → Tools → KI-Assistent → Model Context Protocol (MCP)
Klicke auf Hinzufügen → HTTP
Füge ein:
{
"mcpServers": {
"flux": {
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Claude Code
Claude Code unterstützt MCP-Server nativ:
claude mcp add flux --transport http https://flux.mcp.acedata.cloud/mcp \
-h "Authorization: Bearer YOUR_API_TOKEN"Oder füge zu .mcp.json deines Projekts hinzu:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cline
Füge zu Clines MCP-Einstellungen hinzu (.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
Füge zu deiner MCP-Konfiguration hinzu:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Roo Code
Füge zu den Roo-Code-MCP-Einstellungen hinzu:
{
"mcpServers": {
"flux": {
"type": "streamable-http",
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Continue.dev
Füge zu .continue/config.yaml hinzu:
mcpServers:
- name: flux
type: streamable-http
url: https://flux.mcp.acedata.cloud/mcp
headers:
Authorization: "Bearer YOUR_API_TOKEN"Zed
Füge zu Zeds Einstellungen hinzu (~/.config/zed/settings.json):
{
"language_models": {
"mcp_servers": {
"flux": {
"url": "https://flux.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
}cURL-Test
# 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. Oder lokal ausführen (Alternative)
Wenn du den Server lieber auf deinem eigenen Rechner ausführen möchtest:
# 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 (Lokal)
{
"mcpServers": {
"flux": {
"command": "uvx",
"args": ["mcp-flux-pro"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_token_here"
}
}
}
}Docker (Selbsthosting)
docker pull ghcr.io/acedatacloud/mcp-flux-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-flux-pro:latestClients verbinden sich mit ihrem eigenen Bearer-Token – der Server extrahiert das Token aus dem Authorization-Header jeder Anfrage.
Verfügbare Tools
Tool | Beschreibung |
| Bilder aus Text-Prompts mit Modellauswahl generieren |
| Vorhandene Bilder mit Textanweisungen bearbeiten |
| Status einer einzelnen Generierungsaufgabe abfragen |
| Status mehrerer Aufgaben gleichzeitig abfragen |
| Alle verfügbaren Flux-Modelle und Fähigkeiten auflisten |
| Alle Tools und Workflow-Beispiele anzeigen |
Verfügbare Prompts
Prompt | Beschreibung |
| Anleitung zur Auswahl des richtigen Tools und Modells |
| Best Practices für effektive Prompts |
| Häufige Workflow-Muster und Beispiele |
Unterstützte Modelle
Modell | Qualität | Geschwindigkeit | Größenformat | Am besten geeignet für |
| Gut | Schnell | Pixel (256-1440px) | Schnelles Prototyping |
| Hoch | Mittel | Pixel (256-1440px) | Produktionseinsatz |
| Hoch | Mittel | Seitenverhältnisse | Bildbearbeitung |
| Höchste | Langsamer | Seitenverhältnisse | Komplexe Bearbeitung |
| Hoch | Schnell | Seitenverhältnisse | Flux 2 ausgewogene Qualität |
| Höher | Mittel | Seitenverhältnisse | Flux 2 Produktion |
| Höchste | Langsamer | Seitenverhältnisse | Flux 2 maximale Qualität |
| Gut | Schnell | Seitenverhältnisse | Flux 2 effiziente Ausgabe |
Verwendungsbeispiele
Ein Bild generieren
"Generate a photorealistic mountain landscape at golden hour"
→ flux_generate_image(prompt="...", model="flux-2-max", size="16:9")Ein Bild bearbeiten
"Add sunglasses to the person in this photo"
→ flux_edit_image(prompt="Add sunglasses", image_url="https://...", size="1:1", model="flux-kontext-pro")Aufgabenstatus prüfen
"What's the status of my generation?"
→ flux_get_task(task_id="...")Umgebungsvariablen
Variable | Erforderlich | Standard | Beschreibung |
| Ja (stdio) | — | API-Token von AceDataCloud |
| Nein |
| API-Basis-URL |
| Nein | — | OAuth-Client-ID (gehosteter Modus) |
| Nein |
| Plattform-Basis-URL |
| Nein |
| Anforderungs-Timeout in Sekunden |
| Nein |
| MCP-Servername |
| Nein |
| Protokollierungsstufe |
Entwicklung
Einrichtung
git clone https://github.com/AceDataCloud/FluxMCP.git
cd FluxMCP
pip install -e ".[all]"
cp .env.example .env
# Edit .env with your API tokenLint & Format
ruff check .
ruff format .
mypy core tools main.pyTest
# Unit tests
pytest --cov=core --cov=tools
# Skip integration tests
pytest -m "not integration"
# With coverage report
pytest --cov=core --cov=tools --cov-report=htmlGit-Hooks
git config core.hooksPath .githooksAPI-Referenz
Dieser MCP-Server verwendet die AceDataCloud-Flux-API:
POST /flux/images – Bilder generieren oder bearbeiten
POST /flux/tasks – Aufgabenstatus abfragen (einzeln oder stapelweise)
Vollständige API-Dokumentation: platform.acedata.cloud
Dokumentation
Lizenz
MIT-Lizenz – siehe LICENSE für Details.
Links
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-