mcp-alphabanana
v1.6.0MCP 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…
| Parameter | Type | Description |
|---|---|---|
outputFileName * | string | Output filename (extension auto-added if missing) |
prompt * | string | User-provided image prompt. Preserve the original wording and detail; do not summarize or translate. Only append transparency-related hints if needed. |
aspectRatio | string | Gemini aspect ratio to use directly when noresize=true. Ignored in normal resize mode. |
colorTolerance | integer | Tolerance for color matching (0-255). Higher values are more permissive for transparent color selection and keying. |
debug | boolean | Debug mode: output intermediate processing images and prompt |
fringeMode | string | Fringe reduction mode: auto (size-based), crisp (binary alpha), hd (force-clear 1px boundary for large images). |
grounding_type | string | Grounding tool usage (requires a grounding-capable model; see [Model Guidance] in the tool description) |
include_metadata | boolean | Include grounding and reasoning metadata in JSON output (optional, may increase payload size). |
include_thoughts | boolean | Optional (default: false). Request thought fields from Gemini (thinking-capable models only). Thought content is returned in MCP response only when include_metadata=true. |
model | string | Model 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-… |
noresize | boolean | Skip post-generation resizing and return Gemini native dimensions directly. When true, provide aspectRatio and output_resolution instead of outputWidth/outputHeight. |
outputHeight | integer | Output 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. |
outputPath | string | Output 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:… |
outputType | string | Output 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. |
outputWidth | integer | Output 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_format | string | Output format |
output_resolution | string | Gemini 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… |
referenceImages | array | Reference images for style guidance (max 14 files; per-model limits are enforced automatically) |
resizeMode | string | Resize mode: crop=center crop, stretch=distort, letterbox=fit with padding, contain=trim transparent margins then fit |
thinking_mode | string | Thinking 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… |
transparent | boolean | Request transparent background (PNG or WebP only). Background color is selected by histogram analysis. |
transparentColor | string | null | Color to make transparent. Hex (e.g. #FF00FF). null defaults to #FF00FF when transparent=true. |