NanoBanana Pro 2

Official registry Search and web

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

PYPI package nanobanana-imagen-mcp
Claude Code
claude mcp add nanobanana-pro-2 -- uvx nanobanana-imagen-mcp==1.1.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "nanobanana-pro-2": {
            "command": "uvx",
            "args": [
                "nanobanana-imagen-mcp==1.1.2"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Gemini Media MCP
  2. What is This?
  3. What's Included
  4. Quick Start
  5. VEO Server
  6. NanoBanana Server
  7. Prompting Skills
  8. Architecture
  9. Contributing
  10. License
  11. Credits
  12. Support

Gemini Media MCP

All-in-one MCP toolkit for AI media generation -- VEO 3.1 video + NanoBanana Pro 2 images + prompting skills

What's Included • Quick Start • VEO Server • NanoBanana Server • Skills • Contributing


CLIInstall checkVersion check
veo-mcp-serverveo-mcp-server --helpveo-mcp-server --version
nanobanana-imagen-mcpnanobanana-imagen-mcp --helpnanobanana-imagen-mcp --version

What is This?

Gemini Media MCP is a comprehensive toolkit that brings Google's most powerful AI media generation models into any MCP-compatible AI assistant. Generate 4K videos with VEO 3.1, create stunning images with NanoBanana Pro 2, and craft professional prompts with built-in skills -- all from a single repository.

What's Included

MCP Servers
ServerDescriptionTools
VEO 3.1AI video generation (text-to-video, image-to-video, extend, interpolate)9 tools
NanoBananaAI image generation with NanoBanana Pro 2 (Pro + Flash models)4 tools
Claude Code Skills (Plugin Marketplace)
SkillDescription
VEO Prompting7-layer prompt engineering for cinematic VEO 3.1 videos
NanoBanana Prompting7-layer prompt engineering for photorealistic NanoBanana Pro 2 images

Install skills via Claude Code:

/plugin marketplace add u2n4/gemini-media-mcp

Quick Start

This repo hosts two independent MCP servers. Install whichever you need — or both. Each server publishes to PyPI separately.

Add a block to your MCP client config (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf) using the appropriate server block below (see VEO Server / NanoBanana Server sections).

Option B — clone + editable install
git clone https://github.com/u2n4/gemini-media-mcp.git
cd gemini-media-mcp

# Create a virtual environment (uv pip install requires one — or pass --system)
uv venv
source .venv/bin/activate     # macOS / Linux
# .venv\Scripts\activate     # Windows PowerShell

# Install one or both sub-packages
uv pip install -e servers/veo
uv pip install -e servers/nanobanana
VEO Server

uvx (zero-install):

{
  "mcpServers": {
    "veo": {
      "command": "uvx",
      "args": ["veo-mcp-server"],
      "env": {
        "GEMINI_API_KEY": "your_key",
        "VIDEO_OUTPUT_DIR": "./videos"
      }
    }
  }
}

Claude Code:

claude mcp add veo -s user -e GEMINI_API_KEY=your_key -- uvx veo-mcp-server

pip install:

pip install veo-mcp-server
NanoBanana Server

uvx (zero-install):

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

Claude Code:

claude mcp add nanobanana -s user -e GEMINI_API_KEY=your_key -- uvx nanobanana-imagen-mcp

pip install:

pip install nanobanana-imagen-mcp

VEO Server

AI video generation powered by Google VEO 3.1. Uses an async job pattern where generation starts in the background and returns a job ID for polling -- no timeouts.

Tools
ToolDescription
veo_generate_videoGenerate video from text prompt. Supports 720p/1080p/4K, 16:9 or 9:16, 4/6/8 second duration, negative prompts, reference images, seed control, and batch generation (1-4 videos).
veo_image_to_videoAnimate a reference image with a motion prompt.
veo_interpolate_videoCreate smooth transition between two frames (first frame + last frame).
veo_extend_videoExtend an existing VEO video by ~7 seconds. 720p only, max 148 seconds total.
veo_check_jobCheck async job status. Call every 15-20 seconds until completed or failed.
veo_list_jobsList all generation jobs and their current status.
veo_api_statusCheck API key status -- keys configured, active key, keys remaining.
veo_pricing_infoShow pricing per second for standard and fast models at all resolutions.
veo_show_output_statsDisplay generation statistics -- video count, total size, file details, job statuses.
VEO Configuration
VariableDescriptionDefault
GEMINI_API_KEYPrimary API key (required)--
GEMINI_API_KEY_BACKUPBackup key for auto-rotation--
VIDEO_OUTPUT_DIROutput directory for videos~/veo-videos
VEO Models
TierModelBest For
Standardveo-3.1-generate-previewHigher quality output
Fastveo-3.1-fast-generate-previewQuicker generation

NanoBanana Server

AI image generation powered by NanoBanana Pro 2. Supports Pro (maximum quality) and Flash (fast) models with default 4K resolution.

Tools
ToolDescription
generate_imageGenerate images using NanoBanana Pro 2 (Pro or Flash). Supports aspect ratio, resolution (up to 4K), negative prompts, thinking level, grounding, and reference images.
upload_fileUpload reference image for editing or conditioning.
show_output_statsDisplay generation statistics -- image count, total size, file details.
maintenanceServer maintenance and cleanup -- clear caches, remove temporary files.
Models
ModelEngineBest For
ProGemini 3 Pro ImageMaximum quality, complex scenes
FlashGemini 3.1 Flash ImageFast generation, simple scenes

Prompting Skills

VEO Prompting Skill

7-layer prompt engineering system for VEO 3.1:

  1. Cinematography (camera, shot type, lens, angles)
  2. Subject (characters, objects, material cues)
  3. Action (force-based verbs, timestamp beats)
  4. Environment (time of day, weather, depth layers)
  5. Lighting & Mood (physical light sources, color temperature)
  6. Audio Design (dialogue, SFX, ambient, music)
  7. Technical Controls (negative prompts, style anchors, film stocks)
NanoBanana Prompting Skill

7-layer prompt engineering system for NanoBanana Pro 2:

  1. Style & Art Direction (visual DNA)
  2. Scene Description (environment, atmosphere)
  3. Main Subject (hero element with extreme specificity)
  4. Camera & Lens (real camera specs for realism)
  5. Lighting (natural, studio, color temperature)
  6. Texture, Material & Color (tactile detail)
  7. Negative Prompts (quality guards)

Architecture

gemini-media-mcp/
├── servers/
│   ├── veo/                       # VEO 3.1 MCP Server (PyPI: veo-mcp-server)
│   │   ├── pyproject.toml
│   │   ├── requirements.txt
│   │   └── src/
│   │       └── veo_mcp_server/
│   │           ├── __init__.py
│   │           ├── __main__.py
│   │           └── server.py
│   └── nanobanana/                # NanoBanana MCP Server (PyPI: nanobanana-imagen-mcp)
│       ├── pyproject.toml
│       ├── requirements.txt
│       └── nanobanana_mcp_server/ # Package
├── skills/
│   ├── veo-prompting/             # VEO prompting skill
│   │   └── SKILL.md
│   └── nanobanana-prompting/      # NanoBanana prompting skill
│       └── SKILL.md
├── plugins/                       # Claude Code Plugin Marketplace
│   ├── veo-prompting/
│   │   ├── .claude-plugin/
│   │   │   └── plugin.json
│   │   └── skills/
│   │       └── veo-prompting/
│   │           └── SKILL.md
│   └── nanobanana-prompting/
│       ├── .claude-plugin/
│       │   └── plugin.json
│       └── skills/
│           └── nanobanana-prompting/
│               └── SKILL.md
├── .claude-plugin/
│   └── marketplace.json
├── .env.example
├── .gitignore
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── llms.txt
└── llms-install.md

Contributing

See CONTRIBUTING.md.

License

MIT -- see LICENSE.

Credits

  • NanoBanana MCP Server: inspired by the nano-banana naming convention used across the MCP community. This is an independent implementation.
  • VEO 3.1 by Google DeepMind

Support

If you find this useful, please star this repository!


Made with ❤️ in the Eastern Province of Saudi Arabia.

Frequently asked questions

What is NanoBanana Pro 2?

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

How do I install NanoBanana Pro 2?

It runs on your machine. In Claude Code: claude mcp add nanobanana-pro-2 -- uvx nanobanana-imagen-mcp==1.1.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does NanoBanana Pro 2 need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is NanoBanana Pro 2 open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains NanoBanana Pro 2?

It is published by u2n4. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.