Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoBind host for http/sse transports (default 127.0.0.1).
MCP_PORTNoBind port for http/sse transports (default 8765).
GROQ_API_KEYNoGroq API key, required whenever engine=groq is used.
MCP_TRANSPORTNoMCP transport: stdio (default), http (streamable HTTP), or sse (legacy).
TELEGRAM_API_IDYesTelegram API ID from my.telegram.org/apps. Required.
MCP_ALLOWED_HOSTSNoComma-separated Host headers accepted for http/sse. Supports a :* suffix for any port.
TELEGRAM_API_HASHYesTelegram API hash from my.telegram.org/apps. Required.
TELEGRAM_AUDIT_LOGNoCustom path for the deletion audit log (defaults to telegram_audit.log next to the server).
TELEGRAM_FLOODGATENoSet to 0 to disable the local flood-prevention gate (default on).
TELEGRAM_LANG_CODENoLanguage code reported to Telegram.
MCP_ALLOWED_ORIGINSNoComma-separated browser origins allowed to call the http/sse server.
TELEGRAM_EVENT_FEEDNoSet to 1 to auto-enable the incoming event feed (callback mode).
TELEGRAM_PROXY_HOSTNoProxy host.
TELEGRAM_PROXY_PORTNoProxy port.
TELEGRAM_PROXY_TYPENoProxy type: socks5, socks4, http, or mtproxy.
TELEGRAM_TRANSCRIBENoVoice transcription mode: off, on-demand (default), or auto.
TELEGRAM_APP_VERSIONNoApp version shown in Telegram Settings > Devices.
TELEGRAM_ALIASES_FILENoOverride the path of the remembered-contact aliases file.
TELEGRAM_DEVICE_MODELNoDevice model shown in Telegram Settings > Devices.
TELEGRAM_PROXY_SECRETNoMTProxy secret (required when TELEGRAM_PROXY_TYPE=mtproxy).
TELEGRAM_SESSION_NAMENoFile-based session name/path (Telethon SQLite session).
TELEGRAM_ALLOWED_ROOTSNoSemicolon-, comma- (or POSIX colon-) separated paths used as allowed roots for file-path/media tools.
TELEGRAM_EXPOSED_TOOLSNoTool surface: all (default), read-only, or read-only+<tool>,<tool>, optionally followed by -<tool>,<tool> to hide tools.
TELEGRAM_MCP_HTTP_TOKENNoBearer token required for HTTP transport authentication and MCP Events webhooks.
TELEGRAM_MEDIA_BASE_URLNoPublic base URL for serving downloaded files and upload PUT targets when clients are on another machine.
TELEGRAM_PROXY_PASSWORDNoOptional proxy password.
TELEGRAM_PROXY_USERNAMENoOptional proxy username.
TELEGRAM_SESSION_STRINGNoTelegram session string generated by session_string_generator.py.
TELEGRAM_SYSTEM_VERSIONNoSystem version shown in Telegram Settings > Devices.
TELEGRAM_DOWNLOAD_SUBDIRNoSubdirectory under the first allowed root where downloads are saved.
TELEGRAM_EVENT_FEED_FILENoPath for the incoming event feed JSONL file.
TELEGRAM_SESSION_STRINGSNoSession pool: several interchangeable session strings separated by whitespace, comma or semicolon, used so multiple concurrent clients can each claim a distinct session.
TELEGRAM_ALLOWED_CHAT_IDSNoComma-separated allowlist of chat IDs (marked form) or usernames to restrict chat access. Unset means unrestricted.
TELEGRAM_BLOCKED_CHAT_IDSNoComma-separated list of chat IDs and/or usernames to exclude across all accounts.
TELEGRAM_SYSTEM_LANG_CODENoSystem language code reported to Telegram.
TELEGRAM_EXPECTED_USERNAMENoExpected account username (case-insensitive, leading @ ignored). If set, the server refuses to start when the session belongs to a different account.
TELEGRAM_SERVER_ROOTS_ONLYNoWhen set to 1, uses server allowed roots directly and skips roots/list (client Roots are ignored).
TELEGRAM_TRANSCRIBE_ENGINENoDefault transcription engine: groq (default), telegram, openai, or whisper.
TELEGRAM_SESSION_STRING_WORKNoSession string for the labeled 'work' account.
TELEGRAM_TRANSCRIBE_LANGUAGENoISO-639-1 language hint passed to groq/openai/whisper engines.
TELEGRAM_TOOL_TIMEOUT_SECONDSNoServer-side ceiling for tool calls in seconds (default 55). Set 0 for unbounded.
TELEGRAM_TRANSCRIPT_CACHE_DIRNoDirectory for the SQLite transcript cache (default data/transcripts).
TELEGRAM_FLOOD_SLEEP_THRESHOLDNoMax seconds Telethon sleeps silently on FloodWait (default 60).
TELEGRAM_TRANSCRIBE_OPENAI_URLNoOpenAI-compatible /audio/transcriptions base URL for engine=openai.
TELEGRAM_SESSION_STRING_PERSONALNoSession string for the labeled 'personal' account.
TELEGRAM_TRANSCRIBE_OPENAI_MODELNoModel name for engine=openai (default whisper-1).
TELEGRAM_TRANSCRIBE_WHISPER_MODELNoLocal faster-whisper model for engine=whisper (default small).
TELEGRAM_TRANSCRIBE_OPENAI_API_KEYNoBearer token for the OpenAI-compatible transcription endpoint (optional for keyless local servers).
TELEGRAM_ALLOW_SERVER_ROOTS_FALLBACKNoWhen set to 1, falls back to server CLI roots when client Roots are empty or list_roots fails.

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