Skip to main content
Glama

GPT Image MCP Server

by lansespirit

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging levelINFO
SERVER_PORTNoServer port for HTTP transport3001
DEFAULT_SIZENoDefault image size1536x1024
CACHE_ENABLEDNoEnable or disable cachingtrue
DEFAULT_STYLENoDefault image stylevivid
OPENAI_API_KEYYesYour OpenAI API key (required)
RATE_LIMIT_RPMNoRate limit in requests per minute50
CACHE_TTL_HOURSNoCache time-to-live in hours24
DEFAULT_QUALITYNoDefault image quality settingauto
MODERATION_LEVELNoContent moderation levelauto
MAX_CACHE_SIZE_MBNoMaximum cache size in megabytes500
STORAGE_BASE_PATHNoBase path for image storage./storage
STORAGE_MAX_SIZE_GBNoMaximum storage size in gigabytes10
STORAGE_RETENTION_DAYSNoNumber of days to retain stored images30

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/lansespirit/gpt-image-mcp'

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