Flux Kontext MCP logo

Flux Kontext MCP

Run Flux Kontext image-generation tasks through RunAPI, with asynchronous status polling and pricing lookup over MCP.

Install Flux Kontext 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-kontext-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/flux-kontext-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio flux-kontext-mcp -- npx -y @runapi.ai/flux-kontext-mcp

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

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

Overview

flux-kontext-mcp connects MCP-compatible assistants to RunAPI's Flux Kontext models for image-generation tasks. It exposes tools to create text-to-image jobs, retrieve task status and payloads, and check model pricing. Created tasks can either return immediately or wait for a terminal status, making the server suitable for interactive agents and deferred workflows. Reach for it when an assistant needs focused access to Flux Kontext rather than the full RunAPI model catalog.

Use cases

  • Create Flux Kontext images from natural-language prompts
  • Submit image-generation tasks without waiting for completion
  • Poll existing RunAPI tasks for status and output URLs
  • Check model pricing before starting a generation job

Key features

  • Flux Kontext text-to-image task creation
  • Optional waiting for terminal task status
  • Task status and payload retrieval
  • RunAPI pricing lookup without authentication
  • Support for flux-kontext-max and flux-kontext-pro
  • Standard MCP stdio configuration

Tools4

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

Verified live~733 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 4 tools this server returned when we ran it.

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

Observed 2026-11-02 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-kontext-mcp (npm)

Adoption & maintenance

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

npm downloads502Package 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 exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Flux Kontext MCP works

What flux-kontext-mcp does

flux-kontext-mcp gives MCP-compatible clients access to the Flux Kontext model line through RunAPI. It focuses on one endpoint and two model variants: flux-kontext-max and flux-kontext-pro. The server is intended for agents that need to create image-generation jobs, inspect asynchronous results, or review pricing without exposing the broader RunAPI catalog.

The package is available as @runapi.ai/flux-kontext-mcp and runs as an MCP server over a standard stdio command. It can be added to an MCP host with npx -y @runapi.ai/flux-kontext-mcp.

How it works

A client sends tool calls through MCP, and the server forwards the relevant operation to RunAPI. Image generation is asynchronous: text_to_image creates a task and can either wait for a terminal state or return as soon as the task is submitted. The response includes the task ID, status, and any output URLs available at that point.

For deferred workflows, an agent can save the returned task ID and later call get_task to retrieve the latest status and payload. Pricing can be checked independently with check_pricing, including before authentication. Model availability may change, so pricing lookup or the Flux Kontext model page should be used for the current catalog.

Setup and configuration

Install the package through an MCP client's stdio configuration. Claude Code can register it with either user or project scope. Other hosts can use the equivalent configuration:

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

Pricing lookup does not require authentication. Creating tasks and checking their status require RunAPI authentication. An interactive client can invoke the login flow, which opens a browser and stores credentials in ~/.config/runapi/config.json; that file is also used by runapi login.

For headless or CI environments, set RUNAPI_API_KEY before starting the MCP host. Authentication can alternatively use a pre-provisioned configuration file containing an apiKey value. Real credentials should not be committed to a repository.

Tools and capabilities

  • text_to_image: Creates a Flux Kontext text-to-image task. It accepts the supported model variants and can wait for completion or return immediately with the task ID.
  • get_task: Retrieves the current state and latest payload for an existing task.
  • check_pricing: Looks up pricing for a Flux Kontext model and endpoint without authentication.
  • Supports flux-kontext-max and flux-kontext-pro for image-generation requests.
  • Returns output URLs when they are available from the task response.

Limitations and notes

The server is scoped to Flux Kontext rather than the complete RunAPI model catalog. It covers two model variants across one endpoint, and model availability can change between releases. Authentication is needed for task creation and status polling, while pricing remains available without a key. The server depends on an MCP host that can launch a stdio server and on RunAPI access for authenticated operations.

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

flux-kontext-mcp is an MCP server that connects AI assistants to RunAPI's Flux Kontext models. Its main tools create text-to-image tasks, retrieve task status and payloads, and check current pricing. It supports the flux-kontext-max and flux-kontext-pro variants through a focused stdio MCP interface.

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

Authenticate by using the MCP login flow or by setting `RUNAPI_API_KEY`. The login flow opens a browser and stores credentials in `~/.config/runapi/config.json`; headless and CI environments can provide the environment variable before launching the MCP host.

Yes, `check_pricing` works without authentication. Creating Flux Kontext tasks and polling their status require authentication, while pricing can be checked before signing in.

Yes, Cursor can run flux-kontext-mcp using the standard stdio configuration with `npx -y @runapi.ai/flux-kontext-mcp`. The same command is also suitable for other MCP-compatible 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 Kontext MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/flux-kontext-mcp?style=directory)](https://allmcps.com/mcp/flux-kontext-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/flux-kontext-mcp"><img src="https://allmcps.com/api/badge/flux-kontext-mcp?style=directory" alt="Flux Kontext MCP on AllMCPs" /></a>