Integrates with Google's AI services to provide image generation capabilities through Gemini and Imagen models, featuring support for custom aspect ratios and negative prompts.
Enables image generation using Google Gemini and Imagen models, allowing users to specify prompts, aspect ratios, and quality modes (Flash or Pro) while managing generated output.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nano Bananagenerate a cinematic 16:9 landscape of a futuristic city using the pro model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@saroby/nanobanana-mcp
Google Gemini image generation MCP server (Nano Banana).
Features
generate_image - Generate images using Google Gemini models
flashmode: gemini-2.0-flash-exp (fast, ~2-3s)promode: imagen-3.0-generate-002 (high quality, ~5-8s)
list_images - List generated images in a directory
Setup
Get API Key
Go to Google AI Studio
Create an API key
Install in Claude Code
Manual Usage
Tools
generate_image
Parameter | Type | Required | Description |
| string | Yes | Image description (1-8192 chars) |
|
| No | Model selection (default: flash) |
| enum | No |
|
| string | No | Elements to exclude |
| string | No | Save directory (default: ./nanobanana-images) |
| number | No | Number of images 1-4 (default: 1) |
list_images
Parameter | Type | Required | Description |
| string | No | Directory to search (default: ./nanobanana-images) |
Development
License
MIT