midjourney-mcp
v0.4.2RunAPI MCP server for Midjourney: create tasks, poll status, check pricing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Re-run browser login when the current credential comes from the local config file. |
edit_image
Create a Midjourney task on RunAPI (edit image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Declared type: string. |
source_image_url * | string | Declared type: string. |
callback_url | string | Declared type: string. |
include_split_images | boolean | Declared type: boolean. |
mask_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
poll_interval_ms | integer | |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
extend_video
Create a Midjourney task on RunAPI (extend video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
source_task_id * | string | Declared type: string. |
callback_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
image_to_video
Create a Midjourney task on RunAPI (image to video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
source_image_url * | string | Declared type: string. |
callback_url | string | Declared type: string. |
enable_loop | boolean | Declared type: boolean. |
last_frame_image_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
output_resolution | string | Declared type: string. Known values: "480p". |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
text_to_image
Create a Midjourney task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Declared type: string. |
callback_url | string | Declared type: string. |
enable_prompt_translation | boolean | Declared type: boolean. |
include_split_images | boolean | Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
poll_interval_ms | integer | |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
get_seed
Run a synchronous Midjourney operation on RunAPI (get seed). Returns the operation result.
| Parameter | Type | Description |
|---|---|---|
image_id * | string | Declared type: string. |
image_to_prompt
Run a synchronous Midjourney operation on RunAPI (image to prompt). Returns the operation result.
| Parameter | Type | Description |
|---|---|---|
source_image_url * | string | Declared type: string. |
shorten_prompt
Run a synchronous Midjourney operation on RunAPI (shorten prompt). Returns the operation result.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Declared type: string. |
get_task
Fetch the current status and latest result payload for a midjourney task.
| Parameter | Type | Description |
|---|---|---|
action * | string | Asynchronous endpoint the task was created on. |
task_id * | string | Task id returned when the task was created. |
check_pricing
Look up RunAPI pricing for the midjourney model line.
| Parameter | Type | Description |
|---|---|---|
action | string | Endpoint name. Defaults to the endpoint that offers the model. |
model | string | Model slug. Defaults to the line's primary model. |