Logo van FLUX

FLUX

Organisatie
black-forest-labs

Official FLUX MCP server. Generate, edit, vary, and browse FLUX images from any MCP client.

Uitgeverblack-forest-labs
Repositoryflux-mcp
Forks
2
Sterren
10
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    FLUX biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    10 sterren en 2 forks in de gekoppelde repository.


The FLUX MCP server exposes the full FLUX toolkit — text-to-image, image editing, multi-reference composition, virtual try-on, FLUX 3 video, variations, and history — to any client that speaks the Model Context Protocol. Generate options in parallel, edit attached images through prompts, try garments on a photo, animate stills into clips with audio, and branch into variations from any result you like. No API code, no keys pasted into the conversation.

  • Hosted, remote, OAuth-only. Connect to https://mcp.bfl.ai. Sign in with your BFL account, pick the org to bill — done.
  • Every FLUX.2 model. Pro, Max, Klein (4B & 9B), Flex. Your client picks the right one for the task.
  • FLUX 3 video. Text-to-video, image-to-video from keyframes, and video continuation with synchronized audio, draft previews included.
  • Built for chat. Up to 8 images in parallel per prompt. Edit attached images. Browse and reuse history.
  • Specialist prompting guides. Official BFL guides cover focused image and FLUX 3 workflows.
  • You pay BFL directly. No middleman, no shared quotas. Current rates: bfl.ai/pricing.

Install

  1. Open Settings → Connectors.
  2. Click Add custom connector.
  3. Name it FLUX, URL https://mcp.bfl.ai.
  4. Click Connect, sign in, choose the BFL organization to bill.
bash
claude mcp add --transport http FLUX https://mcp.bfl.ai

A browser opens on first use for OAuth. Tokens refresh automatically.

One-click: Add to Cursor — opens Cursor with the FLUX server pre-filled.

Manual — add to .cursor/mcp.json:

json
{
  "mcpServers": {
    "FLUX": {
      "url": "https://mcp.bfl.ai"
    }
  }
}
bash
codex mcp add flux --url https://mcp.bfl.ai
codex mcp login flux

Or append to ~/.codex/config.toml:

toml
[mcp_servers.flux]
url = "https://mcp.bfl.ai"

Edit ~/.codeium/windsurf/mcp_config.json (note Windsurf uses serverUrl, not url):

json
{
  "mcpServers": {
    "FLUX": {
      "serverUrl": "https://mcp.bfl.ai"
    }
  }
}

Reload plugins from the Cascade panel. The first FLUX call opens a browser for sign-in.

For clients that support stdio MCP but don't handle the OAuth flow themselves — for example Hermes (Nous Research) and similar tools that only accept static bearer tokens:

json
{
  "mcpServers": {
    "FLUX": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.bfl.ai"]
    }
  }
}

mcp-remote opens a browser for OAuth, caches tokens to ~/.mcp-auth/, and refreshes them automatically.


Showcase

Generate a batch of options in one prompt

"Generate 4 editorial portrait variants — varied lighting, palette, and mood."

Or just one — when a single hero shot is what you need

"A top-down aerial photograph of shallow desert salt pools, intense direct sunlight."

Edit any image directly in chat

"Add a camel on the sand."

Browse and reuse your full generation history

"Show me my recent FLUX generations."

Every generation is saved. Tap any tile to edit, vary, or download. Variations branch off any past image in one click.


Tools

Your client picks which tool to call based on your prompt — you don't need to invoke them by name.

ToolWhat it does
generate_imageGenerate 1–8 images in parallel. Covers text-to-image, edits, multi-reference composition, style transfer, inpainting-style edits, and outpainting — all through prompts.
vtoVirtual try-on — dress a person (or pet) in a garment, hat, sunglasses, shoes, bag, or any wearable from a reference image. Preserves face, hair, and pose; only the worn item changes.
generate_videoGenerate 1–4 videos in parallel with FLUX 3 — text-to-video, image-to-video from keyframes, or continuation of an existing video. 5–20 seconds, synchronized audio.
enhance_videoRe-render a draft video at full quality — the same composition, seed, and prompt plan as the draft you picked.
generate_variationsProduce N more images in the same direction as a previous generation (identified by request_id). Defaults to 4, max 8.
get_historyList recent generations as a thumbnail grid with per-tile Variations / Edit / copy / download actions. Keyset pagination, date filters.
get_creditsReturn your remaining BFL credit balance.
list_skillsList the official BFL prompting guides — image best practices, video direction, audio and dialogue, keyframes, product ads, archival looks, API integration.
get_skillFetch one guide by name. Long guides return an intro plus a section index; fetch the sections the task needs.

Models

Available on generate_image:

ModelUse it for
flux2_pro_preview (default)Everyday work — best balance of quality and speed
flux2_maxHero shots, final assets — highest quality
flux2_klein_9b_previewFaster iterations, up to 4 input images
flux2_klein_4bFastest option
flux2_flexTypography and readable text

The full catalog, per-model reference-image limits, the FLUX Tools (vto), and FLUX 3 video are also exposed as the bfl://models MCP resource.

Video

generate_video renders 24fps MP4 clips of 5–20 seconds with synchronized audio, up to 4 in parallel per call. Every request uses one of three modes:

ModeInputWhat you get
t2vPrompt onlyA clip generated from your description
i2vPrompt + 1–10 keyframe imagesOne keyframe animates a still from its exact opening frame; two bridge an opening and a closing frame; 3–10 form a storyboard spread evenly across the clip (explicit duration required)
v2vPrompt + a source videoA continuation of the source's final seconds, audio included
  • Prompts are prose FLUX 3 reasons about the prompt and plans the generation before rendering — describe the scene, the motion, and the sound. There is no seed or model parameter on video.
  • Keyframes reference a prior result (request_id), an uploaded image, or a public URL. Optional per-keyframe timestamps (in seconds, ascending — set on all keyframes or none) pin exact positions in the clip; with duration set to auto, the clip runs to the last timestamp (20 seconds max).
  • Source videos for v2v are a prior generate_video result, an attached MP4 up to 50 MB, or a public MP4 URL.
  • Format controls. duration: 5–20 seconds or auto (default). aspect_ratio: auto (default), 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, or 9:16. resolution: hd (default, 704p-class) or fhd (finished by a video upsampler on a 1080p-class canvas). generate_audio: on by default.
  • Drafts are the way to explore. draft: true renders a fast low-step preview of the exact planned generation (hd only). Batch cheap drafts, pick the winner, and enhance_video re-renders it at full quality from its request_id.
  • Renders take minutes — long clips up to about an hour. The tool returns immediately with a pending request_id; results survive closing the chat and resume automatically.
  • Reference-based conditioning (identity and motion references) is not part of the video surface; a dedicated r2v mode follows later.

Prompting skills

The server ships specialist prompting guides from black-forest-labs/skills and serves them three ways, so every client gets at least one. These guides cover focused workflows; a general FLUX 3 prompting guide is not included yet:

  • Tools — list_skills and get_skill(name). Works everywhere, including ChatGPT.
  • Resources — bfl://skills/<name> for clients with resource pickers (Claude, Cursor).
  • Prompts — skill_<name_with_underscores> slash-prompts where the client supports them (e.g. skill_flux_image_best_practices).

Ask "what FLUX skills do you have?", or just request something specialized like a product ad, Super 8 footage, dialogue direction. The generation tools point your client at the matching guide before it writes the prompt.


Example prompts

Try these in your client once FLUX is connected:

Generate 4 editorial portrait variants — varied lighting, palette, and mood.
Use FLUX.2 [pro] at 1440×1792.
A top-down aerial photograph of shallow desert salt pools at golden hour,
intense direct sunlight, #FF6B6B and #F5E6D3 mineral deposits, FLUX.2 [max].
[attach an image]
Add a camel on the sand. Preserve the rest of the composition exactly.
Generate a movie poster with the title "MIRAGE" in 1970s grindhouse type,
high-contrast cyan and orange. Use FLUX.2 [flex].
[attach a selfie]
Try this on me — a red Nike Tech Fleece hoodie, oversized fit.
[attach an image]
Animate this into a 10-second clip — slow push-in, wind through the palms,
distant surf.
Generate 3 draft videos of a paper lantern rising over a night market,
each with a different camera move. I'll enhance the best one.
Show me my recent FLUX generations.
[click Variations on a past image]
4 more like this one, vary the lighting.

Prompt tips

  • Front-load the subject. Put the most important object, person, or scene first.
  • Describe lighting. "Soft golden hour light" or "overcast diffused studio light" gives the model useful direction.
  • Use hex colors. #FF6B6B (coral pink) is more precise than "pinkish red".
  • Quote rendered text. Use exact quoted strings for typography, labels, posters, and signs.
  • Avoid negative prompts. FLUX responds to what you describe, not a list of what to avoid.
  • Iterate from results. Use Variations for alternatives, or Edit to keep refining a generated image.

The server exposes specialist guides for focused workflows. A general FLUX 3 prompting guide is not included yet.


Troubleshooting

  • Claude Desktop / claude.ai: Settings → Connectors, confirm FLUX shows as Connected. If it failed silently, remove and re-add — make sure pop-ups aren't blocked so the OAuth window can open.
  • Claude Code: claude mcp list should show the server.
  • Codex: codex mcp list should show flux. Start a new Codex session after adding.
  • Quick smoke test: ask your client "check my BFL credits".
  • Claude.ai / Desktop: Settings → Connectors → toggle FLUX off and on, or click Reconnect.
  • Claude Code: /mcp shows status and reauth. Full rebuild:
    bash
    claude mcp remove FLUX
    claude mcp add --transport http FLUX https://mcp.bfl.ai
  • Codex: codex mcp login flux. Full rebuild:
    bash
    codex mcp remove flux
    codex mcp add flux --url https://mcp.bfl.ai
  • mcp-remote clients: rm -rf ~/.mcp-auth and restart the client to force a fresh OAuth.
  • Make sure you have a BFL account at bfl.ai.
  • Disconnect and reconnect the connector to redo OAuth.
  • Check the selected organization has sufficient credits.
  • Ask your client to check your BFL credits to verify the balance.

Large batches, FLUX.2 [max], or complex edits take longer than smaller generations. Visual MCP clients update the image view automatically.

Video renders take minutes — long clips up to about an hour. They return a pending request immediately and resume automatically, even if you close the chat and come back later.

Your MCP client needs permission to upload attached media to BFL. If your client blocks outbound HTTPS from its sandbox, allow *.bfl.ai or pass a public URL instead. Video uploads are MP4 only, up to 50 MB.

Disconnect the FLUX connector in your client and reconnect it. The OAuth flow will prompt you to select an organization again.


Agent Skills (companion repo)

MCP and Agent Skills solve different problems:

MCP (this repo)Agent Skills
What it doesGenerates, edits, varies, and browses images directly in chatTeaches your coding agent how to write FLUX API code
Best forCreative work inside Claude or another MCP clientBuilding applications that call the FLUX API

Use both. They complement each other and the skills repo's prompting guides are served directly over MCP too (see Prompting skills).


Links


License

MIT © Black Forest Labs

Gebruik FLUX MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra FLUX is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg FLUX toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van FLUX.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "flux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van FLUX in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van FLUX in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je FLUX gebruiken om me hiermee te helpen?
FLUX
Zeker. Ik heb het gelezen.
Dit vond ik met FLUX.

Veelgestelde vragen

Waarvoor wordt de MCP-server FLUX gebruikt?

FLUX is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik FLUX MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je FLUX gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom FLUX MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als FLUX verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik FLUX MCP met TypingMind?

FLUX werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt FLUX MCP in TypingMind?

FLUX biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om FLUX MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als FLUX authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇