Flux MCP logo

Flux MCP

Run Flux image generation and remix tasks through RunAPI, monitor results, and check model pricing from an MCP-compatible client.

Install Flux MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "flux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/flux-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env RUNAPI_API_KEY=YOUR_VALUE_HERE --transport stdio flux-mcp -- npx -y @runapi.ai/flux-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

flux-mcp connects MCP-compatible assistants to Flux models through RunAPI for text-to-image and image-remix jobs. It can submit asynchronous tasks, optionally wait for terminal results, retrieve task status, and return output URLs. Pricing lookup works without authentication, while task creation and polling use RunAPI credentials. Reach for it when an agent needs a narrowly scoped Flux integration instead of the full RunAPI model catalog.

Use cases

  • Generate images from text prompts with Flux
  • Remix source images through Flux
  • Submit image tasks without waiting for completion
  • Poll existing generation tasks for output URLs
  • Check Flux pricing before creating a task

Key features

  • Flux text-to-image task creation
  • Flux image remix task creation
  • Optional terminal-status waiting
  • Task status and payload retrieval
  • Unauthenticated pricing lookup
  • Support for three Flux model variants

Tools5

What Flux MCP lets your agent do. Expand a tool for its parameters.

Verified live~796 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 83d

What it can do

From the 5 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age103 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @runapi.ai/flux-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads342Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Flux MCP works

What flux-mcp does

flux-mcp exposes RunAPI access for the Flux model line through the Model Context Protocol. It focuses on two image-generation workflows:

  • Creating images from text prompts.
  • Remixing an existing image through Flux.

The server also provides task inspection and pricing lookup. It covers three model variants across two endpoints: flux-2-klein, flux-dev, and flux-pro. Remix operations support flux-dev and flux-pro, while text-to-image operations support all three listed variants.

Use this package when an assistant should work specifically with Flux. A broader RunAPI MCP package is intended for assistants that need to discover other RunAPI model lines as well.

How it works

The server communicates with MCP hosts over its standard input/output command. An assistant can call text_to_image or remix_image to submit a task. Each operation accepts a wait option: with waiting enabled, the tool can continue until a terminal status and return the task identifier, status, and generated output URLs; with wait: false, it returns the task identifier so the job can be checked later.

get_task retrieves the latest status and payload for an existing task. This supports workflows where image generation is submitted first and monitored in a later interaction. check_pricing queries the current price for a Flux model and endpoint and is available without signing in.

Model availability may change between releases. Pricing lookup or the Flux model page provides the current catalog view.

Setup and configuration

Install the package through npx in an MCP host. A Claude Code configuration can be added with:

Terminal
claude mcp add flux -s user -- npx -y @runapi.ai/flux-mcp

For other MCP clients, use the same stdio command:

config.json
{
  "mcpServers": {
    "flux": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/flux-mcp"]
    }
  }
}

Authentication is resolved in this order:

  1. RUNAPI_API_KEY.
  2. The credentials stored in ~/.config/runapi/config.json.
  3. No credentials, which still permits check_pricing.

The MCP login workflow can open a browser sign-in and save credentials to the same configuration file used by runapi login. Headless environments can set RUNAPI_API_KEY before starting the MCP host. A pre-provisioned configuration file may contain an apiKey property. Keep real keys out of source control.

Tools and capabilities

  • text_to_image: submits a Flux text-to-image task and can wait for completion.
  • remix_image: submits a Flux image-remix task and can wait for completion.
  • get_task: obtains the current status and latest payload for an existing task.
  • check_pricing: looks up pricing for a Flux model and endpoint without authentication.

The create operations return task metadata and output URLs when available. The supported model set depends on the selected operation, so clients should use the appropriate model name for each tool.

Limitations and notes

Task creation and status polling require RunAPI authentication; pricing checks do not. Image generation is asynchronous, so a submitted task may need a later get_task call when the client does not wait for completion. The package is scoped to Flux rather than the complete RunAPI catalog, and model availability can change between releases.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Flux MCP

flux-mcp is an MCP server that connects AI assistants to Flux models through RunAPI. Its main tools create text-to-image and image-remix tasks, retrieve task status and payloads, and check model endpoint pricing. Tasks can optionally wait for terminal results and return generated output URLs.

Install it with the stdio command `npx -y @runapi.ai/flux-mcp` in your MCP client configuration. Claude Code can use `claude mcp add flux -s user -- npx -y @runapi.ai/flux-mcp`; project scope is also supported.

Set `RUNAPI_API_KEY` before starting the MCP host or use the MCP login workflow to save credentials in `~/.config/runapi/config.json`. Task creation and status polling require authentication, while `check_pricing` works without a key.

Yes, `check_pricing` can look up current pricing for a Flux model and endpoint without authentication. An assistant can call it before `text_to_image` or `remix_image` to decide whether to submit the task.

Yes, Cursor can run flux-mcp with the standard stdio configuration using `npx -y @runapi.ai/flux-mcp`. The same command is also used with Claude Code, Codex, Windsurf, VS Code, Roo Code, and other MCP hosts.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFlux MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/flux-mcp?style=directory)](https://allmcps.com/mcp/flux-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/flux-mcp"><img src="https://allmcps.com/api/badge/flux-mcp?style=directory" alt="Flux MCP on AllMCPs" /></a>