@runapi.ai/flux-kontext-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RUNAPI_API_KEY | Yes | Your RunAPI API key. Can also be stored in ~/.config/runapi/config.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
RunAPI MCP server for the flux-kontext model line.
Each tool creates a RunAPI media task and optionally polls until completion. Behavior:
Use the user's language and be concise.
Confirm before expensive, long-running, or batch requests.
Present results as task ID, status, output URLs, and cost fields when available.
Do not describe generated media as if you inspected it.
On an API key error, call the login tool for interactive browser auth; headless hosts can use RUNAPI_API_KEY or ~/.config/runapi/config.json.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| loginA | Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json. |
| text_to_imageB | Create a Flux Kontext task on RunAPI (text to image). Returns a task id, status, and output URLs. |
| get_taskB | Fetch the current status and latest result payload for a flux-kontext task. |
| check_pricingB | Look up RunAPI pricing for the flux-kontext model line. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a distinct role: authentication, pricing lookup, task status retrieval, and task creation. There is no meaningful overlap between tool purposes, and the create-vs-fetch boundary for tasks is clear.
The set mixes conventions: `check_pricing` and `get_task` use verb_noun, `login` is a bare verb, and `text_to_image` uses a noun_to_noun style. It remains readable, but the pattern is not consistent across tools.
Four tools are well-scoped for a focused text-to-image service: authenticate, check pricing, create a task, and poll task status. Each tool clearly earns its place without excess surface area.
The core async workflow is covered: login, pricing, task creation, and task status retrieval. Minor lifecycle gaps remain, such as task cancellation or listing tasks, but they are not fatal for the primary use case.