Nano Banana MCP
Provides tools for generating and editing images using Google's Gemini image generation models (Nano Banana).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@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: MCP Banana Image
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Qwen Image 3 AI image generation
MCP server for Flux AI image generation
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
MCP server for Hailuo (MiniMax) AI video generation
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.1-
- AlicenseAqualityCmaintenanceAI-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.15126 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn 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.1MIT
- AlicenseAqualityDmaintenanceMCP server for generating and editing images using Google Gemini API. Supports text-to-image generation, image editing, and image description.326 npmMIT