MCP server for AI image generation using NanoBanana Pro 2 -- 4K resolution
Project description
NanoBanana MCP Server
MCP server for AI image generation using NanoBanana Pro 2. Supports Pro (maximum quality) and Flash (fast generation) models with default 4K resolution.
Inspired by the nano-banana naming convention used across the MCP community. This is an independent implementation.
What It Does
Generates AI images using NanoBanana Pro 2 models. Supports text-to-image generation, image editing with reference images, file uploads, and server maintenance. Produces high-quality images at up to 4K resolution.
Tools (4)
| Tool | Description |
|---|---|
generate_image |
Generate images using NanoBanana Pro 2. Supports model selection (Pro/Flash), aspect ratio, resolution (up to 4K), negative prompts, thinking level, grounding, reference images, and batch generation. |
upload_file |
Upload a reference image for use in image editing or conditioning. |
show_output_stats |
Display statistics about generated images — count, total size, file details. |
maintenance |
Server maintenance and cleanup — clear caches, remove temporary files, optimize storage. |
Models
| Model | Engine | Best For |
|---|---|---|
| Pro | Gemini 3 Pro Image | Maximum quality, complex scenes, photorealism |
| Flash | Gemini 3.1 Flash Image | Fast generation, simple scenes, quick iterations |
Configuration
| Variable | Description | Default |
|---|---|---|
GEMINI_API_KEY |
Gemini API key (required) | -- |
Claude Desktop Configuration
From pip (recommended)
pip install nanobanana-imagen-mcp
{
"mcpServers": {
"nanobanana": {
"command": "python",
"args": ["-m", "nanobanana_mcp_server.server"],
"env": {
"GEMINI_API_KEY": "your_key_here"
}
}
}
}
From this repository
{
"mcpServers": {
"nanobanana": {
"command": "python",
"args": ["-m", "servers.nanobanana.nanobanana_mcp_server.server"],
"env": {
"GEMINI_API_KEY": "your_key_here"
},
"cwd": "path/to/gemini-media-mcp"
}
}
}
Features
- Default 4K resolution for maximum detail
- Pro model for complex, photorealistic scenes
- Flash model for fast iterations and simple subjects
- Reference image support for consistent multi-angle shots
- Negative prompt support for quality control
- Thinking level control for complex multi-element scenes
- Google Search grounding for real-world subjects
License
MIT
Credits
Inspired by the nano-banana naming convention used across the MCP community. This is an independent implementation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nanobanana_imagen_mcp-1.1.0.tar.gz.
File metadata
- Download URL: nanobanana_imagen_mcp-1.1.0.tar.gz
- Upload date:
- Size: 161.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81a25474d684257b27ac4dfb4cef06165b74280302a29799895bc0994dc90ea6
|
|
| MD5 |
213ef98126a7d378e612551542951116
|
|
| BLAKE2b-256 |
42df468b559e5e9e9b7afa98e61f53686d3df73354a1ea773aaf86cf57d5a9da
|
File details
Details for the file nanobanana_imagen_mcp-1.1.0-py3-none-any.whl.
File metadata
- Download URL: nanobanana_imagen_mcp-1.1.0-py3-none-any.whl
- Upload date:
- Size: 81.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b17452d9b648dc0c40daae93e34584a9a7e8abc94e6c1afc9bf6902225c05717
|
|
| MD5 |
be051f01b000b78a04b9bff453dc6ef5
|
|
| BLAKE2b-256 |
9caf1625c7b8bc8fd1ffed38f3785f88e9e6ddf84948732f8c41f1412762670d
|