nano-banana-2-mcp
v0.1.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text prompt describing the NEW image to create from scratch |
aspectRatio | string | Aspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API. |
numberOfImages | number | Number of images to generate (1–4). Multiple images saved with sequential suffixes. |
resolution | string | Image resolution: "1K", "2K", or "4K". |
returnInlineImage | boolean | If false, return only file path (no base64). Saves context window space. |
thinking | string | Thinking 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.
| Parameter | Type | Description |
|---|---|---|
imagePath * | string | Full file path to the main image file to edit |
prompt * | string | Text describing the modifications to make to the existing image |
aspectRatio | string | Aspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API. |
numberOfImages | number | Number of images to generate (1–4). Multiple images saved with sequential suffixes. |
referenceImages | array | Optional array of file paths to additional reference images |
resolution | string | Image resolution: "1K", "2K", or "4K". |
returnInlineImage | boolean | If false, return only file path (no base64). Saves context window space. |
thinking | string | Thinking 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.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text describing the modifications to the last image |
aspectRatio | string | Aspect ratio (e.g. "1:1", "16:9", "9:16", "4:3", "3:4"). Passed through to API. |
numberOfImages | number | Number of images to generate (1–4). Multiple images saved with sequential suffixes. |
referenceImages | array | Optional array of file paths to additional reference images |
resolution | string | Image resolution: "1K", "2K", or "4K". |
returnInlineImage | boolean | If false, return only file path (no base64). Saves context window space. |
thinking | string | Thinking 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