Skip to main content
Glama
Telegram User MCP

Telegram User MCP

by pewpewgogo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TELEGRAM_API_IDYesNumeric api_id from the Telegram user application created at my.telegram.org/apps.
TELEGRAM_API_HASHYesapi_hash from the Telegram user application created at my.telegram.org/apps.
TELEGRAM_MCP_HOSTNoHost to bind when running over HTTP. Binding anything other than 127.0.0.1, localhost, or ::1 requires TELEGRAM_MCP_AUTH_TOKEN.
TELEGRAM_MCP_PORTNoPort to bind when running over HTTP.
TELEGRAM_TRANSPORTNoHow the process reaches Telegram: tcp or websocket. Default is tcp. Use websocket when direct TCP port 443 is intercepted.tcp
TELEGRAM_MCP_TRANSPORTNoSet to http to run the MCP server over HTTP instead of stdio.
TELEGRAM_MCP_AUTH_TOKENNoBearer token required when binding HTTP to a non-loopback address. Clients send Authorization: Bearer <token>.
TELEGRAM_STRING_SESSIONYesStringSession for the Telegram user account. Anyone with it can read chats and send messages as that account, so store it like a password.
TELEGRAM_DIALOG_SCAN_CAPNoDialogs scanned by unread listing and title search. Maximum 500.200
TELEGRAM_MIN_INTERVAL_MSNoMinimum gap between Telegram calls, in milliseconds.400
TELEGRAM_MCP_SKIP_INSTALLNoSet to 1 to fail instead of running npm ci and npm run build on first launch when dist/ is missing.
TELEGRAM_FLOOD_RETRY_MAX_SECONDSNoA FloodWait or slow-mode wait this short is slept once and retried. Longer waits return FLOOD_WAIT and retry_after_seconds.3

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