Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoYour OpenAI API key with access to image models. If not provided, the server reads it from ~/.config/image-generator-mcp/.env.
OPENAI_BASE_URLNoBase URL for the OpenAI-compatible API endpoint. Defaults to https://api.openai.com/v1.https://api.openai.com/v1
IMAGE_OUTPUT_DIRNoDefault directory for saving generated images. Defaults to ~/Pictures/claude-images.~/Pictures/claude-images

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
generate_imageA

Generate one or more images from a text prompt using OpenAI's GPT Image models, save them to disk, and return the file paths plus an inline preview.

Prompt style: these models follow long, specific prose well. Describe subject, composition, lighting, medium/style, colour palette and mood. Any text that should appear inside the image must be given verbatim in quotes.

Cost control: use quality "low" (or gpt-image-1-mini) while iterating on composition, then re-render the winner at quality "high".

edit_imageA

Edit existing image(s) with a text instruction. Covers three jobs:

  1. Whole-image edit - pass one image and describe the change.

  2. Inpainting - pass a mask PNG whose transparent areas mark what to replace; everything else is preserved.

  3. Composition / style reference - pass several images and describe how to combine them (e.g. put the product from image 1 into the scene from image 2).

Input images must be png, jpg or webp. dall-e-3 cannot edit; use a gpt-image model.

list_image_modelsA

Show the image models this API key can use, with guidance on which to pick. Call this when you are unsure whether a model is available, when a generation failed with a model error, or when the user asks what is possible.

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/ChristophLabestin/image-generator-mcp'

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