@nanobanana/mcp
Provides tools for generating and editing images using Google's Gemini image 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., "@@nanobanana/mcpgenerate an image of a cat wearing a wizard hat"
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.
@nanobanana/mcp ๐
A lean MCP server for Google's Nano Banana (Gemini) image models. It generates and edits images from any MCP client (Claude Code, Claude Desktop, Cursor) and hands back file paths instead of base64, so your agent's context stays small.
Three tools and nothing else:
generate_image,edit_image,list_modelsDefaults to Nano Banana 2 (
gemini-3.1-flash-image). Switch models per call or via env. If a pinned model id ever goes stale,list_modelsshows what your key can actually use.Multi-image editing: pass reference images for style transfer, characters, or compositing
Control over aspect ratio (
1:1up to21:9) and resolution (1K,2K,4K)Google Search grounding for images that need real-world accuracy, like infographics
Safe output paths. The server never writes to
/when a desktop MCP client spawns it there.Auth lives in env vars only, so your API key never passes through chat context
Quick start
Get a free Gemini API key at aistudio.google.com/apikey.
Claude Code
claude mcp add nanobanana -e GEMINI_API_KEY=your_key -- npx -y @nanobanana/mcpAlso listed in the MCP Registry as io.github.getjoystick/nanobanana-mcp.
Claude Desktop / Cursor: add this to claude_desktop_config.json or .cursor/mcp.json:
{
"mcpServers": {
"nanobanana": {
"command": "npx",
"args": ["-y", "@nanobanana/mcp"],
"env": { "GEMINI_API_KEY": "your_key" }
}
}
}Related MCP server: nano-banana-claude
Tools
generate_image
Param | Required | Description |
| โ | Image description |
| Gemini image model id (default | |
|
| |
|
| |
| Ground with Google Search for factual accuracy | |
|
| |
| Save directory (default | |
| Base filename without extension |
edit_image
Same params, plus:
Param | Required | Description |
| โ | Input file path(s): png, jpg, webp, heic, or pdf. The first is the base; the rest are references. |
Both tools save to disk and return the file path.
list_models
Takes no params. Lists the image model ids your API key can use. Handy when a pinned model id stops working, which is how earlier Nano Banana servers broke.
Configuration
Env var | Description |
| Required. Gemini API key ( |
| Default model override |
| Default output directory override |
Models
Model id | Notes |
| Default. Nano Banana 2: 4K output, strong text rendering |
| Nano Banana Pro, for complex scenes that need deeper reasoning |
| The original Nano Banana (legacy; Google retires it 2026-10-02) |
Development
npm install
npm run build
GEMINI_API_KEY=your_key npm run smoke # end-to-end test against the live APIAcknowledgements
Inspired by other Nano Banana MCPs. Built with Claude Code.
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
- 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
- Alicense-qualityDmaintenanceMCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language.Last updated41MIT
- AlicenseAqualityDmaintenanceMCP server for generating and editing images using Google Gemini API, with support for multi-turn iterative refinement.Last updated31MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Flux AI image generation
MCP server for Grok Imagine 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/getjoystick/nanobanana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server