mcp-telegram

mcp-telegram

5

The Telegram MCP Server allows integration of Telegram functionalities into Claude, enabling it to read and send messages. Users can get a list of chats, mark messages as read, and control conversation contexts. Key features include seamless Telegram account access and Claude Desktop integration.

Telegram MCP Server

This project is a basic MCP server designed to enable Claude to access and manage your Telegram account. It provides functionalities such as:

  • Getting a list of Telegram chats
  • Sending messages to chats
  • Retrieving and marking messages as read
  • Access to conversation context by examining past messages and a convostyle.txt file for appropriate reply crafting

Setup Instructions:

  1. Obtain Telegram API Credentials: Log in to my.telegram.org to create or use an application and retrieve API ID and API Hash.
  2. Prepare Python Environment: Clone the repository, set up a virtual environment, and install necessary packages.
  3. Configure Environment: Set TELEGRAM_PHONE, TELEGRAM_API_ID, and TELEGRAM_API_HASH variables in your system.
  4. Authentication: Run authentication scripts to establish a session with Telegram.
  5. Claude Desktop Integration: Add the server details to the Claude Desktop configuration.
  6. Optional Customization: Modify convostyle.txt to affect chatbot responses.

Restart Claude Desktop to utilize these features, allowing Claude to interact with your Telegram service.