Nano-Banana

v1.0.3Data Science & MLstable

Enables image generation and editing using Google's Gemini models with support for model selection and custom aspect ratios. Users can generate high-quality images or modify existing ones through natural language prompts while controlling specific pa

mcpnano-bananageminiimage-generationai
Share:
193
Stars
0
Downloads
0
Weekly
0/5

What is Nano-Banana?

Nano-Banana is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables image generation and editing using google's gemini models with support for model selection and custom aspect ratios. users can generate high-quality images or modify existing ones through natu...

Enables image generation and editing using Google's Gemini models with support for model selection and custom aspect ratios. Users can generate high-quality images or modify existing ones through natural language prompts while controlling specific pa

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables image generation and editing using Google's Gemini m

Use Cases

Generate images using Google Gemini models.
Edit images with custom aspect ratios and natural language prompts.
ConechoAI

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.3
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y nano-banana-mcp

Manual Installation

npx -y nano-banana-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Nano-Banana

Nano-Banana MCP brings Google Gemini's image generation and editing capabilities into any MCP-compatible AI assistant. It supports generating images from text descriptions, editing existing images with natural language prompts, continuing refinements on previously generated images, and switching between different Gemini model versions. Users working with Claude Code, Cursor, or other AI coding tools can generate design assets, mockups, or illustrations without leaving their workflow.

Prerequisites

  • Node.js 18.0.0+ installed
  • A Google Gemini API key — obtain one free from https://aistudio.google.com/app/apikey
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor
1

Obtain a Google Gemini API key

Visit https://aistudio.google.com/app/apikey, sign in with a Google account, and create a new API key. Copy it — you will paste it into the MCP configuration.

2

Configure your MCP client

Add the Nano-Banana server to your MCP client config. The server is run via npx so no separate install is needed.

3

Verify the API key is recognized

After restarting your MCP client, ask it to check the configuration status. The server exposes a `get_configuration_status` tool for this purpose.

4

Generate your first image

Use the `generate_image` tool through your AI client with a text description. Generated images are saved locally and their path is returned.

Nano-Banana Examples

Client configuration

MCP configuration for Claude Desktop or Claude Code with the Gemini API key set as an environment variable.

{
  "mcpServers": {
    "nano-banana": {
      "command": "npx",
      "args": ["-y", "nano-banana-mcp"],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY_HERE"
      }
    }
  }
}

Prompts to try

Example prompts for image generation and editing with Nano-Banana MCP.

- "Generate an image of a futuristic cityscape at sunset with flying cars"
- "Edit the last image to add a crescent moon and stars to the sky"
- "Continue editing the image but make it look like a watercolor painting"
- "Generate a 16:9 product mockup of a minimalist phone app on a white background"
- "What is the status of my Gemini API configuration?"

Troubleshooting Nano-Banana

Image generation fails with 'API key not valid' or authentication error

Double-check that GEMINI_API_KEY is set correctly in your MCP config env block. Make sure there are no extra spaces or quotes around the key. You can also use the `configure_gemini_token` tool to set the key at runtime.

The `edit_image` tool returns an error about missing image data

You must first generate or load an image before editing. Use `generate_image` first, then call `edit_image` with your modifications. Use `get_last_image_info` to confirm an image is loaded.

npx command hangs on first run

The first run downloads the package from npm. If it hangs, check your internet connection and npm registry access. Try running `npx -y nano-banana-mcp --version` in your terminal to force the download separately.

Frequently Asked Questions about Nano-Banana

What is Nano-Banana?

Nano-Banana is a Model Context Protocol (MCP) server that enables image generation and editing using google's gemini models with support for model selection and custom aspect ratios. users can generate high-quality images or modify existing ones through natural language prompts while controlling specific pa It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Nano-Banana?

Install via npm with the command: npx -y nano-banana-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Nano-Banana?

Nano-Banana works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Nano-Banana free to use?

Yes, Nano-Banana is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "nano-banana-mcp": { "command": "npx", "args": ["-y", "nano-banana-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Nano-Banana?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides