gemini-nano-banana-mcp
Generates images using Google's Gemini "Nano Banana" image models (e.g., gemini-2.5-flash-image) via the Gemini API, with customizable prompt, aspect ratio, and output file naming.
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., "@gemini-nano-banana-mcp Generate an image of a serene mountain lake at sunset."
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.
gemini-nano-banana-mcp
Minimal MCP server that generates images through Google's Gemini "Nano Banana"
image models (gemini-2.5-flash-image by default), using your own free
Google AI Studio API key.
No third-party service, no paid credits — requests go straight to Google's Gemini API.
Setup
npm install
npm run buildGet a free API key at https://aistudio.google.com/apikey.
Related MCP server: Nano Banana MCP Server
Register with Claude Code
claude mcp add gemini-image --scope user -e GEMINI_API_KEY=your-key-here -- node /absolute/path/to/gemini-nano-banana-mcp/dist/index.jsTool
generate_image
Argument | Required | Description |
| yes | Text description of the image to generate |
| no | Gemini image model id (default: |
| no | e.g. |
| no | Output file name (default: a timestamp) |
Generated images are saved to OUTPUT_DIR (default: ./output) and the
tool returns the saved file path.
Environment variables
Variable | Required | Default |
| yes | — |
| no |
|
License
MIT
Available Tools
1 toolgenerate_imageGenerate imageA
Generate an image from a text prompt using Google's Gemini image models (Nano Banana). Saves the result as a local file and returns its path.
Inputs: prompt (required), model, file_name, aspect_ratio.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion or overlap.
The tool name 'generate_image' follows a clear verb_noun pattern and is descriptive.
With only one tool, the server feels minimal, but it is focused on image generation so it is borderline acceptable.
The server covers the core image generation task, but lacks additional capabilities like editing or variations that might be expected in a full-featured image tool.
Related MCP Connectors
Generate images and videos with Seedream, GPT Image, Nano Banana, Kling and Seedance on one key.
Generate and edit images (PNG, transparent, GIF, SVG) with GPT Image and Nano Banana models.
Generate images with GPT Image 2, Nano Banana Pro and more, placed on your Banana Art Lab canvas.
Make images, videos and speech: Nano Banana, GPT Image, Seedance, Kling, Wan and Gemini TTS.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to generate images from text prompts and transform existing images using Google Gemini's nano banana model through the Nanana AI service. Supports both text-to-image generation and image-to-image transformation capabilities.299 npm10MIT
- FlicenseAqualityDmaintenanceEnables AI image generation, editing, and composition using Google's Gemini image models (Nano Banana Pro and Nano Banana). Supports text-to-image generation, multi-image composition, flexible aspect ratios, high-resolution output up to 4K, and real-time information grounding.4-
- AlicenseNot gradedqualityCmaintenanceGenerates images from text prompts using Google's Gemini AI models with customizable aspect ratios and resolutions up to 4K, automatically saving images locally.2MIT
- AlicenseAqualityNot gradedmaintenanceEnables image generation using Gemini native models, supporting both single prompts and batch processing via a file-based queue. It allows for detailed configuration of aspect ratios and models using YAML frontmatter across various MCP-enabled clients.3MIT