Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog level (debug, info, or error)info
OUTPUT_DIRNoDefault directory for saved images~/gemini-images
DEFAULT_MODELNoDefault Gemini modelgemini-2.5-flash-image
GEMINI_API_KEYYesYour Gemini API key
MAX_COST_PER_HOURNoMax estimated cost (USD) per rolling hour (0 = unlimited)0
REQUEST_TIMEOUT_MSNoAPI request timeout in milliseconds60000
SESSION_TIMEOUT_MSNoMulti-turn session expiry in milliseconds1800000
MAX_REQUESTS_PER_HOURNoMax image generations per rolling hour (0 = unlimited)0

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate or edit images using Google Gemini. Provide just a prompt for text-to-image generation. Add image file paths to edit or use reference images (up to 14 on gemini-3-pro). Returns the saved file path, model used, token counts, and estimated cost.

process_imageA

Process an existing image locally using sharp. Crop, resize, remove background, convert format, or trim whitespace. Free, fast, no API calls. For AI-powered editing (style changes, complex background removal), use generate_image with the image as input instead.

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

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