# Nano Banana

> Nano Banana is a free MCP server for design and media. Generate and edit images with Google Gemini image models from any MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Self-hosted, CLI
- **Repository:** https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/nano-banana
- **MCP Registry name:** io.github.mindstone/mcp-server-nano-banana
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

This connector from Mindstone wraps Google's Gemini image models. You bring a Gemini API key, and the server saves it with a configuration tool, generates images from text and edits existing ones. Editing accepts up to 14 reference images for fusion or composition, each a workspace path or an https URL.

Safety details are spelled out. Remote sources are HTTPS only, capped at 20 MB each, and refused if they point at private or loopback hosts, with redirects re-checked at each hop. Saves never overwrite an existing file or symlink and are written owner-only. Output is identified from its bytes, and only PNG, JPEG and WebP are returned.

Resolution can be 1K, 2K or 4K on the Gemini 3 image models, and a model parameter selects among them, including Nano Banana 2.1. Retired preview model ids are mapped to their general-availability ids. The licence is FSL-1.1-MIT, converting to MIT on 2030-04-08.

## Features

- **Text to image:** Generates images from written descriptions.
- **Multi-image editing:** Edits with up to 14 reference images for composition.
- **Resolution control:** Choose 1K, 2K or 4K on supported Gemini 3 models.
- **Safe file saving:** Saves inside the workspace without overwriting.
- **SSRF-guarded fetching:** Blocks private hosts and re-validates redirects.
- **Model choice:** Select among Gemini image models with a parameter.

## Good for

- Create illustrations for a document from a prompt
- Blend several reference photos into one image
- Edit a screenshot and save it into a project folder
- Produce a 4K asset with a Gemini 3 model

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server-nano-banana --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @mindstone/mcp-server-nano-banana
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server-nano-banana --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @mindstone/mcp-server-nano-banana
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server-nano-banana]
command = "npx"
args = ["-y", "@mindstone/mcp-server-nano-banana"]
env = { GEMINI_API_KEY = "<GEMINI_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GEMINI_API_KEY='<GEMINI_API_KEY>' mcp-server-nano-banana npx -- -y @mindstone/mcp-server-nano-banana

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server-nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 3 tools changes data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `configure_nano_banana_api_key`: Save your Gemini API key for image generation.
- `nano_banana_generate`: Generate images from text descriptions.
- `nano_banana_edit` (name suggests: changes): Edit existing images, accepting up to 14 reference images.

## FAQ

### What do I need to run Nano Banana?

Node.js 20 or newer and a Google Gemini API key.

### Which formats come back?

PNG, JPEG and WebP; others return an error.

### What licence applies?

FSL-1.1-MIT, converting to MIT on 2030-04-08.

### Why did my request time out?

Raise NANO_BANANA_GEMINI_TIMEOUT_MS, especially with gemini-3-pro-image.

### Is Nano Banana free?

Yes. Nano Banana is free to use.

### How do I add Nano Banana to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-nano-banana --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @mindstone/mcp-server-nano-banana

### What are the best alternatives to Nano Banana?

The closest alternatives to Nano Banana are HyperFrames by HeyGen, headroom, omniget, ffmpeg-skill and next-ai-draw-io.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [tyk](https://ai-powered.com/mcp/tyk): tyk is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/nano-banana
