nano-banana-mcp MCP Server

A Model Context Protocol server for AI image generation and editing with Google's Gemini "Nano Banana" image models, via the Interactions API.

Local serverstdioMIT

What is the nano-banana-mcp Server?

nano-banana-mcp is an MCP project maintained in the petrkindlmann/nano-banana-mcp repository. The maintainer describes its purpose as “A Model Context Protocol server for AI image generation and editing with Google's Gemini "Nano Banana" image models, via the Interactions API”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares GEMINI_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_image
edit_image
generate_story
generate_icon_set
generate_from_video
TierModel ID
litegemini-3.1-flash-lite-image
nanogemini-2.5-flash-image
flashgemini-3.1-flash-image
progemini-3-pro-image
ArgType
promptstring
modellite/nano/flash/pro
ratiostring
size512/1K/2K/4K
use_searchboolean
use_image_searchboolean
show_thinkingboolean
previewboolean
previous_interaction_idstring
reference_imagesstring[]
output_dirstring
basenamestring
promptsstring[]
youtube_urlstring

How to install the nano-banana-mcp Server

{
  "mcpServers": {
    "nano-banana": {
      "command": "node",
      "args": [
        "/absolute/path/to/nano-banana-mcp/index.js"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GEMINI_API_KEYDeclared in the maintainer’s client configuration.Check documentation