Nano Banana MCP
Provides tools for generating and editing images using Google's Gemini image generation models (Nano Banana).
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 Banana MCPgenerate a 4K image of a sunset over the ocean"
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.
@maheidem/nanobanana-mcp
MCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language from Claude Code or any MCP client.
Features
Text-to-image generation with configurable model, aspect ratio, and resolution (up to 4K)
Image editing via natural language — add/remove elements, style transfer, inpainting
Iterative refinement — keep editing the last generated image
3 model tiers — Flash (cheap), Pro (studio-quality), Flash 2 (best value)
File paths only — no base64 in responses, prevents context window overflow
Persistent model preference — choose once, used everywhere
Related MCP server: Nano-Banana MCP Server
Models
Model | ID | Status | Max Resolution | Price/Image |
Nano Banana |
| GA | 1K | $0.039 |
Nano Banana Pro |
| Preview | 4K | $0.134–$0.24 |
Nano Banana 2 |
| Preview | 4K | $0.045–$0.151 |
Prerequisites
Node.js >= 18
A Google AI API key with billing enabled (no free tier for image generation)
Get your key at Google AI Studio
Install
Claude Code (recommended)
claude mcp add nano-banana -e GEMINI_API_KEY=your-key -- npx --yes @maheidem/nanobanana-mcpManual .mcp.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": ["@maheidem/nanobanana-mcp"],
"env": {
"GEMINI_API_KEY": "your-key"
}
}
}
}Tools
nb_generate_image
Generate a new image from a text prompt.
Parameter | Required | Description |
| Yes | Text description of the image |
| No | Model ID (uses saved preference) |
| No | e.g. |
| No |
|
| No | Save directory (default: |
nb_edit_image
Edit an existing image with natural language instructions.
Parameter | Required | Description |
| Yes | Path to the source image |
| Yes | Edit instructions |
| No | Reference images for style transfer |
| No | Model ID |
| No | Output aspect ratio |
| No | Output resolution |
| No | Save directory |
nb_continue_editing
Continue editing the last generated/edited image.
Parameter | Required | Description |
| Yes | New edit instructions |
| No | Model ID |
| No | Output resolution |
| No | Save directory |
nb_get_last_image
Get metadata about the last generated/edited image. No API call.
nb_list_models
List available models and set a preferred model (persisted to disk).
Parameter | Required | Description |
| No | Model ID to save as default |
Environment Variables
Variable | Required | Description |
| Yes | Google AI API key (or |
| No | Default output directory for generated images |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Maheidem/nanobanana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server