Skip to main content
Glama
runapi-ai

@runapi.ai/flux-kontext-mcp

by runapi-ai

@runapi.ai/flux-kontext-mcp

RunAPI MCP server for the Flux Kontext model line. Create image tasks, poll their status, and check pricing through a single RunAPI API key.

Tools

  • text_to_image — create a Flux Kontext task and (optionally) poll until it reaches a terminal status. Returns the task id, status, output URLs, and a price snapshot. Models: flux-kontext-max, flux-kontext-pro.

  • get_task — fetch the current status and latest payload for a task.

  • check_pricing — look up pricing for a model in this line.

Related MCP server: Image Generation MCP Server

Configuration

Set a RunAPI API key via the RUNAPI_API_KEY environment variable, or write it to ~/.config/runapi/config.json:

mkdir -p ~/.config/runapi
echo '{"api_key":"YOUR_KEY"}' > ~/.config/runapi/config.json

Get an API key at https://runapi.ai. Pricing is listed at https://runapi.ai/pricing.

Usage

Run the server over stdio:

npx -y @runapi.ai/flux-kontext-mcp

Add it to an MCP client (see examples/ for per-client configs):

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

License

Apache-2.0

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runapi-ai/flux-kontext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server