MCP server for Telegram userbot β messages, media, reactions, polls & more. Built on GramJS/MTProto.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
π Documentation Β· βοΈ Cloud version β connect Telegram to Claude.ai or ChatGPT in 30 seconds with QR code, no API keys needed.
Telegram MCP Server β a Model Context Protocol server that connects AI assistants like Claude and ChatGPT to Telegram via the MTProto protocol. Unlike bots, this runs as a userbot -- it operates under your personal Telegram account using GramJS, giving full access to your chats, contacts, and message history.
{pts, qts, date} stateMCP_TELEGRAM_ENABLE_STARS=1, v1.34.0)API_ID and API_HASH from my.telegram.orgA QR code will appear in the terminal. Open Telegram on your phone, go to Settings > Devices > Link Desktop Device, and scan the code. The session is saved to ~/.mcp-telegram/session and reused automatically.
Custom session path: set
TELEGRAM_SESSION_PATH=/path/to/sessionto store the session file elsewhere.
Two-step verification (2FA): if your account has a cloud password enabled, scanning the QR code is not enough β Telegram also requires the password. Provide it via
TELEGRAM_2FA_PASSWORDso the login can complete:The password is only used locally to answer Telegram's SRP challenge and is never persisted.
That's it! Ask Claude to run telegram-status to verify.
Use TELEGRAM_SESSION_PATH to run separate Telegram accounts side by side:
Then add each as a separate MCP server:
Each account gets its own session file β no conflicts.
The opposite of multiple accounts: one account driven by many clients at once β several Claude Code windows, parallel sub-agents, or multiple IDEs. Normally each process opens the same session and they evict one another with AUTH_KEY_DUPLICATED. Serve mode fixes this.
Run a single persistent daemon that owns the one Telegram connection. Every other process auto-detects the daemon (via a PID lock) and becomes a thin client that proxies tool calls to it over a local Unix socket:
Then point each MCP client at the same install with the same TELEGRAM_SESSION_PATH β no serve argument. They connect to the daemon automatically; closing any client never drops the shared connection. Credentials are only required by the daemon (the owner), so client commands can omit TELEGRAM_API_ID/TELEGRAM_API_HASH and keep them where the daemon runs.
See the shared daemon guide for a systemd unit and SSH usage.
If Telegram is blocked or you're running in a containerized environment (Docker, K3s), use a SOCKS5 or MTProxy:
| Variable | Description |
|---|---|
TELEGRAM_PROXY_IP | Proxy server address |
TELEGRAM_PROXY_PORT | Proxy server port |
TELEGRAM_PROXY_SOCKS_TYPE | 4 or 5 (default: 5) |
TELEGRAM_PROXY_SECRET | MTProxy secret (enables MTProxy mode) |
TELEGRAM_PROXY_USERNAME | Optional proxy auth |
TELEGRAM_PROXY_PASSWORD | Optional proxy auth |
If your VPS or hosting IP is reachable on outbound port 443 but not the default MTProto port 80 (some cloud providers ban port 80 on Telegram DC IP ranges as anti-abuse policy), set:
| Variable | Description |
|---|---|
TELEGRAM_USE_WSS | When true, gramJS uses port 443 instead of 80 for the MTProto TCPFull transport. Default: false. Cannot be combined with TELEGRAM_PROXY_* (gramJS limitation) β if both are set, useWSS is ignored and the proxy takes precedence (a warning is logged). |
No need to clone or install anything. Just use npx @overpod/mcp-telegram.
Download from Releases β standalone single-file binaries, zero dependencies:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/telegram-mcp-telegram)<a href="https://allmcps.com/mcp/telegram-mcp-telegram"><img src="https://allmcps.com/api/badge/telegram-mcp-telegram?style=directory" alt="Telegram (mcp Telegram) on AllMCPs" /></a>