Nanobanana MCP
Provides generative AI capabilities including image generation, editing, restoration, icon creation, pattern creation, diagram generation, and story generation via Google's Gemini API.
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., "@Nanobanana MCPgenerate a banana icon"
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.
🍌 Nanobanana MCP
A powerful Model Context Protocol (MCP) server for generative AI media tasks.
Overview
Nanobanana MCP brings generative capabilities directly to your MCP clients (like Claude Desktop or other AI agents). It leverages Google's Gemini API to generate images, icons, patterns, diagrams, and even visual stories.
This server implements the Model Context Protocol, allowing seamless integration with any MCP-compliant tool.
Related MCP server: MCP MediaCrea
✨ Features
Generate Images: Create images from text prompts (
nanobanana_generate_image).Edit Images: Modify existing images using text instructions (
nanobanana_edit_image).Restore Images: Denoise and restore image quality (
nanobanana_restore_image).Generate Icons: Create app icons and favicons in various sizes (
nanobanana_generate_icon).Generate Patterns: Create seamless textures and tileable patterns (
nanobanana_generate_pattern).Generate Diagrams: Create flowcharts, UML, and technical diagrams (
nanobanana_generate_diagram).Story Generation: Generate sequential visual stories (
nanobanana_generate_story).
🚀 Getting Started
Prerequisites
Bun (v1.2+ recommended)
A Google Gemini API Key
Installation
Clone the repository:
git clone <repository-url> cd nanobanana-mcpInstall dependencies:
bun installCreate a
.envfile in the root directory:cp .env.example .env # if example exists, otherwise create new
Configuration
Set the following environment variables in your .env file:
Variable | Description | Default |
| Your Google Gemini API Key (Required for generation) |
|
| The Gemini model to use |
|
| Directory to save generated assets |
|
| Logging verbosity (info, debug, warn, error) |
|
Note: The server will fallback to a Mock Generator if no API key is provided, returning placeholder images for testing.
🏃♂️ Usage
Running the Server
Start the MCP server directly:
bun run index.tsIntegration with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"nanobanana": {
"command": "bun",
"args": ["run", "/absolute/path/to/nanobanana-mcp/index.ts"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}🛠️ Development
Run the test suite to verify functionality:
# Run unit tests
bun test
# Run specific phase tests
bun test src/phase2.test.ts📜 License
This project is licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Edit images over MCP with object removal, background removal, and guided generative edits.
Create and manage AI image and video generations through Quriov's fixed public MCP tools.
AI image, video, voice and music generation over MCP, routed to Veo 3.1, Seedance 2.0 and more.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
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
- AlicenseNot gradedqualityNot gradedmaintenanceEnables image generation, editing, and blending using Gemini 2.5 Flash capabilities, plus text generation for AI-powered creative workflows through MCP tools.-
- AlicenseAqualityAmaintenanceEnables AI image generation and editing using Google's Gemini Multimodal Image APIs.61MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered image generation and editing using Gemini and Imagen models, supporting text-to-image, image editing, and multi-image composition through MCP tools.MIT