# NanoBanana Pro 2 [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/u2n4/gemini-media-mcp  
**GitHub Stars:** 4  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nanobanana-pro-2

## Description
4K AI image generation via NanoBanana Pro 2: Pro + Flash models, Google Search grounding

## Tools
Capabilities this server exposes over MCP:

- **omni_generate_video** — Generate from text: 3–15 seconds (default 10), 360p/720p/1080p/4k, 16:9 or 9:16. Optional comma-separated `reference_image_paths` accepts 1–6 subject images. Returns a background job ID.
- **omni_image_to_video** — Animate a JPEG, PNG or WebP with a text prompt; same duration, resolution and aspect options.
- **omni_extend_video** — Extend a completed `source_job_id` or Gemini Files API `video_uri`; 3–10 seconds per turn (default 10), 720p, up to 30 seconds total (API enforced). Returns a job ID.
- **omni_interpolate_video** — Transition between `first_frame_path` and `last_frame_path`; 3–10 seconds (default 10), 360p/720p/1080p/4k. Returns a job ID.
- **omni_check_job** — Check async job status. Call every 15-20 seconds until completed or failed.
- **omni_list_jobs** — List all generation jobs and their current status.
- **omni_api_status** — Check API key status -- keys configured, active key, keys remaining.
- **omni_pricing_info** — Link to current Gemini Omni pricing documentation.
- **omni_show_output_stats** — Display generation statistics -- video count, total size, file details, job statuses.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "nanobanana-pro-2": {
    "command": "uvx",
    "args": ["omni-mcp-server"],
    "env": {
      "GEMINI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
pip install nanobanana-imagen-mcp
```

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

```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.

_Full upstream README: https://allmcps.com/mcp/nanobanana-pro-2/readme_

