Skip to main content
Glama
sdaveas

Telegram Userbot MCP Server

by sdaveas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TG_2FANoTwo-step verification password for QR login.
EXCLUDENoChat titles to ignore in `watch` output.
QR_BINDNoQR login page bind interface.127.0.0.1
QR_PORTNoQR login page port.8791
TZ_NAMENoTimezone for message timestamps (defaults to system tz).
ENV_FILENoWhich env file to load..env
MCP_HOSTNoHTTP bind interface.127.0.0.1
MCP_TOKENNoBearer token for /mcp. Strongly recommended; without it the HTTP endpoint is unauthenticated.
SEEN_FILENoMarker dedup state file../tg-marker-seen.json
SELF_NAMENoHow your own messages are labelled.ME
TG_API_IDYesRequired. Your Telegram api_id from https://my.telegram.org (API development tools).
TG_SESSIONNoInline session string instead of a file.
NOTIFY_CHATNoWhere marker notifications go; defaults to your own Saved Messages.me
TG_API_HASHYesRequired. Your Telegram api_hash from https://my.telegram.org (API development tools).
MARKER_FILTERNoRegex; only matching text is forwarded.
MCP_HTTP_PORTNoHTTP transport port; empty = stdio.
MARKER_MESSAGENoNotification body template, with {chat} {sender} {text} {msgId} placeholders.
REACTION_EMOJINoThe marker reaction emoji.✍️
SEND_ALLOWLISTNoRestrict tg_send_message to these chat titles.
START_LISTENERNoSet to 1 to attach the marker listener inside the MCP process.
TG_SESSION_FILENoWhere the session is stored../session.txt

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