nano-banana-mcp

v0.3.0
io.github.runapi-builder/nano-banana-mcp Checked 2 days ago Published 4 days ago

RunAPI MCP server for Nano Banana: 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 Nano Banana task on RunAPI (edit image). Returns a task id, status, and output URLs.

ParameterTypeDescription
source_image_urls *arrayDeclared type: array.
aspect_ratiostringDeclared type: string. Known values: "1:1", "1:4", "1:8", "2:3", "3:2", "3:4", "4:1", "4:3", "4:5", "5:4", "8:1", "9:16", "16:9", "21:9", "auto".
callback_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
output_formatstringDeclared type: string. Known values: "png", "jpeg".
poll_interval_msinteger
promptstringDeclared type: string.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

text_to_image

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

ParameterTypeDescription
aspect_ratiostringDeclared type: string. Known values: "1:1", "9:16", "16:9", "3:4", "4:3", "3:2", "2:3", "5:4", "4:5", "21:9", "auto", "1:4", "1:8", "4:1", "8:1".
callback_urlstringDeclared type: string.
modelstringRunAPI model slug for this model line.
output_formatstringDeclared type: string. Known values: "png", "jpeg", "jpg".
output_resolutionstringDeclared type: string.
poll_interval_msinteger
promptstringDeclared type: string.
reference_image_urlsarrayDeclared type: array.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

get_task

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

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