United Kingdomchigwell/telegram-mcp
Telegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
📡 Telegram MCP Server
Bridge a Telegram session to MCP-compatible AI clients.
A Telethon-based Model Context Protocol server that lets clients like Claude, Cursor, and other MCP hosts work with a Telegram account. It exposes account, chat, message, contact, media, folder, and admin operations through 80+ tools, returning sanitized, structured JSON where practical.
✨ Highlights
- 80+ MCP tools: Covers accounts, chats/groups, messages, contacts, media, profile/privacy, folders, and drafts.
- Telethon-backed access: Uses Telethon to interact with the Telegram API through your own API credentials and session.
- Multi-account support: List configured accounts and route tool calls by account label.
- Login options: Generate a session string via interactive, QR (
--qr), or phone + code (--phone) login withsession_string_generator.py. - Read-only mode: Set
TELEGRAM_EXPOSED_TOOLS=read-onlyto expose only tools annotated withreadOnlyHint=True. This is only a tool-surface restriction, not a Telegram permission sandbox. - Extra controls: Includes proxy support, device identity options, file path security notes, and Docker support.
- Safe install warning: Do not use
uvx telegram-mcporpip install telegram-mcp— use a cloned checkout of this repo.
💡 Why it matters
By putting Telegram actions under MCP, clients can inspect chat history, manage groups/channels, send or edit messages, handle media/contacts, and work with folders/drafts from one interface. Tool results with user-controlled content are sanitized where practical, and the exposed tool set can be limited to read-only without changing the underlying Telegram session authority.
#MCP #Telegram #Telethon #Python #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Reverse engineer anything with agents, from app behavior down to native binaries.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
Franz is a free messaging app for services like WhatsApp, Slack, Messenger and many more.
A dead simple Go library for sending notifications to various messaging services.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Free domain registration and practical DNS learning resources for everyone.