Skip to main content
Glama
KiaroSama

Telegram MCP Server

by KiaroSama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost to bind for HTTP/SSE transports.127.0.0.1
MCP_PORTNoPort to bind for HTTP/SSE transports.8765
MCP_TRANSPORTNoMCP transport: stdio, http, or sse.stdio
TELEGRAM_API_IDYesYour Telegram API ID from my.telegram.org/apps.
MCP_ALLOWED_HOSTSNoComma-separated allowed Host headers for DNS-rebinding protection. Replaces the default localhost allow-list.
TELEGRAM_API_HASHYesYour Telegram API hash from my.telegram.org/apps.
MCP_ALLOWED_ORIGINSNoOptional comma-separated allowed origins for HTTP/SSE transports.
TELEGRAM_EVENT_FEEDNoSet '1' to auto-enable the incoming event feed.
TELEGRAM_PROXY_HOSTNoProxy host.
TELEGRAM_PROXY_PORTNoProxy port.
TELEGRAM_PROXY_RDNSNoOptional remote DNS setting for SOCKS proxies.
TELEGRAM_PROXY_TYPENoProxy type: socks5, socks4, http, or mtproxy.
TELEGRAM_APP_VERSIONNoApp version shown in Telegram Settings > Devices.
TELEGRAM_LINK_DOMAINNoDomain used to build Telegram message permalinks.t.me
TELEGRAM_ALIASES_FILENoPath to the JSON file used to store contact aliases.
TELEGRAM_DEVICE_MODELNoDevice model shown in Telegram Settings > Devices.
TELEGRAM_PROXY_SECRETNoMTProxy secret required when TELEGRAM_PROXY_TYPE=mtproxy.
TELEGRAM_SESSION_NAMENoName or path of a file-based Telegram session.
MCP_TRUSTED_PROXY_AUTHNoSet '1' when a reverse proxy in front authenticates requests.
TELEGRAM_CONTACT_FUZZYNoSet '0' to disable fuzzy contact-name suggestions.1
TELEGRAM_EXPOSED_TOOLSNoTool exposure: 'all', 'read-only', or 'read-only+<tool>,<tool>' to selectively expose write tools.all
TELEGRAM_PROXY_PASSWORDNoOptional proxy password.
TELEGRAM_PROXY_USERNAMENoOptional proxy username.
TELEGRAM_SESSION_STRINGNoA Telegram session string for the account. Use this in single-account mode.
TELEGRAM_SYSTEM_VERSIONNoSystem version shown in Telegram Settings > Devices.
TELEGRAM_EVENT_FEED_FILENoPath to the incoming event feed JSONL file.
TELEGRAM_SESSION_STRINGSNoA whitespace-, comma-, or semicolon-separated list of session strings for a session pool, allowing multiple concurrent clients for the same account.
TELEGRAM_MCP_LAUNCHER_LOGNoSet 'off' to disable the Windows launcher's log file.
TELEGRAM_EVENT_PENDING_MAXNoMaximum chats held in the pending-burst map.500
TELEGRAM_LOCK_GRACE_SECONDSNoHow long a second concurrent process waits for the session lock before giving up.20
TELEGRAM_SESSION_STRING_WORKNoExample of a suffixed session string for a named account. Replace 'WORK' with your label; any TELEGRAM_SESSION_STRING_<LABEL> variant can be used for multi-account setups.
TELEGRAM_EVENT_FEED_MAX_BYTESNoMaximum feed file size before rotation.8388608
MCP_ALLOW_UNAUTHENTICATED_REMOTENoSet '1' to allow a non-loopback MCP_HOST without a proxy authenticating requests.
TELEGRAM_EVENT_PENDING_TTL_SECONDSNoAge at which an uncollected event burst is forgotten.3600
TELEGRAM_EVENT_FEED_MAX_AGE_SECONDSNoAge at which the rotated feed generation is deleted.604800
TELEGRAM_ALLOW_SERVER_ROOTS_FALLBACKNoSet '1' to fall back to server CLI roots when MCP 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