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.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that enables image generation using Google's Gemini Nano Banana Pro model via the Google AI Studio API. Users can generate and save images locally by providing text prompts through MCP-compatible clients.Last updated1
- AlicenseAqualityDmaintenanceAn MCP server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. It allows users to create new images from text, modify existing files, and perform iterative edits through natural language prompts.Last updated61,090MIT
- Alicense-qualityCmaintenanceAI-powered image generation MCP server with 16 specialized tools for generating, editing, analyzing, and processing images using Google's Nano Banana 2 model. Supports custom API endpoints and integrates with AI coding assistants via natural language.Last updated3941MIT
- Alicense-qualityCmaintenanceAn MCP server that provides image generation using Google's Nano Banana Gemini models, with additional tools for background removal, upscaling, and format conversion via deterministic post-processing.Last updated1MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Flux AI image generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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