nano-banana-mcp

v3.3.0
io.github.fjacquet/nano-banana-mcp Checked 10 hours ago Published 23 days ago

AI image generation and editing with Google Gemini: Nano Banana 2.1, Pro and Lite models

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

configure_gemini_token

Configure your Gemini API token for nano-banana image generation

ParameterTypeDescription
apiKey *stringYour Gemini API key from Google AI Studio

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 of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image.
imageSizestringResolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image".
modelstringModel to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana…
presetstringShape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp…
thinkingLevelstringHow much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own…
useGoogleSearchbooleanEnable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image".

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 of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image.
imageSizestringResolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image".
modelstringModel to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana…
presetstringShape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp…
referenceImagesarrayOptional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements, etc.)
thinkingLevelstringHow much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own…
useGoogleSearchbooleanEnable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image".

get_configuration_status

Check if Gemini API token is configured

continue_editing

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

ParameterTypeDescription
prompt *stringText describing the modifications to make to the last image
aspectRatiostringAspect ratio of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image.
imageSizestringResolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image".
modelstringModel to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana…
presetstringShape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp…
referenceImagesarrayOptional array of file paths to additional reference images
thinkingLevelstringHow much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own…
useGoogleSearchbooleanEnable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image".

get_last_image_info

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