Telegram (dryeab)

Messaging and email

MCP Server for Telegram.

Your AI app calls the Telegram (dryeab) MCP server, which does the messaging and email work and sends the result back to the chat.

About Telegram (dryeab)

Telegram (dryeab) is a community MCP server from dryeab, filed in our directory under messaging and email. MCP Server for Telegram.

At a glance

Publisher
dryeab (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
255

How to set up Telegram (dryeab)

  1. Follow the install steps in the Telegram (dryeab) README; it is written in Python, so have that toolchain ready.
  2. Check the Telegram (dryeab) README for keys or settings; the registry lists none that Telegram (dryeab) requires.
  3. Add Telegram (dryeab) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Telegram (dryeab) tools to confirm the connection.
  5. Run one read-only task with Telegram (dryeab) first, and keep your app asking before each tool call until the results look right.

Telegram (dryeab) compared with similar servers

  • Mcp2py by MaximeRivest has fewer GitHub stars than Telegram (dryeab) (254 against 255); both are community servers, and both run locally.
  • Agenticmail by agenticmail has more GitHub stars than Telegram (dryeab) (262 against 255); both are community servers, and both run locally.
  • Discordmcp by v-3 has fewer GitHub stars than Telegram (dryeab) (248 against 255); both are community servers, and both run locally.

Before you connect Telegram (dryeab)

  • Give Telegram (dryeab) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Telegram (dryeab) tool call until you trust what it does with them.
  • Treat text that Telegram (dryeab) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Telegram (dryeab) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Telegram (dryeab)

How marketing and sales teams put Telegram (dryeab) to work, by company size. Pick the size closest to yours and start Telegram (dryeab) on one use case.

Small business

  • A small team can have Telegram (dryeab) summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Telegram (dryeab) and send them only after a read, keeping the personal tone customers expect.
  • Telegram (dryeab) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Telegram (dryeab) to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Telegram (dryeab) so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start Telegram (dryeab) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Telegram (dryeab) with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Telegram (dryeab) to find what employees ask most across channels and answer it once, in the right place.
  • Telegram (dryeab) is a community server, so have security review the code and pin a version before Telegram (dryeab) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Telegram (dryeab) README

From dryeab/mcp-telegram on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Enable LLMs to control your Telegram

Connect Large Language Models to Telegram via the Model Context Protocol (MCP).

Built with Telethon, this server allows AI agents to interact with Telegram, enabling features like sending/editing/deleting messages, searching chats, managing drafts, downloading media, and more using the MTProto.

Table of Contents
  • 🚀 Getting Started
    • Prerequisites
    • Installation
  • ⚙️ Usage
    • Login
    • Connect to the MCP server
  • 🧰 Available Tools
    • 📨 Messaging Tools
    • 🔍 Search & Navigation
    • 📝 Draft Management
    • 📂 Media Handling
  • 🛠️ Troubleshooting
  • 🤝 Contributing
  • 📝 License

🚀 Getting Started

Prerequisites

Installation

Install the mcp-telegram CLI tool:

uv tool install mcp-telegram

⚙️ Usage

[!IMPORTANT] Please ensure you have read and understood Telegram's ToS before using this tool. Misuse of this tool may result in account restrictions.

The mcp-telegram command-line tool is your entry point.

mcp-telegram --help # See all commands

Login

First, authenticate with your Telegram account:

mcp-telegram login

This interactive command will prompt you for:

  • API ID & API Hash: Obtain these from my.telegram.org/apps.
  • Phone Number: Your Telegram-registered phone number (international format, e.g., +1234567890).
  • Verification Code: Sent to your Telegram account upon first login.
  • 2FA Password: If you have Two-Factor Authentication enabled.

Your credentials are securely stored in the session file for future use.

[!WARNING] Keep your API credentials private and never share them publicly

[!NOTE] Use mcp-telegram logout to logout from current session or mcp-telegram clear-session to remove all stored session data.

Connect to the MCP server

To use MCP Telegram with MCP clients like Claude Desktop or Cursor, you'll need to configure the MCP server. The configuration process varies by client and operating system.

For detailed setup instructions, please refer to:

The configuration file should contain:

{
  "mcpServers": {
    "mcp-telegram": {
      "command": "mcp-telegram" /* Use full path if client can't find the command (e.g. "/usr/local/bin/mcp-telegram"). See IMPORTANT section below for full path instructions. */,
      "args": ["start"],
      "env": {
        "API_ID": "<your_api_id>",
        "API_HASH": "<your_api_hash>"
      }
    }
  }
}

[!Note] Configuration paths vary by OS and client. For example:

  • macOS: ~/Library/Application Support/Claude/ or ~/.cursor/
  • Windows: %APPDATA%\Claude\ or %APPDATA%\Cursor\

[!IMPORTANT] If your client cannot execute mcp-telegram despite it being accessible in the terminal, try using the full path to the executable. You can find this by running which mcp-telegram (macOS/Linux) or where mcp-telegram (Windows) in your terminal. Replace the command value in the configuration with the full path.

After saving the configuration file, restart your application.

🧰 Available Tools

Here's a comprehensive list of tools you can use to interact with Telegram through MCP:

📨 Messaging Tools

Tool Description
send_message ✉️ Send text messages or files to any user, group, or channel
edit_message ✏️ Modify content of previously sent messages
delete_message 🗑️ Remove one or multiple messages
get_messages 📜 Retrieve message history with advanced filtering options

🔍 Search & Navigation

Tool Description
search_dialogs 🔎 Find users, groups, and channels by name or username
message_from_link 🔗 Access specific messages using Telegram links

📝 Draft Management

Tool Description
get_draft 📋 View current message draft for any chat
set_draft ✍️ Create or clear message drafts

📂 Media Handling

Tool Description
media_download 📸 Download photos, videos, and documents from messages

[!Note] For detailed parameter information and example use cases, run mcp-telegram tools in your terminal.

🛠️ Troubleshooting

Database Locked Errors

Running multiple mcp-telegram instances using the same session file can cause database is locked errors due to Telethon's SQLite session storage. Ensure only one instance uses a session file at a time.

Force-Stopping Existing Processes

If you need to stop potentially stuck processes:

  • macOS / Linux: pkill -f "mcp-telegram"
  • Windows: taskkill /F /IM mcp-telegram.exe /T (Check Task Manager for the exact process name)

🤝 Contributing

We welcome contributions! If you'd like to help improve MCP Telegram, please feel free to submit issues, feature requests, or pull requests. Your feedback and contributions help make this project better for everyone.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

Made with ❤️ by Yeabsira Driba

Questions about Telegram (dryeab)

What is the Telegram (dryeab) MCP server?

MCP Server for Telegram. Telegram (dryeab) is maintained by dryeab on GitHub at dryeab/mcp-telegram, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Telegram (dryeab) MCP server?

Telegram (dryeab) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (dryeab/mcp-telegram). Like most servers, Telegram (dryeab) ends with a command or URL you paste into your AI app's MCP config.

Does Telegram (dryeab) need an API key?

The registry lists no required keys for Telegram (dryeab). Check the Telegram (dryeab) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Telegram (dryeab) an official MCP server?

No. Telegram (dryeab) is a community server maintained by dryeab. Community servers can be excellent; read the code and the open issues before you give Telegram (dryeab) access to company data.

What license is Telegram (dryeab) under?

Telegram (dryeab) is released under the MIT license, according to its GitHub repository. The license covers the code of Telegram (dryeab); the service it connects to has its own terms.