@runapi.ai/flux-2-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RUNAPI_API_KEY | Yes | Your RunAPI API key. Get one at https://runapi.ai. |
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-2 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. |
| remix_imageC | Create a Flux 2 task on RunAPI (remix image). Returns a task id, status, and output URLs. |
| text_to_imageB | Create a Flux 2 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-2 task. |
| check_pricingC | Look up RunAPI pricing for the flux-2 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 5 tools
Each tool maps to a clearly different operation: authentication, pricing lookup, task polling, and two distinct generation entry points. The only mild overlap is between text_to_image and remix_image, but the descriptions (text-to-image vs. remix) make the input-mode distinction explicit.
Four of five names follow a predictable snake_case verb_noun pattern (check_pricing, get_task, text_to_image, remix_image). The lone outlier is 'login', a bare verb with no noun, which is a minor deviation rather than a different convention.
Five tools is tightly scoped to a single-model image generation service: auth, pricing, status, and two generation modes. Every tool earns its place and there is no filler.
The lifecycle of auth -> price check -> create task -> poll task is fully covered, so core workflows are achievable. Gaps are minor but real: no list_tasks to find a previously created task id and no cancel_task, which forces agents to retain ids themselves.