@runapi.ai/gpt-image-2-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RUNAPI_API_KEY | No | Your RunAPI API key. Alternatively, write it to ~/.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 gpt-image-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. |
| edit_imageB | Create a GPT Image 2 task on RunAPI (edit image). Returns a task id, status, and output URLs. |
| text_to_imageB | Create a GPT Image 2 task on RunAPI (text to image). Returns a task id, status, and output URLs. |
| get_taskC | Fetch the current status and latest result payload for a gpt-image-2 task. |
| check_pricingC | Look up RunAPI pricing for the gpt-image-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 has a clearly distinct role: authentication, pricing lookup, task status retrieval, and two creation paths split cleanly by input modality (text vs. image). An agent can select unambiguously based on whether it has a prompt or an existing image.
All names use consistent snake_case, which is good, but the verb_noun pattern is not uniform: edit_image and get_task follow it, while text_to_image is noun-based and login lacks a noun. Minor deviations only, still easily readable.
Five tools is a tight, well-scoped surface for an asynchronous image-generation service; auth, pricing, both generation modes, and result polling each earn their place with no filler.
The core lifecycle (login → price check → create task → poll result) is fully covered with no dead ends. Minor gaps remain: no list_tasks to recover lost task ids and no cancel/delete for queued or failed tasks.