Nano Banana

Nano Banana

Enables image generation using Google Gemini models like Gemini 2.0 Flash and Imagen 3.0 with support for custom aspect ratios and negative prompts. It also allows users to list and manage generated images stored in local directories.

Category
Visit Server

README

@saroby/nanobanana-mcp

Google Gemini image generation MCP server (Nano Banana).

Features

  • generate_image - Generate images using Google Gemini models
    • flash mode: gemini-2.0-flash-exp (fast, ~2-3s)
    • pro mode: imagen-3.0-generate-002 (high quality, ~5-8s)
  • list_images - List generated images in a directory

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured