NanoBanana MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NANOBANANA_MODEL | No | Default model to use (gemini-3.1-flash-image-preview or gemini-3-pro-image-preview). | |
| GOOGLE_AI_API_KEY | Yes | Google AI API key obtained from Google AI Studio. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gemini_chatC | Chat with Gemini 3.1 Flash model. Supports multi-turn conversations with up to 10 reference images. |
| gemini_generate_imageA | Generate images using Gemini's image generation capabilities. Supports session-based image consistency for maintaining style/character across multiple generations. |
| gemini_edit_imageB | Edit or modify existing images based on prompts. Supports session history references ('last' or 'history:N') and image consistency features. |
| get_image_historyC | Get the list of generated/edited images in a session for reference |
| clear_conversationC | Clear conversation history for a specific conversation ID |
| set_aspect_ratioA | Set the aspect ratio for subsequent image generation and editing in this session. Must be called before generating/editing images if a specific ratio is desired. |
| set_modelA | Set the Gemini model for this session. 'flash' for faster generation (default), 'pro' for higher quality. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pistachiomatt/nanobanana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server