← Back to Nano Banana

Install Nano Banana

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

npm install
npm run build
2

Register it in Claude Code

claude mcp add -e "GOOGLE_API_KEY=${GOOGLE_API_KEY}" nanobanana -- node /path/to/nanobanana-mcp-server/dist/index.js

Replace any placeholder paths in the command with the real path on your machine.

Required:GOOGLE_API_KEY+ 1 optional

Environment Variables

Set these before running Nano Banana.

VariableDescriptionRequired
GOOGLE_API_KEYGoogle AI Studio API keyYes
HTTPS_PROXYHTTPS proxy addressNo

Available Tools (1)

Once configured, Nano Banana gives your AI agent access to:

generate_imageGenerates an image based on a text prompt and saves it locally.
promptoutput_dir

Try It Out

After setup, try these prompts with your AI agent:

Generate an image of a futuristic city skyline using the Nano Banana model.
Create an image of a cute cat and save it to my desktop.
Use the Nano Banana tool to generate a landscape painting of a mountain range.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • GOOGLE_API_KEY — Google AI Studio API key

Keep this setup from going cold

Save the docs, env vars, and workflow around Nano Banana in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup