# flux-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/runapi-ai/flux-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 342  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/flux-mcp

## Description
RunAPI MCP server for Flux: create tasks, poll status, check pricing.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
- **remix_image** — Create a Flux task on RunAPI (remix image). Returns a task id, status, and output URLs.
- **text_to_image** — Create a Flux task on RunAPI (text to image). Returns a task id, status, and output URLs.
- **get_task** — Fetch the current status and latest result payload for a flux task.
- **check_pricing** — Look up RunAPI pricing for the flux model line.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `RUNAPI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

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

For other MCP clients, use the same stdio command:

```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.

_Full upstream README: https://allmcps.com/mcp/flux-mcp/readme_

