Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for the proxy server's HTTP-based endpoints (`/sse`, `/mcp`, and Admin UI if enabled). Only used when running in a mode that starts an HTTP server (e.g., via `npm run dev:sse` or the Docker container). The `npm run dev` script runs in Stdio mode.3663
LOGGINGNo(Optional) Controls the minimum log level output by the server. Possible values (case-insensitive): `error`, `warn`, `info`, `debug`. Logs at the specified level and all levels above it will be shown.info
ALLOWED_KEYSNo(Optional) Comma-separated list of API keys to secure the proxy's HTTP-based endpoints (`/sse`, `/mcp`). If neither `ALLOWED_KEYS` nor `ALLOWED_TOKENS` are set, authentication is disabled for these endpoints. Clients must provide a key via `X-Api-Key` header or `?key=` query parameter.
TOOLS_FOLDERNo(Optional) Specifies the base directory for Stdio server installations initiated via the Admin UI, used when `installDirectory` is not explicitly set in `mcp_server.json` for a specific server. If set, installations for servers without a specific `installDirectory` will target a subdirectory named after the server key within this folder (e.g., `${TOOLS_FOLDER}/<server_key>`). If not set or empty, such installations default to a `tools` subdirectory within the proxy server's working directory (e.g., `./tools/<server_key>`). The Dockerfile sets this to `/tools` by default.
ADMIN_PASSWORDNoPassword for Admin UI login. Required if the Admin UI is enabled. Change this!password
ADMIN_USERNAMENoUsername for Admin UI login. Required if the Admin UI is enabled.admin
ALLOWED_TOKENSNo(Optional) Comma-separated list of Bearer Tokens to secure the proxy's HTTP-based endpoints (`/sse`, `/mcp`). If neither `ALLOWED_KEYS` nor `ALLOWED_TOKENS` are set, authentication is disabled. Clients must provide a token via the `Authorization: Bearer <token>` header. If both `ALLOWED_KEYS` and `ALLOWED_TOKENS` are configured, Bearer Token authentication will be attempted first.
SESSION_SECRETNo(Optional, recommended if Admin UI enabled) Secret used to sign session cookies. If not set, a default, less secure secret is used, and a warning is issued. A secure secret is automatically generated and saved to `config/.session_secret` on first run if not provided via environment variable.
ENABLE_ADMIN_UINo(Optional) Set to `true` to enable the Web Admin UI (only applicable in SSE mode).false
RETRY_SSE_TOOL_CALLNo(Optional) Controls whether to enable retries for SSE tool calls. Set to `"true"` to enable, `"false"` to disable.true
RETRY_HTTP_TOOL_CALLNo(Optional) Controls whether to retry on HTTP tool call connection errors. Set to `"true"` to enable, `"false"` to disable.true
RETRY_STDIO_TOOL_CALLNo(Optional) Controls whether to retry on Stdio tool call connection errors (attempts to restart the process). Set to `"true"` to enable, `"false"` to disable.true
SERVER_TOOLNAME_SEPERATORNo(Optional) Defines the separator used to combine the server name and tool name when generating the unique key for tools (e.g., `server-key__tool-name`). This key is used internally and in the `tool_config.json` file. Must be at least 2 characters long and contain only letters (a-z, A-Z), numbers (0-9), hyphens (`-`), and underscores (`_`). If the provided value is invalid, the default (`__`) will be used, and a warning will be logged.__
SSE_TOOL_CALL_MAX_RETRIESNo(Optional) Maximum number of retry attempts for SSE tool calls (after the initial failure).2
HTTP_TOOL_CALL_MAX_RETRIESNo(Optional) Maximum number of retry attempts for HTTP tool calls (after the initial failure).2
STDIO_TOOL_CALL_MAX_RETRIESNo(Optional) Maximum number of retry attempts for Stdio tool calls (after the initial failure).2
SSE_TOOL_CALL_RETRY_DELAY_BASE_MSNo(Optional) Base delay in milliseconds for SSE tool call retries, used in exponential backoff.300
HTTP_TOOL_CALL_RETRY_DELAY_BASE_MSNo(Optional) Base delay in milliseconds for HTTP tool call retries, used in exponential backoff.300
STDIO_TOOL_CALL_RETRY_DELAY_BASE_MSNo(Optional) Base delay in milliseconds for Stdio tool call retries, used in exponential backoff.300

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