Skip to content
MCP server

Nano Banana

Generate and edit images with Google Gemini image models from any MCP client

Runs locally

Nano Banana is a free MCP server for design and media. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
Self-hosted, CLI
Runs
Locally
What it can do
Can change data (1 tool)
Access
Needs a secret key or token
Version
0.7.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

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

Claude Desktop setup guide

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

Cursor setup guide

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

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

{
  "mcpServers": {
    "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

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

    Antigravity

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

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

    Devin Desktop setup guide

  • Cline

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

    Cline setup guide

  • Zed

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

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

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

    Junie

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

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

    Kiro setup guide

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

Configuration

  • GEMINI_API_KEYGoogle Gemini API keyRequired
  • MCP_WORKSPACE_PATHWorkspace directory for saving generated images
  • NANO_BANANA_GEMINI_TIMEOUT_MSOutbound Gemini request timeout in milliseconds
  • NANO_BANANA_BRIDGE_TIMEOUT_MSHost-bridge request timeout in milliseconds

About Nano Banana

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.

Tools this server provides (3)

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

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_editName suggests: changes
Edit existing images, accepting up to 14 reference images.

What it does

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

Pricing

Free

Server is free; you supply your own Gemini API key

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

How AIPoweredBot checks servers