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.
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.
π 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: Gemini Image MCP
β¨ 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
AI video, image and audio generation with 140+ AI models from any MCP agent
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.
Generate and edit images, video, and music with Sogni AI through a hosted MCP connection.
Related MCP Servers
- 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.MIT
- 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
- FlicenseNot gradedqualityDmaintenanceProvides image generation capabilities using Google's Gemini 2.0 Flash Preview model through the MCP protocol, enabling AI assistants to generate high-quality images from text prompts.-
- 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.-