mcp-telegram
by dryeab·★ 243·Score 46
MCP server enabling LLMs to interact with Telegram through messaging, search, and media operations.
Overview
Built with Telethon, this MCP server provides comprehensive Telegram integration through the Model Context Protocol. It enables AI agents to perform various Telegram operations including sending, editing and deleting messages, searching chats and messages, managing drafts, and downloading media. The server exposes well-documented tools that can be used by MCP-compatible clients like Claude Desktop and Cursor.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this when you need to integrate Telegram capabilities into AI workflows or create AI-powered Telegram bots with comprehensive message handling features.
When NOT to choose this
Avoid if you need to handle sensitive communications where privacy is paramount, as Telegram's MTProto protocol has had security scrutiny in the past.
Tools this server exposes
9 tools extracted from the READMEsend_messageSend text messages or files to any user, group, or channel
edit_messageModify content of previously sent messages
delete_messageRemove one or multiple messages
get_messagesRetrieve message history with advanced filtering options
search_dialogsFind users, groups, and channels by name or username
message_from_linkAccess specific messages using Telegram links
get_draftView current message draft for any chat
set_draftCreate or clear message drafts
media_downloadDownload photos, videos, and documents from messages
Comparable tools
Installation
Installation
- Install prerequisites:
- Python 3.10 or higher - uv (follow [official uv guide](https://github.com/astral-sh/uv#installation))
- Install the CLI tool:
uv tool install mcp-telegram- Authenticate with your Telegram account:
mcp-telegram login- Configure your MCP client (e.g., Claude Desktop) with:
{
"mcpServers": {
"mcp-telegram": {
"command": "mcp-telegram",
"args": ["start"],
"env": {
"API_ID": "<your_api_id>",
"API_HASH": "<your_api_hash>"
}
}
}
}FAQ
- Where do I get API ID and API hash for Telegram?
- You can obtain API ID and API hash by creating an application at https://my.telegram.org/apps
- Can I use multiple accounts with this MCP server?
- Yes, you can manage multiple accounts by using different session files. Use the `--session` parameter or clear existing sessions with `mcp-telegram clear-session`
- What privacy concerns should I be aware of?
- Telegram's ToS prohibit automated bots and mass messaging. Keep your API credentials private and avoid activities that might get your account restricted
Compare mcp-telegram with
Last updated · Auto-generated from public README + GitHub signals.