Skip to main content
Glama
telegram-user-mcp

telegram-user-mcp

by VKirill

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TG_ROOTNoInstall root.this folder
TG_PHONENoTelegram phone number used for login; can also come from the environment.
TG_API_IDNoTelegram api_id obtained from https://my.telegram.org/apps; can also come from the environment.
TG_OUTBOXNoFile-exchange folder for uploads and downloads.<root>/outbox
TG_TIMEOUTNoDefault per-call timeout in seconds.180
TG_API_HASHNoTelegram api_hash obtained from https://my.telegram.org/apps; can also come from the environment.
TG_MCP_HOSTNoListen address for the HTTP MCP server.127.0.0.1
TG_MCP_PORTNoListen port for the HTTP MCP server.12020
TG_MCP_TOKENNoBearer token. Required unless TG_MCP_TOKEN_FILE is used. TG_MCP_ALLOW_NO_AUTH=1 disables auth for local testing.
TG_ACCOUNT_DIRNoAccount name used under the root directory.main
TG_PRIVATE_DIRNoDirectory for the Telethon session and credentials.<root>/accounts/<account>/private
TG_DEVICE_MODELNoDevice name shown in Telegram → Devices; keep it the same for the server and triggers.telegram-user-mcp
TG_MCP_PUBLIC_URLNoBase URL put into download_url and tool descriptions.http://<host>:<port>
TG_MCP_TOKEN_FILENoPath to a file containing the bearer token. Alternative to TG_MCP_TOKEN.
TG_MCP_TOKEN_HINTNoHow your agents obtain the token, shown in tool descriptions.generic text
TG_OUTBOX_TTL_HOURSNoAuto-delete age for outbox files in hours; 0 means never.72
TG_MCP_ALLOW_NO_AUTHNoSet to 1 to disable bearer-token auth for local testing.

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