Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost to bind for http and sse transports. Default 127.0.0.1.
MCP_PORTNoPort to bind for http and sse transports. Default 8765.
GROQ_API_KEYNoGroq API key required when using the groq transcription engine.
MCP_TRANSPORTNoMCP transport: stdio (default), http, or sse.
TELEGRAM_API_IDYesTelegram API ID from my.telegram.org/apps.
MCP_ALLOWED_HOSTSNoComma-separated allowed Host headers for DNS-rebinding protection.
TELEGRAM_API_HASHYesTelegram API hash from my.telegram.org/apps.
MCP_ALLOWED_ORIGINSNoComma-separated allowed Origin headers.
TELEGRAM_EVENT_FEEDNoSet to 1 to auto-enable the incoming event feed.
TELEGRAM_PROXY_HOSTNoProxy host.
TELEGRAM_PROXY_PORTNoProxy port.
TELEGRAM_PROXY_RDNSNoWhether to use remote DNS for SOCKS proxies, e.g. true or false.
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 active sessions. Default 1.0.
TELEGRAM_ALIASES_FILENoOverride path for the contact aliases JSON file.
TELEGRAM_DEVICE_MODELNoDevice model shown in Telegram active sessions. Default Telegram MCP.
TELEGRAM_PROXY_SECRETNoMTProxy secret.
TELEGRAM_SESSION_LOCKNoSession lock mode: exclusive by default, or shared to allow multiple instances on one host to share a session.
TELEGRAM_SESSION_NAMENoPath to a persistent Telegram SQLite session file.
TELEGRAM_ALLOWED_ROOTSNoSemicolon- or comma-separated allowed root paths for file-path and media tools.
TELEGRAM_CONTACT_FUZZYNoSet to 0 to disable fuzzy contact alias suggestions.
TELEGRAM_EXPOSED_TOOLSNoControls which MCP tools are exposed: all, read-only, or read-only+<tool>,<tool>, optionally followed by -<tool>,<tool>.
TELEGRAM_EVENT_LOG_SIZENoSize of the in-memory per-message event log. Default 2000; 0 disables it.
TELEGRAM_PROXY_PASSWORDNoOptional proxy password.
TELEGRAM_PROXY_USERNAMENoOptional proxy username.
TELEGRAM_SESSION_STRINGNoTelegram session string for the default account.
TELEGRAM_SYSTEM_VERSIONNoSystem version shown in Telegram active sessions. Default 1.0.
TELEGRAM_DOWNLOAD_SUBDIRNoSubdirectory under the first allowed root for downloads. Default downloads.
TELEGRAM_EVENT_FEED_FILENoOverride path for the incoming event feed JSONL file.
TELEGRAM_FILE_EXTENSIONSNoSemicolon-separated tool extension allowlists in tool:.ext,.ext form.
TELEGRAM_SESSION_STRINGSNoWhitespace-, comma-, or semicolon-separated list of interchangeable session strings for a session pool.
TELEGRAM_ALLOWED_CHAT_IDSNoComma-separated allowlist of chat IDs, supergroup IDs, or usernames. When set, only those chats are accessible.
TELEGRAM_EXPECTED_USERNAMENoExpected Telegram username for the default account; startup fails if the session belongs to a different account.
TELEGRAM_SERVER_ROOTS_ONLYNoSet to 1 to use server roots directly and skip roots/list.
TELEGRAM_TRANSCRIBE_ENGINENoDefault transcription engine: groq (default), telegram, openai, or whisper.
TELEGRAM_LOCK_GRACE_SECONDSNoSeconds a second instance waits for the session lock before exiting. Default 20.
TELEGRAM_TRANSCRIBE_TIMEOUTNoTimeout in seconds for a single HTTP transcription request. Default 120.
TELEGRAM_TRANSCRIBE_LANGUAGENoISO-639-1 language hint passed to HTTP transcription engines.
TELEGRAM_TOOL_TIMEOUT_SECONDSNoServer-side ceiling for every tool call. Default 55; set 0 only for an unbounded operator session.
TELEGRAM_TRANSCRIPT_CACHE_DIRNoDirectory for the transcription SQLite cache. Default data/transcripts.
TELEGRAM_FLOOD_SLEEP_THRESHOLDNoMaximum seconds Telethon may silently sleep on FloodWait. Default 60; set 0 to disable silent sleeping.
TELEGRAM_ROOTS_TIMEOUT_SECONDSNoTimeout in seconds for roots/list. Default 10.
TELEGRAM_TRANSCRIBE_MAX_VOICESNoMaximum number of voice messages auto-prefetched per listing call. Default 5.
TELEGRAM_TRANSCRIBE_OPENAI_URLNoOpenAI-compatible transcription API base URL for the openai engine.
TELEGRAM_TRANSCRIBE_GROQ_MAX_MBNoMaximum recording size for the groq engine in MB. Default 25.
TELEGRAM_TRANSCRIBE_MAX_SECONDSNoMaximum total voice duration auto-prefetched per listing call. Default 300.
TELEGRAM_TRANSCRIBE_OPENAI_MODELNoModel for the openai transcription engine. Default whisper-1.
TELEGRAM_TRANSCRIBE_OPENAI_MAX_MBNoMaximum recording size for the openai engine in MB. Default 25.
TELEGRAM_TRANSCRIBE_WHISPER_MODELNoLocal faster-whisper model name. Default small.
TELEGRAM_TRANSCRIBE_OPENAI_API_KEYNoBearer token for the OpenAI-compatible transcription endpoint.
TELEGRAM_TRANSCRIBE_WHISPER_DEVICENoWhisper device: auto, cpu, or cuda.
TELEGRAM_ALLOW_SERVER_ROOTS_FALLBACKNoSet to 1 to fall back to server CLI roots when MCP client Roots are empty or listing fails.
TELEGRAM_TRANSCRIBE_WHISPER_MODEL_DIRNoDirectory where local whisper models are downloaded.
TELEGRAM_TRANSCRIBE_WHISPER_COMPUTE_TYPENoWhisper compute type, e.g. int8 on CPU.

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