Logo de FLUX

FLUX

Organização
black-forest-labs

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

Publicado porblack-forest-labs
Repositórioflux-mcp
Forks
2
Estrelas
10
Ferramentas disponíveis
0
Tipo de transportestdio
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    FLUX disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    10 estrelas e 2 forks no repositório vinculado.


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

Use o MCP de FLUX com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar FLUX, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione FLUX como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de FLUX.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "flux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de FLUX, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de FLUX.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar FLUX para me ajudar nesta tarefa?
FLUX
Claro. Já li.
Veja o que encontrei usando FLUX.

Perguntas frequentes

Para que serve o servidor MCP FLUX?

FLUX é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP FLUX com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar FLUX com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP FLUX com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com FLUX conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP FLUX ao TypingMind?

FLUX funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP FLUX oferece no TypingMind?

FLUX disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP FLUX?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se FLUX exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇