chigwell/telegram-mcp

Telegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.

What it solves

AI assistants like Claude and Cursor have no built-in way to interact with Telegram. This project is a server that bridges the two: it exposes Telegram account operations (chats, messages, contacts, media, folders, admin tasks) as standard MCP tools, so a connected AI can read and act on your Telegram conversations — checking unread messages, drafting replies, searching chat history, sending messages, and more — without you copy-pasting between apps.

How it works

It runs as an MCP server that connects to your Telegram account using the Telethon library. On the AI side, it speaks the Model Context Protocol, the standard interface Claude, Cursor, and other MCP-compatible clients use to discover and call tools. On the Telegram side, it logs in as your account and exposes 80+ tools grouped by area: accounts, chats and groups, messages, contacts, media, profile/privacy, folders and drafts, and events. Each tool call routes to the right Telegram API request and results come back as structured JSON. Safety features include a chat allowlist, file-path checks, and per-account routing for multi-account setups.

Who it's for

People who use MCP-compatible AI assistants (Claude, Cursor, and others) and want those assistants to work directly with their Telegram account — for example, to summarize unread messages, draft replies for human approval, triage urgent requests, or search chat history. It also suits developers building chat bridges or integrations that need to follow or react to Telegram events.

Highlights

  • 80+ MCP tools covering accounts, chats/groups, messages, contacts, media, profile/privacy, folders/drafts, and events
  • Rich message formatting (Markdown/HTML with tables, headings, formulas, collapsible sections) requiring Telegram Premium, with graceful fallback and structured error if Premium is missing
  • Voice-message transcription with four engines: Groq's hosted Whisper, Telegram's native Premium transcription, any OpenAI-compatible endpoint, or a fully local faster-whisper model
  • Contact aliases: teach the server the names you use for people, and it resolves them in any tool call — with strict confirmation before sending to avoid messaging the wrong person
  • Phone lookups (resolve_phone) with configurable daily caps and inter-lookup intervals to respect Telegram's quotas
  • Sending features include typing indicators, scheduled messages, polls, reactions, inline buttons, custom emoji reuse, and exporting chat history or unread messages to structured JSON
  • Multi-account support, proxy support, Docker images, and a skills documentation with ready-to-use workflows like summarizing unread messages and triaging action items

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch