telegram-mcp
Provides access to Telegram in two modes: a personal bot for exchanging files and notes with the owner and sending messages/files, and read-only account access for listing chats, reading and searching messages, and downloading files without marking them as read.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegram-mcpwhat was posted in my study group chat this week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
telegram-mcp
A small, self-hosted MCP server that gives Claude (or any MCP client) access to Telegram in two safe modes:
Mode | What it does | Tools |
Personal bot | Exchange files and notes with your own bot. The bot talks only to its owner; messages from anyone else are ignored. |
|
Your account, read-only | Read and search your chats via Telethon. There are no send / edit / delete tools. Reading does not mark messages as read. |
|
Both modes are optional: configure one or both.
Use cases
Forward photos of a lab manual to the bot → "take the photos from the bot and write the report".
"What was posted in my study group chat this week?"
"Send the finished report to my Telegram."
Related MCP server: telegram-briefing-mcp
Install
Requires Python 3.10+.
git clone https://github.com/Spleps/telegram-mcp.git
cd telegram-mcp
pip install -r requirements.txtConfigure
python setup.pyBot: create one with @BotFather (
/newbot), paste the token, then send/startto your bot. That chat becomes the only owner.Account: get
api_id/api_hashat my.telegram.org → API development tools. Log in by scanning a QR code (Telegram → Settings → Devices → Link Desktop Device). If you use a cloud password (2FA), a small dialog asks for it.
Secrets are stored next to the script in config.json and account.session. On Windows the setup restricts both files to the current user. They are listed in .gitignore: never share them. The session file gives full access to your account.
Register in Claude Code
claude mcp add --scope user telegram -- python /path/to/telegram-mcp/server.pyStart a new Claude session and the bot_* / tg_* tools appear. Downloaded files go to ~/Downloads/Telegram MCP.
Revoke access
Account: Telegram → Settings → Devices → terminate the session.
Bot:
/revokein @BotFather, then runsetup.pyagain.
Bot commands
While the MCP server is running (i.e. a Claude session is open), the bot long-polls in the background and answers instantly:
/help: what the bot can do/status: how many messages are waiting for Claude
When no session is open, messages are not lost: Telegram keeps undelivered updates for 24 hours and the bot picks them up on the next start.
Notes
Bot API limits: download ≤ 20 MB, upload ≤ 50 MB.
Setup prompts are in Russian.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- UxenOAuthcom.rrrfirstchat
Your Telegram, WhatsApp, Instagram, mail and calendar in Claude or ChatGPT. Never sends messages.
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseAqualityBmaintenanceRead-only Telegram access for Claude and other MCP hosts. Provides tools to list chats, read recent messages, and download media from your own Telegram account without needing an api_id/api_hash.568 npmMIT
- AlicenseNot gradedqualityDmaintenanceA read-only Telegram MCP server that retrieves messages from your DMs, groups, and channels, enabling Claude to generate executive briefings from Telegram conversations.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to read, search, and send messages through your personal Telegram account via MCP tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with a personal Telegram account via MCP, offering tools for reading and searching chats, summarizing unread messages, sending and editing messages, handling files and voice transcripts, and managing groups and channels, with read-only mode by default.Apache 2.0