Flux 2 MCP logo

Flux 2 MCP

Generate and remix Flux 2 images, track asynchronous RunAPI tasks, and check model pricing through MCP.

Install Flux 2 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-2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/flux-2-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-2-mcp -- npx -y @runapi.ai/flux-2-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-2-mcp MCP server connects MCP-compatible agents to RunAPI's Flux 2 image-generation endpoints. It creates text-to-image and image-remix tasks, optionally waits for completion, retrieves task status, and returns output URLs. Use it when an agent should work with the six Flux 2 model variants without exposing the broader RunAPI catalog. Pricing can be checked without authentication, while task operations require RunAPI credentials.

Use cases

  • Generate images from text prompts
  • Remix source images with Flux 2
  • Poll asynchronous image-generation tasks
  • Check Flux 2 pricing before submission

Key features

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

Tools5

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

Verified live~983 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 88d

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 age132 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-2-mcp (npm)

Adoption & maintenance

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

npm downloads393Package 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.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Flux 2 MCP works

What flux-2-mcp does

RunAPI's Flux 2 model line becomes available to MCP-compatible assistants through four focused tools. text_to_image submits a prompt-based image-generation task, while remix_image creates a task based on an input image. Both creation tools can either return after submission or wait for a terminal task state, then report the task ID, status, and resulting output URLs.

get_task retrieves the latest status and payload for an existing task. check_pricing returns pricing for a selected Flux 2 model and endpoint and is available without signing in. The package covers two endpoint types and six model variants: Flex, Max, and Pro for both text-to-image and remix-image operations.

How it works

The package runs as a standard stdio MCP server. MCP hosts start it with npx -y @runapi.ai/flux-2-mcp, then expose its tools to an assistant. A request can submit an asynchronous task with waiting enabled or disabled. When waiting is disabled, the returned task ID can be passed to get_task later.

Authentication is resolved in this order: the RUNAPI_API_KEY environment variable, the RunAPI configuration file at ~/.config/runapi/config.json, or no credential. The no-credential mode supports pricing lookups only. The MCP login flow can open a browser, authenticate the user, and save credentials in the same configuration file used by runapi login.

Setup and configuration

For Claude Code, add the server with:

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

Use project scope instead when the configuration should be shared with a repository. Other MCP hosts can use the equivalent stdio configuration:

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

For interactive use, ask the assistant to invoke login. Headless and CI environments can set RUNAPI_API_KEY before launching the host. A pre-provisioned configuration file can contain an apiKey property. Keep API keys out of source control.

Tools and capabilities

  • text_to_image: submit a Flux 2 text-to-image task and optionally wait for its terminal result.
  • remix_image: submit a Flux 2 image-remix task and optionally wait for completion.
  • get_task: inspect the current state and latest payload of an existing task.
  • check_pricing: query pricing for a Flux 2 model and endpoint without authentication.

The text-to-image tool supports flux-2-flex-text-to-image, flux-2-max-text-to-image, and flux-2-pro-text-to-image. The remix tool supports the corresponding Flex, Max, and Pro remix models. Model availability may change, so pricing lookup or the Flux 2 model page should be used for the current catalog.

Limitations and notes

Task creation and status retrieval require authentication; pricing lookup does not. The package is intentionally scoped to Flux 2 rather than the complete RunAPI model catalog. Choose the broader RunAPI MCP package when an assistant needs to discover other model families. Asynchronous tasks may need a later get_task call when submitted without waiting. The project is licensed under Apache-2.0.

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 2 MCP

flux-2-mcp is an MCP server that connects AI assistants to RunAPI's Flux 2 image-generation endpoints. Its main tools create text-to-image and remix-image tasks, retrieve task status, and check model pricing. It supports six Flux 2 variants across the Flex, Max, and Pro model families.

Install it by configuring your MCP host to run `npx -y @runapi.ai/flux-2-mcp`. Claude Code users can run `claude mcp add flux-2 -s user -- npx -y @runapi.ai/flux-2-mcp`; other hosts can use the equivalent stdio JSON configuration.

Authenticate with the MCP `login` flow or set `RUNAPI_API_KEY` before starting the MCP host. The login flow opens a browser and saves credentials to `~/.config/runapi/config.json`; pricing checks work without authentication.

Yes, `text_to_image` and `remix_image` can optionally wait for a terminal status. If you submit with waiting disabled, use the returned task ID with `get_task` to check the latest status and payload later.

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 2 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/flux-2-mcp?style=directory)](https://allmcps.com/mcp/flux-2-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/flux-2-mcp"><img src="https://allmcps.com/api/badge/flux-2-mcp?style=directory" alt="Flux 2 MCP on AllMCPs" /></a>