Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoListen interface.0.0.0.0
PORTNoHTTP port.3000
LOG_LEVELNoLog level: debug, info, warn or error.info
PUBLIC_URLNoPublic HTTPS URL of the server (e.g. https://mcp.example.com). Turns on OAuth for clients that cannot send a header (claude.ai, Claude Desktop, codex mcp login...).
ACCESS_KEYSNoOptional, legacy: extra access keys as sha256 hashes (comma-separated). They work like server-created keys but cannot be revoked from the server.
ADMIN_TOKENNoPassword (24+ characters) of the admin page /admin and the admin API, where server access keys are created and revoked. Unset = both disabled.
KOMMO_TOKENNostdio mode and scripts only: the Kommo long-lived token to use.
MAX_BODY_MBNoMaximum request body (JSON or multipart). 140 MB fits a 100 MB file in base64. Read only after authentication.140
TRUST_PROXYNoNumber of proxies in front (Easypanel, Traefik, Nginx = 1).0
KOMMO_BOT_IDNostdio mode and scripts only: salesbot id for messaging.
KOMMO_POLICYNostdio mode and scripts only: policy overrides as JSON or base64.
OAUTH_SECRETNoSecret (32+ characters, keep it stable) that seals OAuth tokens and client registrations, so the server stores nothing. Without it, OAuth connections stop working on restart.
TENANTS_FILENoOptional stored accounts file. Ignored if it does not exist../tenants.json
TENANTS_JSONNoOptional stored accounts as content (JSON or base64; npm run tenants:env). Wins over TENANTS_FILE.
AUDIT_LOG_FILENoAudit log (JSONL). 'off' = the server writes nothing to disk../data/audit.log
KOMMO_TIMEZONENostdio mode and scripts only: IANA time zone, e.g. America/Bogota.
KOMMO_TOOLSETSNostdio mode and scripts only: tool groups the agent sees.
ALLOWED_ORIGINSNoAllowed browser origins, comma-separated.
KOMMO_SUBDOMAINNostdio mode and scripts only: the Kommo account subdomain to use.
STDIO_TENANT_IDNostdio mode with stored accounts: account id, or * for all.
ACCESS_KEYS_FILENoWhere the server keeps its access keys (hashes only). In Docker: /app/data/access-keys.json, keep it on a volume../data/access-keys.json
KOMMO_GLOBAL_RPSNoRequests/s to Kommo across all accounts (they share the server's IP).7
KOMMO_TIMEOUT_MSNoTimeout per Kommo request.15000
KOMMO_ACCOUNT_RPSNoRequests/s per account (can be lowered per account with rps).6
KOMMO_TEMPLATE_IDNostdio mode and scripts only: MCP template id for messaging.
AUTH_FAILS_PER_MINNoInvalid-key attempts per IP per minute before answering 429.20
INBOUND_RPM_PER_KEYNoInbound requests per API key per minute (0 = unlimited).120
SCHEMA_CACHE_TTL_MSNoLifetime of the pipelines, fields, users, bots and tags cache.300000
OAUTH_ACCESS_TTL_MINNoLifetime of an OAuth access token (renewed automatically with the refresh token).60
OAUTH_REFRESH_TTL_DAYSNoLifetime of an OAuth refresh token; after that the user connects again.90
KOMMO_BLOCK_COOLDOWN_MSNoGlobal pause when Kommo answers a blocking 403.120000
KOMMO_MAX_RETRY_WAIT_MSNoLongest wait on a 429 before retrying; if Kommo asks for more, fail fast.5000
ALLOW_REQUEST_CREDENTIALSNoAccept the Kommo subdomain + token sent with each request.true

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

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