This repository provides a Telegram MCP server, enabling interaction with Telegram chats through MCP-compatible hosts like Claude for Desktop, using tools for retrieving chats, messages, and sending messages.
A Telegram MCP (Model Context Protocol) server built using Python, Telethon, and MCP Python SDK. This server facilitates interaction with Telegram chats through MCP-compatible hosts like Claude for Desktop.
get_chats
: Retrieves a paginated list of Telegram chats.get_messages
: Retrieves paginated messages from a specified chat.send_message
: Sends a message to a specified chat..env
file with Telegram API credentials from https://my.telegram.org/apps.uv
, activate it, and install dependencies: mcp[cli]
, telethon
, python-dotenv
, and nest_asyncio
.main.py
to authenticate with Telegram.Configure Claude Desktop by editing claude_desktop_config.json
and adding the MCP server configuration, ensuring the correct absolute path to the project directory is specified.
The Telegram tools will be accessible within Claude for Desktop or any MCP-compatible client.
Licensed under the Apache 2.0 License.
chigwell/telegram-mcp
March 20, 2025
March 28, 2025
Python