NanoBanana Pro 2 logo

NanoBanana Pro 2

Generate NanoBanana Pro 2 images through MCP with Pro or Flash models, reference images, grounding, and output management.

Install NanoBanana Pro 2

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nanobanana-pro-2": {
      "command": "uvx",
      "args": [
        "omni-mcp-server"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

NanoBanana Pro 2 is an MCP server for generating images through Google’s Gemini media APIs, using Pro or Flash models with output up to 4K. Its tools support prompt-based generation, reference-image uploads, output statistics, and maintenance tasks. Reach for it when an MCP-compatible assistant needs image creation or image conditioning without a custom client integration. The repository also includes a separate Gemini Omni video server with asynchronous video-generation tools.

Use cases

  • Generate 4K images from natural-language prompts
  • Condition image generation with uploaded reference images
  • Create grounded or edited images through an MCP client
  • Review generated-image output statistics
  • Clean temporary files and caches

Key features

  • NanoBanana Pro and Flash model selection
  • Image generation up to 4K
  • Reference-image upload and conditioning
  • Negative prompts and thinking-level controls
  • Grounding and aspect-ratio options
  • Output statistics and maintenance tools

Tools9

What NanoBanana Pro 2 lets your agent do. Expand a tool for its parameters.

Self-reported~264 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 82d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · omni-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.

How NanoBanana Pro 2 works

What NanoBanana Pro 2 does

NanoBanana Pro 2 exposes image-generation capabilities through the Model Context Protocol. It connects an MCP-compatible assistant to Google’s Gemini image models and supports two model choices: Pro for maximum quality and complex scenes, and Flash for faster generation and simpler scenes. Generated images can use configurable aspect ratios and resolutions up to 4K.

The image server is distributed separately from the repository’s Gemini Omni video server. The NanoBanana package is published as nanobanana-imagen-mcp, while the video package is published as omni-mcp-server.

How it works

An MCP client starts the NanoBanana server as a local process, and the assistant invokes its tools through the MCP connection. generate_image accepts the image-generation request and supports negative prompts, a thinking level, grounding, reference images, aspect ratio, and resolution controls.

Reference material can be prepared with upload_file, which uploads an image for editing or conditioning. The server also provides show_output_stats for reviewing image counts, total output size, file details, and generation information. maintenance handles cache clearing and temporary-file removal.

The included NanoBanana prompting skill organizes image requests into seven areas: visual direction, scene, subject, camera and lens, lighting, texture and color, and negative prompts. That skill is available as part of the larger repository’s Claude Code plugin content.

Setup and configuration

Install the NanoBanana package with pip:

Terminal
pip install nanobanana-imagen-mcp

Alternatively, configure an MCP client to launch it with uvx:

config.json
{
  "mcpServers": {
    "nanobanana": {
      "command": "uvx",
      "args": ["nanobanana-imagen-mcp"],
      "env": {
        "GEMINI_API_KEY": "your_key"
      }
    }
  }
}

The server requires GEMINI_API_KEY for access to the Gemini APIs. The repository gives setup examples for Claude Desktop, Claude Code, Cursor, VS Code, and Windsurf.

Tools and capabilities

  • generate_image: Create images with the Pro or Flash model, including reference images, grounding, negative prompts, thinking level, aspect ratio, and resolution settings.
  • upload_file: Upload a reference image for editing or conditioning.
  • show_output_stats: Report image totals, file details, output size, and generation information.
  • maintenance: Clear caches and remove temporary files.

The Pro model uses gemini-3-pro-image; the Flash model uses gemini-nano-banana-2.1. The default image output resolution is 4K.

Limitations and notes

The NanoBanana image server and Gemini Omni video server are separate MCP servers with separate installation commands. The repository’s video tools cover asynchronous generation, image-to-video animation, video extension, interpolation, job polling, API status, pricing information, and video output statistics, but those capabilities belong to the Omni package rather than the NanoBanana image package.

Image generation and model access depend on a valid Gemini API key. Higher-quality Pro generation and faster Flash generation are separate model options with different intended uses.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about NanoBanana Pro 2

NanoBanana Pro 2 is an MCP server that connects MCP-compatible assistants to Google’s Gemini image APIs. Its main tools generate images with Pro or Flash models, upload reference files, show output statistics, and perform maintenance tasks. It supports reference images, grounding, negative prompts, configurable aspect ratios, and resolutions up to 4K.

Install it with `pip install nanobanana-imagen-mcp`, or launch it through `uvx nanobanana-imagen-mcp` from your MCP client configuration. Set `GEMINI_API_KEY` in the server environment so it can access the Gemini APIs.

NanoBanana Pro 2 supports Pro and Flash models. Pro uses `gemini-3-pro-image` for maximum quality and complex scenes, while Flash uses `gemini-nano-banana-2.1` for faster generation and simpler scenes.

Yes. Cursor is included among the MCP clients with a setup example for this server. Configure Cursor to launch `nanobanana-imagen-mcp` through `uvx` and provide `GEMINI_API_KEY`.

Yes. Use `upload_file` to provide an image for editing or conditioning, then use the reference image with `generate_image`. The generation tool also supports grounding, negative prompts, aspect ratios, and resolution controls.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNanoBanana Pro 2 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nanobanana-pro-2?style=directory)](https://allmcps.com/mcp/nanobanana-pro-2)
HTML Embed
<a href="https://allmcps.com/mcp/nanobanana-pro-2"><img src="https://allmcps.com/api/badge/nanobanana-pro-2?style=directory" alt="NanoBanana Pro 2 on AllMCPs" /></a>