Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoListen port (Railway injects this).8080
AUDIT_LOGNoLog one structured JSON line per MCP request (ip, server, method, tool, status).false
AUTH_TOKENYesBearer token for /mcp/* and /api/*. Auto-generated by the Railway template.
PUBLIC_URLNoCanonical scheme://host used in auth challenges and RFC 9728 metadata.
MEMORY_FILENoFile path (on a volume) to persist the memory server, e.g. /data/memory.json.
DATABASE_URLNoPostgres connection string; activates the postgres server (read-only).
GITHUB_TOKENNoGitHub PAT; activates the github server.
ALLOW_NO_AUTHNoExplicit opt-in to run without authentication (the hub refuses to start otherwise when AUTH_TOKEN is unset).false
MAX_BODY_BYTESNoMax JSON request body size in bytes.1000000
RATE_LIMIT_RPMNoRequests per minute per IP on /mcp/* and /api/*; 429 beyond.120
ENABLED_SERVERSNoComma-separated server ids (utils,fetch,memory,github,postgres) or 'all'.all
FETCH_MAX_BYTESNoMax bytes fetched per request by the fetch server.1000000
FETCH_ALLOW_HOSTSNoComma-separated hostname allowlist for the fetch server.
STRICT_HEADER_VALIDATIONNoReject Mcp-Method header/body mismatches (2026-07-28 behavior) instead of warning.false

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/KbnCodes/mcp-server-hub'

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