Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoServer host0.0.0.0
MCP_PATHNoMCP endpoint path/mcp
MCP_PORTNoServer port3848
EMBED_EXIFNoEmbed metadata in EXIF datafalse
SAVE_METADATANoSave JSON metadata alongside imagestrue
DEFAULT_FORMATNoDefault image format (webp, jpeg, png, or avif)webp
DEFAULT_QUALITYNoDefault quality (1-100)80
DEFAULT_PROVIDERNoDefault image provider (pexels, pixabay, openai, or auto)pexels
MCP_PROJECT_ROOTNoProject root directory
DEFAULT_MAX_WIDTHNoDefault maximum width (1-10000)1920
SECRET_OPENAI_API_KEYNoYour OpenAI API key for AI image generation. Get it from https://platform.openai.com/api-keys
SECRET_PEXELS_API_KEYNoYour Pexels API key for stock image search. Get it from https://www.pexels.com/api/
SECRET_PIXABAY_API_KEYNoYour Pixabay API key for stock image search. Get it from https://pixabay.com/api/docs/
SECRET_OPENAI_ORGANIZATION_IDNoYour OpenAI organization ID (optional)

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/unbywyd/tscodex-mcp-images'

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