# Nano Banana MCP

> Nano Banana MCP is an open-source MCP server for design and media. Generate and edit images with Google Gemini's Nano Banana models. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/fjacquet/nano-banana-mcp
- **MCP Registry name:** io.github.fjacquet/nano-banana-mcp
- **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 is an independent TypeScript rewrite of an earlier Nano Banana server, published under its own npm name. It talks to five Gemini image models, defaulting to Nano Banana 2.1, and lets you pick another per call: Pro for the highest quality, a Lite model that is fastest and cheapest but limited to 1K output and no search grounding, and a legacy model Google is shutting down on 2027-03-15.

The three creation tools take optional settings for aspect ratio or a preset shape (web, phone, webconf, banner, square), output size, thinking level and Google Search grounding, where the queries run are listed in the output. Image paths are validated against allowed extensions, a 20MB limit and allowed roots, and tool inputs are checked with Zod.

You supply a Gemini API key from Google AI Studio, either as an environment variable or later through a configuration tool. The code is MIT licensed.

## Features

- **Five Gemini models:** Choose between Nano Banana 2.1, Pro, 2, 2 Lite and the legacy model.
- **Iterative editing:** Continue editing the last generated image across turns.
- **Output presets:** Aspect ratio or web, phone, webconf, banner and square shapes.
- **Search grounding:** Optionally ground images with Google Search and see the queries used.
- **Path validation:** Checks extensions, a 20MB limit and allowed roots for input images.

## Good for

- Generate illustrations or hero images from a prompt inside your editor
- Edit an existing image with optional reference images
- Produce banner or phone-shaped assets with a preset
- Refine an image over several turns without restating it

## Install

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

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

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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

```json
{
  "mcpServers": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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 nano-banana-mcp --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @fjacquet/nano-banana-mcp
```

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "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": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

## Tools

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

- `generate_image`: Create new images from text prompts.
- `edit_image` (name suggests: changes): Modify existing images with optional reference images.
- `continue_editing`: Iteratively edit the last image.
- `get_last_image_info` (name suggests: reads): Get info about the last image.
- `configure_gemini_token`: Set the Gemini API key.
- `get_configuration_status` (name suggests: reads): Check configuration.

## FAQ

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

Node.js 18 or newer and a Gemini API key from Google AI Studio.

### Which model is the default?

Nano Banana 2.1.

### Can I set the key after installing?

Yes, the configure_gemini_token tool sets it.

### Is the legacy model still available?

It is listed, but Google is shutting it down on 2027-03-15.

### Is Nano Banana MCP free?

Yes. Nano Banana MCP is open source, so you can use and self-host it for free.

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

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

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

The closest alternatives to Nano Banana MCP 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.
- [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.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.

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