Skip to main content
Glama

@saroby/nanobanana-mcp

Google Gemini image generation MCP server (Nano Banana).

Features

  • generate_image - Generate images using Google Gemini models

    • flash mode: gemini-2.5-flash-image (fast, ~2-3s)

    • pro mode: gemini-3-pro-image-preview (high quality, ~5-8s)

  • list_images - List generated images in a directory

Related MCP server: Imagen MCP Server

Setup

Get API Key

  1. Go to Google AI Studio

  2. Create an API key

Install in Claude Code

claude mcp add nanobanana -e GEMINI_API_KEY=your-key-here -- npx -y @saroby/nanobanana-mcp

Manual Usage

GEMINI_API_KEY=your-key-here npx @saroby/nanobanana-mcp

Tools

generate_image

Parameter

Type

Required

Description

prompt

string

Yes

Image description (1-8192 chars)

model

"flash" | "pro"

No

Model selection (default: flash)

aspect_ratio

enum

No

1:1, 16:9, 9:16, 4:3, 3:4

negative_prompt

string

No

Elements to exclude

output_dir

string

No

Save directory (default: ./nanobanana-images)

count

number

No

Number of images 1-4 (default: 1)

list_images

Parameter

Type

Required

Description

directory

string

No

Directory to search (default: ./nanobanana-images)

Development

npm install
npm run build
npm run dev  # watch mode

License

MIT

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables generating, editing, and manipulating images using Google Gemini Flash 2.5 through natural language prompts. Supports text-to-image generation, image editing, multi-image composition, and batch processing with direct file management.
    82
    4
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    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 parameters like quality and dimensions.

View all related MCP servers

Related MCP Connectors

  • LLM chat, text summarization and AI image generation

  • Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.

  • Generate images, video, and audio with Glif's media-generation agent

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/saroby/nanobanana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server