Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoEnables the Gemini provider
OPENAI_API_KEYNoEnables the OpenAI provider
IMAGE_GEN_MCP_LOG_FILENoJSONL ledger path. Absolute path to relocate, `none` to disable the file~/.image-gen-mcp/images.jsonl
IMAGE_GEN_MCP_OUTPUT_DIRNoFallback output directory when a call passes no `output_path`
IMAGE_GEN_MCP_TIMEOUT_MSNoPer-request timeout to the provider API180000
IMAGE_GEN_MCP_ALLOWED_DIRSNoComma separated directories that all reads and writes are confined to. See Security
IMAGE_GEN_MCP_GEMINI_MODELNoDefault Gemini modelgemini-3.1-flash-image
IMAGE_GEN_MCP_OPENAI_MODELNoDefault OpenAI modelgpt-image-2
IMAGE_GEN_MCP_DEFAULT_PROVIDERNo`gemini` or `openai`. When unset: gemini if its key is set, else openaikey-based

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 one or more images from a text prompt using Gemini or OpenAI image models and save them to disk. Returns the absolute saved file path(s) plus provider/model metadata. Strongly prefer passing an absolute output_path inside the current project so the file lands where you can use it. Each image costs real API credits.

edit_imageA

Edit or combine existing image file(s) using a text instruction: modify elements, restyle, add or remove content, or merge references. Reads the source image(s) from disk, saves the result as a NEW file (never overwrites sources), and returns the absolute saved path(s).

list_capabilitiesA

Report which image providers (gemini, openai) are configured in this server, the default provider and models, known model options, the output directory fallback, and any directory restriction in force. Call this first if unsure what is available or why a call failed.

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/nuver-labs/image-gen-mcp'

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