mcp-alphabanana

v1.6.0
@tasopen/mcp-alphabanana Checked 4 days ago Published 1 month ago

MCP server for image generation using Google Gemini AI

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

generate_image

Generate image assets using Gemini AI with optional transparency and reference images. [Claude Desktop Guidance] - Prefer outputType='file' for medium or large images. base64 and combine responses can exceed Claude Desktop's context limit. - On Claude Desktop for Windows, use the FileSystem extension to choose reference-image paths and a writable absolute outputPath before calling this tool. - Use base64 only for small previews or when the client explicitly needs inline image data. [Model Guidance] - NanoBanana2.1 (default): Google Nano Banana 2.1 (gemini-nano-banana-2.1). Best overall quali…

ParameterTypeDescription
outputFileName *stringOutput filename (extension auto-added if missing)
prompt *stringUser-provided image prompt. Preserve the original wording and detail; do not summarize or translate. Only append transparency-related hints if needed.
aspectRatiostringGemini aspect ratio to use directly when noresize=true. Ignored in normal resize mode.
colorToleranceintegerTolerance for color matching (0-255). Higher values are more permissive for transparent color selection and keying.
debugbooleanDebug mode: output intermediate processing images and prompt
fringeModestringFringe reduction mode: auto (size-based), crisp (binary alpha), hd (force-clear 1px boundary for large images).
grounding_typestringGrounding tool usage (requires a grounding-capable model; see [Model Guidance] in the tool description)
include_metadatabooleanInclude grounding and reasoning metadata in JSON output (optional, may increase payload size).
include_thoughtsbooleanOptional (default: false). Request thought fields from Gemini (thinking-capable models only). Thought content is returned in MCP response only when include_metadata=true.
modelstringModel tier to use for generation (default: NanoBanana2.1; see tool description for details; "flash" resolves to NanoBanana2.1, "pro" to Pro3; "Lite3.1" is the low-latency Nano Banana 2 Lite model, 1K-…
noresizebooleanSkip post-generation resizing and return Gemini native dimensions directly. When true, provide aspectRatio and output_resolution instead of outputWidth/outputHeight.
outputHeightintegerOutput image height in pixels. Required unless noresize=true. In normal mode, the image will be generated using the closest supported Gemini aspect ratio and resolution, then resized to this height.
outputPathstringOutput directory path (MUST be an absolute path when outputType is file or combine). In Claude Desktop on Windows, use the FileSystem extension to choose or prepare a writable absolute path such as C:…
outputTypestringOutput format: file=file only, base64=base64 only, combine=both. In Claude Desktop, prefer file for medium or large images to avoid context-size limits; use base64 only for small previews.
outputWidthintegerOutput image width in pixels. Required unless noresize=true. In normal mode, the image will be generated using the closest supported Gemini aspect ratio and resolution, then resized to this width.
output_formatstringOutput format
output_resolutionstringGemini generation source resolution: 1K, 2K, and 4K (optional in normal mode, required when noresize=true; 0.5K was removed in v1.6.0). In normal mode, the final image is resized to the requested pixe…
referenceImagesarrayReference images for style guidance (max 14 files; per-model limits are enforced automatically)
resizeModestringResize mode: crop=center crop, stretch=distort, letterbox=fit with padding, contain=trim transparent margins then fit
thinking_modestringThinking level: minimal, medium, high (default: medium, matching NanoBanana2.1's model default; requires a thinking-capable model — NanoBanana2.1 accepts all three levels, Flash3.1/Pro3 accept minim…
transparentbooleanRequest transparent background (PNG or WebP only). Background color is selected by histogram analysis.
transparentColorstring | nullColor to make transparent. Hex (e.g. #FF00FF). null defaults to #FF00FF when transparent=true.