Skip to content

Menu

Telegram MCP Server logo

Telegram MCP Server

Published · Updated

At a glance

GitHub repository
chigwell/telegram-mcp
Watch out for
It runs as your personal account, so mistakes are sent in your name.

chigwell/telegram-mcp is a community MCP server that connects an assistant to a Telegram user account, not just a bot, using the Telethon library. That distinction matters. With a bot you only see chats the bot is in; with this server the assistant can see and act in your own chats, groups and channels, as you.

The scope is broad, with more than 80 tools. It covers listing and searching chats, reading and searching messages, sending, scheduling, editing, forwarding, pinning and deleting messages, polls and reactions, contacts, media, folders, and admin tasks such as managing members and permissions in groups you run. There are thoughtful touches too. You can teach it aliases for contacts so you can say who you mean in plain words. It can press inline buttons in bot messages, and it can transcribe voice messages with a choice of providers, including a local Whisper model so audio never leaves your machine.

Given that power, the setting to know first is TELEGRAM_EXPOSED_TOOLS=read-only, which exposes only the tools annotated as read-only. Starting there and adding write access later is the sensible order, because a model that can send and delete messages from your personal account can do real social damage with one bad call.

How it connects

Your AI app

An assistant or agent that supports MCP

Telegram MCP Server

Runs as

  • Python (uv / pip)

Gives the agent

  • Chats and groups
  • Messages
  • Contact aliases
  • Voice transcription
  • Read-only mode and multiple accounts

Telegram

Signs in with

  • Token
  • App credentials
Your AI app talks to Telegram MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Chats and groups
List and inspect chats, create groups and channels, join or leave, invite or remove users and manage admins in groups you control.
Messages
Send, schedule, edit, delete, forward, pin, reply, search and mark read, plus polls, reactions and pressing inline buttons.
Contact aliases
set_contact_alias teaches the server what you call someone, and every tool that takes a chat then understands that name.
Voice transcription
transcribe_voice can use Groq, Telegram Premium's own transcription, any OpenAI-compatible endpoint, or local faster-whisper.
Read-only mode and multiple accounts
TELEGRAM_EXPOSED_TOOLS=read-only limits it to read tools, and several accounts can be configured and selected per call.

Setting it up

Get an API ID and API hash for your account from my.telegram.org/apps. Clone the repository, install it with uv, and generate a session string with uv run session_string_generator.py, which can log in by QR code or phone number. Put TELEGRAM_API_ID, TELEGRAM_API_HASH and TELEGRAM_SESSION_STRING in a .env file, and add TELEGRAM_EXPOSED_TOOLS=read-only while you try it out. Then configure your client to run the server with uv, or use the Claude Desktop extension package the README provides. Treat the session string like a password: anyone with it can use your Telegram account.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Summarising long group chats you have fallen behind on
  • Searching your message history for a link or a decision
  • Drafting and scheduling replies that you review before they go out
  • Transcribing voice messages locally and acting on them

Limitations and things to watch

  • It runs as your personal account, so mistakes are sent in your name.
  • The session string grants full account access; leaking it is equivalent to leaking your login.
  • Automating a user account sits uneasily with Telegram's terms for some uses; avoid bulk messaging.
  • With 80+ tools the full set is heavy on context; read-only mode also keeps the list shorter.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…