KIE MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RUNAPI_API_KEY | No | RunAPI API key, useful for headless and CI hosts. The server resolves auth in this order: 1. RUNAPI_API_KEY environment variable, useful for headless and CI hosts 2. ~/.config/runapi/config.json, created by the MCP login tool or runapi login 3. No key, which still allows check_pricing. |
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 kie 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. |
| upscale_imageC | Create a KIE task on RunAPI (upscale image). Returns a task id, status, and output URLs. |
| upscale_videoB | Create a KIE task on RunAPI (upscale video). Returns a task id, status, and output URLs. |
| get_taskB | Fetch the current status and latest result payload for a kie task. |
| check_pricingC | Look up RunAPI pricing for the kie 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 targets a distinct action: pricing lookup, authentication, image upscaling, video upscaling, and task status polling. The two upscale tools are cleanly separated by media type, so there is no realistic misselection risk.
Four of five tools follow a clear verb_noun snake_case pattern (check_pricing, upscale_image, upscale_video, get_task). 'login' is a single-verb outlier, but it is a conventional standalone term and does not break readability.
Five tools is well-scoped for an upscaling-only integration, and each earns its place (auth is a prerequisite for the task tools). It is on the thin side, with no task listing or cancellation, but not mismatched to the stated purpose.
The core lifecycle exists: authenticate, check pricing, create a task, and poll its status. However, there is no way to list existing tasks or cancel a running one, leaving agents with dead ends if a task id is lost or a job must be aborted.