Skip to main content
Glama
arielsacagiu

Telegram MCP Server

by arielsacagiu

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost to bind for http/sse transports. Defaults to '127.0.0.1'.
MCP_PORTNoPort to bind for http/sse transports. Defaults to '8765'.
MCP_TRANSPORTNoTransport protocol: stdio (default), http, or sse.
TELEGRAM_API_IDYesYour Telegram API ID from my.telegram.org/apps
MCP_ALLOWED_HOSTSNoComma-separated list of allowed Host headers for DNS-rebinding protection. Optional.
TELEGRAM_API_HASHYesYour Telegram API hash from my.telegram.org/apps
MCP_ALLOWED_ORIGINSNoComma-separated list of allowed origins for CORS. Optional.
TELEGRAM_EVENT_FEEDNoSet to '1' to enable the incoming event feed by default.
TELEGRAM_PROXY_HOSTNoProxy host.
TELEGRAM_PROXY_PORTNoProxy port.
TELEGRAM_PROXY_RDNSNoWhether to use remote DNS (true/false). Optional.
TELEGRAM_PROXY_TYPENoProxy type: socks5, socks4, http, or mtproxy.
TELEGRAM_APP_VERSIONNoApp version reported to Telegram.
TELEGRAM_ALIASES_FILENoPath to the aliases JSON file. Defaults to the state directory.
TELEGRAM_DEVICE_MODELNoDevice model reported to Telegram. Defaults to host platform.
TELEGRAM_PROXY_SECRETNoMTProxy secret (required when TELEGRAM_PROXY_TYPE=mtproxy).
TELEGRAM_SESSION_NAMENoName of a file-based Telegram session (alternative to TELEGRAM_SESSION_STRING).
TELEGRAM_CONTACT_FUZZYNoSet to '0' to disable fuzzy contact suggestions. Defaults to '1'.
TELEGRAM_EXPOSED_TOOLSNoSet to 'read-only' to expose only read-only tools, or 'read-only+tool1,tool2' to add specific write tools. Defaults to 'all'.
TELEGRAM_PROXY_PASSWORDNoProxy password (optional).
TELEGRAM_PROXY_USERNAMENoProxy username (optional).
TELEGRAM_SESSION_STRINGYesYour Telegram session string generated by session_string_generator.py. Required for authentication. Alternatively, use TELEGRAM_SESSION_NAME for a file-based session.
TELEGRAM_SYSTEM_VERSIONNoSystem version reported to Telegram.
TELEGRAM_EVENT_FEED_FILENoPath to the incoming event feed JSONL file.
TELEGRAM_SESSION_STRINGSNoWhitespace, comma, or semicolon-separated list of interchangeable session strings for a session pool. Takes precedence over TELEGRAM_SESSION_STRING.
TELEGRAM_ALLOW_SERVER_ROOTS_FALLBACKNoSet to '1' to fall back to server CLI roots when client roots are empty or fail.

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/arielsacagiu/telegram-mcp'

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