nano-banana-2-mcp

v0.1.1
nano-banana-2-mcp Checked 5 days ago Published 8 months ago

MCP server for Google's Gemini image generation with Nano Banana 2 support, resolution control, thinking modes, and context-window-safe output

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_image

Generate a NEW image from text prompt. Use this ONLY when creating a completely new image, not when modifying an existing one.

ParameterTypeDescription
prompt *stringText prompt describing the NEW image to create from scratch
aspectRatiostringAspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API.
numberOfImagesnumberNumber of images to generate (1–4). Multiple images saved with sequential suffixes.
resolutionstringImage resolution: "1K", "2K", or "4K".
returnInlineImagebooleanIf false, return only file path (no base64). Saves context window space.
thinkingstringThinking level: "minimal" or "high". Higher thinking improves complex prompts.

edit_image

Edit a SPECIFIC existing image file, optionally using additional reference images. Use this when you have the exact file path of an image to modify.

ParameterTypeDescription
imagePath *stringFull file path to the main image file to edit
prompt *stringText describing the modifications to make to the existing image
aspectRatiostringAspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API.
numberOfImagesnumberNumber of images to generate (1–4). Multiple images saved with sequential suffixes.
referenceImagesarrayOptional array of file paths to additional reference images
resolutionstringImage resolution: "1K", "2K", or "4K".
returnInlineImagebooleanIf false, return only file path (no base64). Saves context window space.
thinkingstringThinking level: "minimal" or "high". Higher thinking improves complex prompts.

continue_editing

Continue editing the LAST image that was generated or edited in this session, optionally using additional reference images.

ParameterTypeDescription
prompt *stringText describing the modifications to the last image
aspectRatiostringAspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API.
numberOfImagesnumberNumber of images to generate (1–4). Multiple images saved with sequential suffixes.
referenceImagesarrayOptional array of file paths to additional reference images
resolutionstringImage resolution: "1K", "2K", or "4K".
returnInlineImagebooleanIf false, return only file path (no base64). Saves context window space.
thinkingstringThinking level: "minimal" or "high". Higher thinking improves complex prompts.

get_configuration_status

Check if Gemini API key is configured and which model is active

get_last_image_info

Get information about the last generated/edited image in this session