Nanobanana MCP Server

Lean MCP server for Google's Nano Banana (Gemini) image models. Returns file paths, not base64.

Local serverstdio

What is the Nanobanana MCP Server?

Lean MCP server for Google's Nano Banana (Gemini) image models. Returns file paths, not base64.

What it actually does

A lean MCP server for Google's Nano Banana (Gemini) image models. It generates and edits images from any MCP client (Claude Code, Claude Desktop, Cursor) and hands back file paths instead of base64, so your agent's context stays small.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_image
edit_image
list_modelsTakes no params. Lists the image model ids your API key can use. Handy when a pinned model id stops working, which is how earlier Nano Banana servers broke.

How to install the Nanobanana MCP Server

{
  "mcpServers": {
    "nanobanana": {
      "command": "npx",
      "args": ["-y", "@nanobanana/mcp"],
      "env": {
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Nanobanana to generate image.”
  • “Use Nanobanana to edit image.”
  • “Use Nanobanana to list models.”

Frequently asked questions

Lean MCP server for Google's Nano Banana (Gemini) image models. Returns file paths, not base64. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.