Skip to content
MCP server

Nano Banana MCP

Generate and edit images with Google Gemini's Nano Banana models

Runs locally

Nano Banana MCP is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI
Runs
Locally
What it can do
Can change data (1 tool)
Version
3.3.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "nano-banana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fjacquet/nano-banana-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GEMINI_API_KEYGemini API key from Google AI Studio. Optional: it can also be set later with the configure_gemini_token tool.

About Nano Banana MCP

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.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

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_imageName suggests: changes
Modify existing images with optional reference images.
continue_editing
Iteratively edit the last image.
get_last_image_infoName suggests: reads
Get info about the last image.
configure_gemini_token
Set the Gemini API key.
get_configuration_statusName suggests: reads
Check configuration.

What it does

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

Pricing

Open source

MIT licence; image generation uses your own Gemini API key and Google's pricing

Nano Banana MCP 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.

How AIPoweredBot checks servers