Skip to main content
Glama
Telegram MCP

Telegram MCP

by NabuxAi

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATA_DIRNoData directory (default: ./data)
TG_API_IDYesTelegram API ID from my.telegram.org (one pair for the whole server)
TG_API_HASHYesTelegram API hash from my.telegram.org (one pair for the whole server)
LLM_PROVIDERYesLLM/embedding provider: gemini, openai, or ollama
ALLOWED_PHONESNoOptional comma-separated list of allowed phone numbers
APP_SECRET_KEYYesSecret key used to encrypt Telegram sessions (Fernet) and sign cookies. Generate with: python3 -c "import secrets; print(secrets.token_urlsafe(48))"
GEMINI_API_KEYNoAPI key for Gemini (required if LLM_PROVIDER=gemini)
OPENAI_API_KEYNoAPI key for OpenAI (required if LLM_PROVIDER=openai)
PUBLIC_BASE_URLYesPublic base URL of the server (e.g., https://mcp.example.com). For local testing, http://localhost:8000 is allowed.
TELEGRAM_BOT_TOKENNoOptional Telegram bot token for the notebook bot (same archive)
LOGIN_CODES_PER_HOURNoOptional rate limit for login codes per IP per hour

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