Agent♥︎Age
Catalog

TG multi-account MCP

Official

by Mesteriis · Python

Self-hosted, consent-based access to Telegram accounts and bots for MCP clients

io.github.Mesteriis/tg-account-mcp (MCP) Server

A self-hosted Model Context Protocol (MCP) server that provides consent-based access to Telegram accounts and bots for MCP clients. It enables AI agents to work with Telegram via explicitly selected user accounts, connecting through a local web wizard using QR code scanning and optional 2FA.

🛠️ Key Features

  • Self-hosted MCP server
  • Consent-based access to Telegram accounts and optional bots
  • Local web wizard for connection
  • QR code scanning and Telegram 2FA password entry when required
  • Agent-tool oriented (not a Telegram client)
  • Supports chat history search, folder/thread reading, attachment downloads, and update tracking
  • Can create drafts

🚀 Use Cases

  • Enable MCP clients to retrieve Telegram content using selected accounts
  • Support agent workflows that need reading threads, downloading attachments, and creating drafts

⚡ Developer Benefits

  • MCP compatibility via a Model Context Protocol server
  • Explicit account selection for controlled access
  • Web-based connection flow using QR and 2FA when needed

⚠️ Limitations

  • Connection requires QR scanning and may require a Telegram 2FA password

Topics

ai-agentsmcpmodel-context-protocolpythonself-hostedtelegramtelethon