Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GOOGLE_CLOUD_PROJECTYesGCP project serving the Vertex image models. (auto-detected from ADC / gcloud)
GOOGLE_CLOUD_LOCATIONNoVertex location for the Gemini models. Leave as 'global'.global
GEMINI_IMAGE_LOG_LEVELNostderr log level for the server (DEBUG/INFO/WARNING/ERROR).INFO
GEMINI_IMAGE_OUTPUT_DIRNoDefault dir for saved PNGs when a call omits output_dir. Falls back to the server CWD.
GEMINI_IMAGE_IMAGEN_LOCATIONNoVertex location for the Imagen models.us-central1

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate image(s) from a text prompt.

Args:
    prompt: The text description of the image to generate.
    model: Friendly alias — nano-banana (default), nano-banana-pro, imagen-4,
        imagen-4-fast, imagen-4-ultra. Call list_models for details.
    aspect_ratio: e.g. "1:1", "16:9", "9:16". Allowed values depend on the model.
    n: Number of images (Gemini loops one per call; imagen-4-ultra supports 1 only).
    output_dir: Where to save the full-res PNG(s). Defaults to env
        GEMINI_IMAGE_OUTPUT_DIR, else the server's CWD.
    return_image: When True, append a downscaled preview of the first image.

Returns:
    A list of text lines (one per saved absolute path), optionally followed by a
    downscaled preview Image of the first result.
edit_imageA

Edit or fuse input image(s) with an instruction (Gemini aliases only).

One input image = edit; two or more = fusion. Imagen models are text-to-image only
and are rejected here.

Args:
    image_paths: Absolute paths to the input image(s).
    prompt: The editing / fusion instruction.
    model: nano-banana (default) or nano-banana-pro.
    output_dir: Where to save the full-res PNG. Defaults to env
        GEMINI_IMAGE_OUTPUT_DIR, else the server's CWD.
    return_image: When True, append a downscaled preview of the result.

Returns:
    A text line with the saved absolute path, optionally followed by a downscaled
    preview Image.
list_modelsA

List the friendly model aliases, their real Vertex ids, and usage notes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/someshwarpatil/gemini-image-mcp'

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