Nano Banana MCP
Generates images from prompts using Google's Nano Banana/Gemini image models via Google AI Studio or Vertex AI.
Enables image generation through Google Cloud Vertex AI using an authenticated GCP project and location.
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.
Nano Banana MCP
A standalone MCP server for AI image generation using Google's Nano Banana (Gemini) models.
Features
generate_image- Generate images and return as base64generate_image_to_file- Generate and save directly to a file pathlist_styles- List available style presets
Related MCP server: Imagen MCP Server
Models
Model | ID | Notes |
Nano Banana |
| Free tier available (10 req/min, 1500/day) |
Nano Banana Pro |
| Higher quality, requires billing |
Quick Start
Option A: Vertex AI (Recommended for EU/Sweden)
Google AI Studio blocks image generation in EU countries. Use Vertex AI instead:
1. Prerequisites
Google Cloud project with Vertex AI API enabled
gcloudCLI authenticated (gcloud auth application-default login)
2. Install
cd nano-banana-mcp
pip install -e .3. Configure Claude Code
Add to ~/.mcp.json:
{
"mcpServers": {
"nano-banana": {
"command": "python",
"args": ["/path/to/nano-banana-mcp/server.py"],
"env": {
"GOOGLE_CLOUD_PROJECT": "your-gcp-project-id",
"GOOGLE_CLOUD_LOCATION": "global",
"GOOGLE_GENAI_USE_VERTEXAI": "True"
}
}
}
}Option B: Google AI Studio (US/Non-EU only)
1. Get a Gemini API Key
Get your API key from Google AI Studio.
2. Install
cd nano-banana-mcp
pip install -e .3. Configure Claude Code
Add to ~/.mcp.json:
{
"mcpServers": {
"nano-banana": {
"command": "python",
"args": ["/path/to/nano-banana-mcp/server.py"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}Usage Examples
Generate image for Slidev presentation
Generate a hero image for my presentation about AI:
- prompt: "Abstract neural network visualization with flowing data streams, blue and purple gradients on dark background"
- output_path: "/path/to/presentation/public/hero.png"
- style_preset: "tech"
- aspect_ratio: "16:9"Generate with style preset
Generate an image:
- prompt: "Team collaboration concept showing diverse hands building something together"
- style_preset: "corporate"
- aspect_ratio: "16:9"Style Presets
Preset | Best For |
| Business presentations, professional documents |
| Clean slides, modern designs, tech presentations |
| Marketing materials, creative presentations |
| Technology topics, software presentations, AI/ML content |
| Title slides, section dividers, artistic backgrounds |
| Product showcases, realistic visuals |
| Educational content, storytelling |
Aspect Ratios
Ratio | Use Case |
| Presentations, slides (default) |
| Photography-style images |
| Social media, icons |
| Portrait/vertical |
| Mobile/stories |
Integration with Slidev
This MCP works great with the Slidev skill. Generate images to your public/ folder, then reference them in slides:
---
layout: image-right
image: /hero.png
---
# My Title
Content hereLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Generate and edit images (PNG, transparent, GIF, SVG) with GPT Image and Nano Banana models.
Make images, videos and speech: Nano Banana, GPT Image, Seedance, Kling, Wan and Gemini TTS.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Zixel MCP server: generate AI images and videos (Nano Banana, GPT Image, Seedance) via Zixel API.
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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate high-quality images using Google's Gemini and Imagen models with support for multiple aspect ratios, dynamic model selection, and direct file saving capabilities.MIT
- AlicenseBqualityDmaintenanceEnables image generation using Google Gemini models like Gemini 2.0 Flash and Imagen 3.0 with support for custom aspect ratios and negative prompts. It also allows users to list and manage generated images stored in local directories.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables image generation and transformation using Google Gemini AI, with automatic English translation for multilingual prompts and local saving.MIT