nano-banana
Generates images using Google's Gemini image models, saving output locally as JPEG.
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-bananagenerate an image of a cat wearing a 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.
Nano Banana MCP Server
A local stdio MCP server for Gemini-powered image generation.
Features
Simple MCP to generate images with Google's Gemini image models
Save generated output to local disk as JPEG
Return both user-facing content and structured tool output for clients
Run locally via stdio (no HTTP transport in this project)
Related MCP server: Nano Banana MCP Server
Prerequisites
Node.js 20+
Gemini API key from Google AI Studio
Install
git clone https://github.com/priorwave/nano_banana_mcp_server/
cd nano-banana-mcp
npm install
npm run buildConfiguration
Set an API key in your shell profile:
export GEMINI_API_KEY="your-key-here"
# GOOGLE_API_KEY is also supportedOptional model override:
export GEMINI_IMAGE_MODEL="gemini-2.5-flash-image"Configure your MCP client to run this server locally via stdio:
{
"mcpServers": {
"nano-banana": {
"command": "node",
"args": ["/absolute/path/to/nano_banana_mcp_server/dist/index.js"],
"env": {
"GEMINI_API_KEY": "${GEMINI_API_KEY}"
}
}
}
}Tool: generate_image
Parameter | Required | Description |
| Yes | Prompt text for generation (1-4000 chars) |
| No | Optional output path (absolute or relative). If directory, a timestamped |
The tool returns:
Text status content
Image content
Structured output with
file_path,mime_type,model, and optionaltext
Development
Build:
npm run buildStart:
npm startTest:
npm test
Available Tools
1 toolgenerate_imageGenerate ImageA
Generate an image from a text prompt using Google Gemini and save the JPEG to disk.
Inputs: prompt (required), save_path. Returns: text, model, file_path, mime_type
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusing it with other tools. Its purpose is clearly defined.
With a single tool, the naming is inherently consistent and follows a clear verb_noun pattern (generate_image).
A single tool feels thin for a server, but it may be appropriate if the server's entire purpose is image generation. Still, it is borderline and likely lacks broader functionality.
The tool provides the core image generation capability with no obvious dead ends, though a more complete surface might include options like output path or resolution controls. Minor gaps exist but are workable.
Maintenance
Related MCP Connectors
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
MCP server for Qwen Image 3 AI image generation
Generate AI images and videos from any compatible MCP client.
Stivio MCP server - AI image-to-video generator via MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for image generation using the Gemini API.1126 npm2MIT
- 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-
- AlicenseAqualityDmaintenanceA minimal MCP server that wraps Google Gemini image generation, enabling users to generate images via a single tool prompt in Claude Code or other MCP hosts, with automatic filename collision handling.1MIT
- FlicenseAqualityDmaintenanceMCP server that generates images using Gemini models via an OpenAI-compatible gateway.19-