Telegram

•

Expose a Telegram user account, not a bot, over a streamable HTTP endpoint for programmatic access.

tg-mcp serves as an MCP server, transforming a Telegram user account into an accessible HTTP endpoint. Built with FastMCP and Telethon, it offers multi-account support, allowing multiple users to register and link their individual Telegram accounts. Each linked account can then be managed through a suite of tools for tasks like retrieving account information, listing dialogs, fetching chat history, sending messages, and searching messages, all protected by a self-hosted OAuth 2.1 authorization server.

Key Features

01Encrypts stored Telegram session data at rest for security
02Exposes a Telegram user account via HTTP (not a bot)
03Provides tools for listing dialogs, reading chat history, and sending messages
040 GitHub stars
05Supports multiple user accounts, each linked to a personal Telegram account
06Secured with a self-hosted OAuth 2.1 authorization server for user authentication

Use Cases

01Building custom integrations and automations for personal Telegram accounts
02Creating applications that interact with Telegram user accounts programmatically
03Managing multiple personal Telegram accounts from a single centralized server