Flux Image Generator MCP Server

Generates images from text prompts using the Black Forest Lab's FLUX model.

Local serverstdio 1

What is the Flux Image Generator MCP server?

Generates images from text prompts using the Black Forest Lab's FLUX model. The flux image generator mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 3 defined tools rather than through you.

What it actually does

An MCP (Model Context Protocol) server for generating images using Black Forest Lab's FLUX model. Uses the latest MCP SDK (v1.7.0).

  • Generate images based on text prompts
  • Customize image dimensions, prompt upsampling, and safety settings
  • Save generated images locally
  • Batch image generation from multiple prompts

Its toolset

Everything the assistant can do here goes through one of these:

  • generateImage — Generates an image based on a text prompt with customizable settings
  • quickImage — A simplified tool for quickly generating images with default settings
  • batchGenerateImages — The batchGenerateImages tool exposed by this server

Adding it to your client

@modelcontextprotocol/server-flux-image-generator on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need one environment variable: BFL_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

This sits in the AI and media services group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Flux Image Generator's toolset — generateImage, quickImage, batchGenerateImages — is a fair guide to whether it matches your workflow. It is maintained by frankdeno; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the flux image generator mcp server does with a few real requests.

Available tools

ToolWhat it does
generateImageGenerates an image based on a text prompt with customizable settings.
quickImageA simplified tool for quickly generating images with default settings.
batchGenerateImagesThe batchGenerateImages tool exposed by this server.

How to install the Flux Image Generator MCP server

{
  "mcpServers": {
    "flux-image-generator": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-flux-image-generator"],
      "env": {
        "BFL_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
BFL_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Flux Image Generator to generateImage.
  • Use Flux Image Generator to quickImage.
  • Use Flux Image Generator to batchGenerateImages.

Frequently asked questions

It features text-prompt-based image generation, customizable image dimensions, prompt upscaling, safety settings, batch image generation from multiple prompts, local saving of images, and integration with MCP clients.