Gemini Nanobanana MCP MCP Server

MCP server for Google Gemini 2.5 Flash Image preview (text-to-image, editing, composition)

Local serverstdioGo

What is the Gemini Nanobanana MCP MCP server?

MCP server for Google Gemini 2.5 Flash Image preview (text-to-image, editing, composition). The gemini nanobanana mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it rather than through you.

What it actually does

A beginner-friendly Model Context Protocol (MCP) server that brings Google's Gemini 2.5 Flash Image generation directly into your Claude conversations.

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at gemini-nanobanana-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Configuration

You will need 5 environment variables: GEMINI_API_KEY, AUTO_SAVE, DEFAULT_SAVE_DIR, LOG_LEVEL, YOUR_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by Junhan2; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Gemini Nanobanana MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the gemini nanobanana mcp mcp server does with a few real requests.

How to install the Gemini Nanobanana MCP MCP server

{
  "mcpServers": {
    "gemini-nanobanana-mcp": {
      "command": "npx",
      "args": ["gemini-nanobanana-mcp@latest"],
      "env": {
        "GEMINI_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes
AUTO_SAVEConfiguration value read at startup.Optional
DEFAULT_SAVE_DIRFilesystem location the server is allowed to use.Optional
LOG_LEVELConfiguration value read at startup.Optional
YOUR_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

You need a Google AI Studio API key. Get one free at [Google AI Studio](https://aistudio.google.com/apikey) by signing in with your Google account.