wan-mcp

v0.2.3
io.github.runapi-builder/wan-mcp Checked 2 days ago Published 3 days ago

RunAPI MCP server for Wan: 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.

animate

Create a Wan task on RunAPI (animate). Returns a task id, status, and output URLs.

ParameterTypeDescription
reference_video_url *stringDeclared type: string.
source_image_url *stringDeclared type: string.
callback_urlstringDeclared type: string.
enable_safety_checkerbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
output_resolutionstringDeclared type: string. Known values: "480p", "580p", "720p".
poll_interval_msinteger
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

edit_video

Create a Wan task on RunAPI (edit video). Returns a task id, status, and output URLs.

ParameterTypeDescription
aspect_ratiostringDeclared type: string.
audiobooleanDeclared type: boolean.
audio_settingstringDeclared type: string.
callback_urlstringDeclared type: string.
duration_secondsintegerDeclared type: integer.
enable_prompt_expansionbooleanDeclared type: boolean.
enable_safety_checkerbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
multi_shotsbooleanControls whether the generated video uses multiple shots with transitions instead of one continuous shot. Declared type: boolean.
negative_promptstringDeclared type: string.
output_resolutionstringDeclared type: string.
poll_interval_msinteger
promptstringDeclared type: string.
reference_image_urlstringDeclared type: string.
seedintegerDeclared type: integer.
source_video_urlstringDeclared type: string.
source_video_urlsarrayDeclared type: array.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.
watermarkbooleanDeclared type: boolean.

image_to_video

Create a Wan task on RunAPI (image to video). Returns a task id, status, and output URLs.

ParameterTypeDescription
accelerationstringDeclared type: string.
aspect_ratiostringDeclared type: string.
audiobooleanDeclared type: boolean.
background_audio_urlstringDeclared type: string.
callback_urlstringDeclared type: string.
driving_audio_urlstringDeclared type: string.
duration_secondsintegerDeclared type: integer.
enable_prompt_expansionbooleanDeclared type: boolean.
enable_safety_checkerbooleanDeclared type: boolean.
first_frame_image_urlstringDeclared type: string.
last_frame_image_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
multi_shotsbooleanDeclared type: boolean.
negative_promptstringDeclared type: string.
output_resolutionstringDeclared type: string. Known values: "480p", "720p", "1080p".
poll_interval_msinteger
promptstringDeclared type: string.
ratiostringDeclared type: string.
seedintegerDeclared type: integer.
source_video_urlstringDeclared type: string.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.
watermarkbooleanDeclared type: boolean.

speech_to_video

Create a Wan task on RunAPI (speech to video). Returns a task id, status, and output URLs.

ParameterTypeDescription
prompt *stringDeclared type: string.
source_audio_url *stringDeclared type: string.
source_image_url *stringDeclared type: string.
callback_urlstringDeclared type: string.
enable_safety_checkerbooleanDeclared type: boolean.
frames_per_secondintegerDeclared type: integer.
guidance_scalenumberDeclared type: number.
modelstringRunAPI model slug for this model line.
negative_promptstringDeclared type: string.
num_framesintegerDeclared type: integer.
num_inference_stepsintegerDeclared type: integer.
output_resolutionstringDeclared type: string. Known values: "480p", "580p", "720p".
poll_interval_msinteger
seedintegerDeclared type: integer.
shiftnumberDeclared type: number.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

text_to_image

Create a Wan task on RunAPI (text to image). Returns a task id, status, and output URLs.

ParameterTypeDescription
aspect_ratiostringDeclared type: string. Known values: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8".
bbox_listarrayDeclared type: array.
callback_urlstringDeclared type: string.
color_palettearrayDeclared type: array.
enable_safety_checkerbooleanDeclared type: boolean.
enable_sequentialbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
output_countintegerDeclared type: integer.
output_resolutionstringDeclared type: string. Known values: "1k", "2k", "4k".
poll_interval_msinteger
promptstringDeclared type: string.
seedintegerDeclared type: integer.
source_image_urlsarrayDeclared type: array.
thinking_modebooleanDeclared type: boolean.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.
watermarkbooleanDeclared type: boolean.

text_to_video

Create a Wan task on RunAPI (text to video). Returns a task id, status, and output URLs.

ParameterTypeDescription
accelerationstringDeclared type: string.
aspect_ratiostringDeclared type: string.
background_audio_urlstringDeclared type: string.
callback_urlstringDeclared type: string.
duration_secondsintegerDeclared type: integer.
enable_prompt_expansionbooleanDeclared type: boolean.
enable_safety_checkerbooleanDeclared type: boolean.
first_frame_image_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
multi_shotsbooleanDeclared type: boolean.
negative_promptstringDeclared type: string.
output_resolutionstringDeclared type: string. Known values: "480p", "580p", "720p", "1080p".
poll_interval_msinteger
promptstringDeclared type: string.
ratiostringDeclared type: string.
reference_audio_urlstringDeclared type: string.
reference_image_urlsarrayDeclared type: array.
reference_video_urlsarrayDeclared type: array.
seedintegerDeclared type: integer.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.
watermarkbooleanDeclared type: boolean.

get_task

Fetch the current status and latest result payload for a wan 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 wan model line.

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