# mcp-nano-banana [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/codeFi/mcp-nano-banana  
**GitHub Stars:** 0  
**npm Downloads (last month):** 604  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-nano-banana

## Description
MCP server for Google Nano Banana (Gemini) image generation

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Generate an image using Google Nano Banana (Gemini) AI model. Can generate from text only, or use one or more reference images (up to 14) to guide generation.
- **generate_favicons** — Generate a full favicon package from a prompt or an existing image. Creates PNG sizes, a web manifest, and optional README, then writes files and/or a ZIP bundle.

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

```json
"mcpServers": {
  "mcp-nano-banana": {
    "command": "npx",
    "args": ["-y","mcp-nano-banana"],
    "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 mcp-nano-banana MCP server does

The mcp-nano-banana MCP server exposes Google Gemini image generation through two MCP tools: `generate_image` and `generate_favicons`. It is intended for AI coding assistants that need to create visual assets while working on an application or website.

`generate_image` handles text-to-image requests, edits existing images using instructions, and combines multiple reference images into a composite. Reference files are supplied by path, with support for up to 14 images. The tool can write PNG, JPEG, or WebP output to a requested location.

`generate_favicons` creates a favicon package from either a text description or an existing master image. Its package can include browser icons, an Apple touch icon, Android icon sizes, a web manifest, and an optional README file. It can write individual files, create a ZIP archive, or return the ZIP as base64.

## How it works

The mcp-nano-banana MCP server runs as a Node.js MCP process and uses `GEMINI_API_KEY` to call Google Gemini image models. Nano Banana Pro is the default model. The available model choices also include Nano Banana 2 and the standard Nano Banana model, with different resolution, aspect-ratio, and reference-image support.

Image requests can specify 512px, 1K, 2K, or 4K resolution, plus ratios ranging from square and portrait formats to ultra-wide and tall layouts. Nano Banana 2 supports additional 1:4, 4:1, 1:8, and 8:1 ratios. If the Pro model encounters rate-limit responses such as 429, 403, or 402, the server falls back to Flash.

## Setup and configuration

Install the package globally with `npm install -g mcp-nano-banana`, then provide a Google AI Studio API key through the `GEMINI_API_KEY` environment variable. MCP clients using the standard `mcpServers` JSON format can launch it with `npx -y mcp-nano-banana@latest`.

A local development checkout can be built with `npm install`, `npm run build`, and then started with `node dist/index.js`. Codex and Claude Code examples are provided in the project documentation, along with a standard JSON registration example for other clients.

## Tools and capabilities

- `generate_image`: generate from a prompt, edit files from disk, or combine reference images.
- `generate_favicons`: create favicon files, manifest metadata, and an optional ZIP package.
- Choose model, resolution, aspect ratio, format, and output paths for image generation.
- Set favicon application names, short names, theme colors, and background colors.
- Use PNG, JPEG, or WebP for generated images; reference inputs support PNG, JPG, JPEG, WebP, and GIF.

## Limitations and notes

Using the mcp-nano-banana MCP server requires a paid Google AI Studio account or billing-enabled Google Cloud project. The README gives approximate per-image pricing that varies by model and resolution, rather than a monthly subscription price. Model-specific limits apply to reference images and aspect ratios. The server saves files only when an output path or directory is supplied; otherwise, image data may be returned inline as base64.

_Full upstream README: https://allmcps.com/mcp/mcp-nano-banana/readme_

