midjourney-mcp

v0.4.2
io.github.runapi-builder/midjourney-mcp Checked 2 days ago Published 3 days ago

RunAPI 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.

ParameterTypeDescription
forcebooleanRe-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.

ParameterTypeDescription
prompt *stringDeclared type: string.
source_image_url *stringDeclared type: string.
callback_urlstringDeclared type: string.
include_split_imagesbooleanDeclared type: boolean.
mask_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
poll_interval_msinteger
timeout_msinteger
waitbooleanPoll 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.

ParameterTypeDescription
source_task_id *stringDeclared type: string.
callback_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
poll_interval_msinteger
promptstringDeclared type: string.
timeout_msinteger
waitbooleanPoll 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.

ParameterTypeDescription
source_image_url *stringDeclared type: string.
callback_urlstringDeclared type: string.
enable_loopbooleanDeclared type: boolean.
last_frame_image_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
output_resolutionstringDeclared type: string. Known values: "480p".
poll_interval_msinteger
promptstringDeclared type: string.
timeout_msinteger
waitbooleanPoll 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.

ParameterTypeDescription
prompt *stringDeclared type: string.
callback_urlstringDeclared type: string.
enable_prompt_translationbooleanDeclared type: boolean.
include_split_imagesbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
poll_interval_msinteger
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

get_seed

Run a synchronous Midjourney operation on RunAPI (get seed). Returns the operation result.

ParameterTypeDescription
image_id *stringDeclared type: string.

image_to_prompt

Run a synchronous Midjourney operation on RunAPI (image to prompt). Returns the operation result.

ParameterTypeDescription
source_image_url *stringDeclared type: string.

shorten_prompt

Run a synchronous Midjourney operation on RunAPI (shorten prompt). Returns the operation result.

ParameterTypeDescription
prompt *stringDeclared type: string.

get_task

Fetch the current status and latest result payload for a midjourney task.

ParameterTypeDescription
action *stringAsynchronous endpoint the task was created on.
task_id *stringTask id returned when the task was created.

check_pricing

Look up RunAPI pricing for the midjourney model line.

ParameterTypeDescription
actionstringEndpoint name. Defaults to the endpoint that offers the model.
modelstringModel slug. Defaults to the line's primary model.