nano-banana-mcp
Generates and edits images using Google Gemini image models: creates images from text prompts and transforms or combines user-supplied reference images (file paths, data URLs, or base64).
Click on "Deploy 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-mcp Generate a minimalist app icon for a weather app with a blue gradient"
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.
nano-banana-mcp
An MCP (Model Context Protocol) server for AI image generation using Google Gemini. Generate images from text prompts and optionally provide reference images to inform the output. Supports MCP Apps β generated images render as an interactive viewer directly inside the chat in VS Code Copilot, Claude, and other MCP Apps-capable clients.

Features
π¨ Text-to-image generation via Google Gemini
πΌοΈ Image editing β pass reference images to restyle, edit, or combine
β¨ MCP Apps support β images render as an interactive viewer inline in the conversation (VS Code Copilot, Claude Desktop, Goose, and more)
πΎ Save to disk β optionally save outputs to a directory
Related MCP server: Gemini Image MCP
Quick start
npm install
npm run buildGet a free API key at Google AI Studio.
Tool: generate_image
A single, flexible tool that handles all image generation β from scratch or informed by reference images.
Parameter | Required | Description |
| β | Text prompt describing what to generate or how to transform the input |
| Optional array of reference images (file paths, data URLs, or base64 strings) | |
| Google AI Studio API key (falls back to | |
| Directory to save images to disk | |
| Filename prefix (default: |
Examples
From scratch:
"A minimalist app icon for a weather app, flat design, blue gradient"Edit an image:
"Change the background to a sunset"+images: ["./photo.jpg"]Combine references:
"Merge these two logo concepts into one"+images: ["./logo1.png", "./logo2.png"]
VS Code configuration
Add to your mcp.json (User or workspace):
{
"servers": {
"nano-banana": {
"type": "stdio",
"command": "node",
"args": ["<path-to-this-repo>/dist/index.js"],
"env": {
"GOOGLE_API_KEY": "${input:google-api-key}"
}
}
},
"inputs": [
{
"id": "google-api-key",
"type": "promptString",
"description": "Google AI Studio key",
"password": true
}
]
}Claude Desktop configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"nano-banana": {
"command": "node",
"args": ["<path-to-this-repo>/dist/index.js"],
"env": {
"GOOGLE_API_KEY": "your-google-api-key"
}
}
}
}Development
npm run dev # Run with tsx (no build step)
npm run build # Compile TypeScript
npm start # Run compiled outputAvailable Tools
1 toolgenerate_imageGenerate ImageA
Generate or edit images using Google Gemini. Provide a text prompt describing what you want. Optionally include one or more reference images to inform the output (e.g. edit a photo, restyle an icon, combine references).
Inputs: prompt (required), images, output_dir, output_name, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its purpose (generate or edit images from a prompt with optional references) is stated clearly and unambiguously.
The single name generate_image follows a clean verb_noun snake_case convention that describes exactly what the tool does. With only one tool there is nothing to be inconsistent with, and the name sets a predictable pattern.
One tool is defensible for a narrowly focused image-generation server, but the surface feels thin: generation and editing are collapsed into a single entry point with no separate controls or helpers. It sits at the borderline of the 'too few' band rather than being clearly well-scoped.
Core capability (text-to-image and reference-based editing) is covered in one call, but there are notable gaps: no exposure of output controls like aspect ratio, image count, or model/quality selection, and no separate edit endpoint for simpler prompting. Agents can partly work around this via prompt text, but the surface is minimal.
Maintenance
Related MCP Connectors
Generate AI images and videos from any compatible MCP client.
Generate AI video, images and audio, and browse your history, from any MCP client.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseAqualityDmaintenanceAllows AI assistants to generate and transform high-quality images from text prompts using Google's Gemini model via the MCP protocol.334MIT
- AlicenseBqualityDmaintenanceEnables image generation and multi-turn editing sessions using the Gemini API within MCP-compatible environments. Users can create, modify, and configure images through natural language commands, supporting features like aspect ratio adjustments and session-based image transformations.5ISC
- AlicenseAqualityDmaintenanceEnables AI image generation, editing, and upscaling via Google Gemini and Imagen models, supporting dynamic model switching and multiple MCP-compatible clients.12MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered image generation using Google's Gemini 2.5 Flash Image Preview model, supporting text-to-image and image-to-image generation through the MCP interface.-