mcp-nano-banana

v1.2.2
io.github.codeFi/mcp-nano-banana Checked 4 days ago Published 5 months ago

MCP server for Google Nano Banana (Gemini) image generation

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

generate_image

Generate an image using Google Nano Banana (Gemini) AI model. Can generate from text only, or use one or more reference images (up to 14) to guide generation.

ParameterTypeDescription
prompt *stringText description of the image to generate or instructions for editing/combining reference images
aspectRatiostringAspect ratio of the generated image. Additional ratios (1:4, 4:1, 1:8, 8:1) available on gemini-3.1-flash-image-preview.
imagePathsarrayOptional array of file paths to reference images (up to 14). Supports png, jpg, jpeg, webp, gif.
modelstringModel to use: gemini-2.5-flash-image (fast) or gemini-3-pro-image-preview (high quality, default)
outputFormatstringOutput image format
outputPathstringFile path to save the generated image. If not provided, image data is returned inline.
resolutionstringResolution of the generated image. 512 only on gemini-3.1-flash-image-preview. Nano Banana Pro supports 1K, 2K, 4K.

generate_favicons

Generate a full favicon package from a prompt or an existing image. Creates PNG sizes, a web manifest, and optional README, then writes files and/or a ZIP bundle.

ParameterTypeDescription
appNamestringManifest app name. Default: My App.
backgroundColorstringManifest background color. Default: #ffffff.
imagePathstringPath to an existing master icon image. If provided, prompt is optional.
includeReadmebooleanInclude README.md in the package.
modelstringModel to use when generating the master icon from a prompt.
outputDirstringDirectory to write individual favicon files.
outputPathstringFile path to save the favicon ZIP package.
promptstringText description for generating a master icon (square). Required if imagePath is not provided.
returnZipBase64booleanWhen true and outputPath is not provided, return the ZIP as base64 text.
shortNamestringManifest short name. Default: App.
themeColorstringManifest theme color. Default: #ffffff.