Skip to main content
Glama
ptbsare

MCP Proxy Server

by ptbsare

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for the proxy server's HTTP-based endpoints3663
LOGGINGNoControls the minimum log level output. Possible values: error, warn, info, debug.info
ALLOWED_KEYSNoComma-separated list of API keys to secure the proxy's HTTP-based endpoints (/sse, /mcp). Clients must provide a key via X-Api-Key header or ?key= query parameter.
TOOLS_FOLDERNoBase directory for Stdio server installations initiated via the Admin UI. Defaults to a 'tools' subdirectory within the proxy server's working directory if not set.
ADMIN_PASSWORDNoPassword for Admin UI login.password
ADMIN_USERNAMENoUsername for Admin UI login.admin
ALLOWED_TOKENSNoComma-separated list of Bearer Tokens to secure the proxy's HTTP-based endpoints (/sse, /mcp). Clients must provide a token via Authorization: Bearer header.
SESSION_SECRETNoSecret used to sign session cookies. If not set, a default less secure secret is used.
ENABLE_ADMIN_UINoSet to 'true' to enable the Web Admin UI (only applicable in SSE mode).false
RETRY_SSE_TOOL_CALLNoControls whether to enable retries for SSE tool calls. Set to 'true' to enable, 'false' to disable.true
RETRY_HTTP_TOOL_CALLNoControls whether to retry on HTTP tool call connection errors. Set to 'true' to enable, 'false' to disable.true
RETRY_STDIO_TOOL_CALLNoControls 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_SEPERATORNoSeparator used to combine server name and tool name when generating unique keys. Must be at least 2 characters and contain only letters, numbers, hyphens, and underscores.__
SSE_TOOL_CALL_MAX_RETRIESNoMaximum number of retry attempts for SSE tool calls (after the initial failure).2
HTTP_TOOL_CALL_MAX_RETRIESNoMaximum number of retry attempts for HTTP tool calls (after the initial failure).2
STDIO_TOOL_CALL_MAX_RETRIESNoMaximum number of retry attempts for Stdio tool calls (after the initial failure).2
RETRY_SSE_TOOL_CALL_ON_DISCONNECTNoControls whether to enable automatic reconnect and retry for SSE tool calls when the underlying connection is lost. Set to 'true' to enable, 'false' to disable.true
SSE_TOOL_CALL_RETRY_DELAY_BASE_MSNoBase delay in milliseconds for SSE tool call retries, used in exponential backoff.300
HTTP_TOOL_CALL_RETRY_DELAY_BASE_MSNoBase delay in milliseconds for HTTP tool call retries, used in exponential backoff.300
STDIO_TOOL_CALL_RETRY_DELAY_BASE_MSNoBase delay in milliseconds for Stdio tool call retries, used in exponential backoff.300

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/ptbsare/mcp-proxy-server'

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