Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAGE_DIRNoImage storage directory
LOG_LEVELNoLogging level, default INFO
PUBLIC_URLNoPublic base URL for returned image links
MAX_MASK_MBNoMax size for masks, default 4
MCP_API_KEYNoBearer token required for /mcp/ and /images/*
MAX_UPLOAD_MBNoMax size for uploaded images, default 50
OPENAI_API_KEYYesOpenAI API key
MAX_IMAGE_EDGE_PXNoMax image edge length, default 8192
IMAGE_RETENTION_DAYSNoCleanup retention window, default 7
OPENAI_RETRY_ATTEMPTSNoRetry count for OpenAI image calls, default 3
REQUEST_TIMEOUT_SECONDSNoTimeout for remote image downloads, default 60
CLEANUP_INTERVAL_SECONDSNoCleanup interval, default 86400
OPENAI_RETRY_BASE_DELAY_SECONDSNoRetry backoff base, default 0.75

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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

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