Skip to main content
Glama
Nanobanana MCP Server
by Porkbutts

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYYesYour Google Gemini API key, required to use the Gemini image generation API.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
nanobanana_generate_imageA

Generate an image from a text prompt using Google's Gemini image generation models.

This tool creates images from descriptive text prompts using Gemini's multimodal capabilities. For best results, be specific about:

  • Subject matter and composition

  • Art style (photorealistic, illustration, oil painting, etc.)

  • Lighting and atmosphere

  • Colors and mood

Args:

  • prompt (string): Text description of the image to generate

  • model (string): Gemini model to use (default: gemini-2.0-flash-exp-image-generation)

  • output_path (string): File path to save the generated image

Returns: JSON with success, saved_to, mime_type, model, text

Examples:

  • "A serene mountain lake at sunset with purple and orange sky reflections"

  • "Cute cartoon robot holding a coffee cup, digital art style"

  • "Professional product photo of a sleek smartphone on white background"

nanobanana_edit_imageB

Edit an existing image using a text prompt with Gemini's image editing capabilities.

This tool modifies images based on natural language instructions. You can:

  • Change colors, objects, or elements

  • Add or remove items from the scene

  • Transform the style or mood

  • Apply effects or filters

Args:

  • prompt (string): Description of the edit to apply

  • image_path (string): File path to the image to edit (PNG, JPEG, WebP, or GIF)

  • model (string): Gemini model to use

  • output_path (string): File path to save the edited image

Returns: JSON with success, saved_to, mime_type, model, text

Examples:

  • "Change the car color from blue to red"

  • "Add a rainbow in the sky"

  • "Remove the person in the background"

  • "Make this photo look like an oil painting"

nanobanana_list_modelsA

List the available Gemini models for image generation.

Returns information about each supported model including its capabilities and recommended use cases.

Args:

  • response_format (string): Output format - 'markdown' or 'json' (default: markdown)

Returns: List of available models with their descriptions and capabilities.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 3 tools

Disambiguation5/5

The three tools target clearly different operations: creating a new image from a prompt, editing an existing image file, and listing available models. There is no plausible overlap, since the input shape (prompt-only vs. prompt+image_path) makes the boundary between generate and edit unambiguous.

Naming Consistency5/5

All tools use the identical pattern of a server prefix plus a verb_noun suffix: nanobanana_generate_image, nanobanana_list_models, nanobanana_edit_image. This is a predictable, uniform convention with no deviation in casing or verb style.

Tool Count4/5

Three tools is on the low end but each serves a distinct, necessary role for an image-generation server, with no filler. The surface is tightly scoped rather than bloated, though it sits near the 'thin' boundary.

Completeness4/5

The core lifecycle is covered: discover models, generate an image, and edit an existing image. Minor gaps exist, such as batch generation or an image-analysis/describe operation, but agents can work around these with repeated single-image calls.