Labsco
dryeab logo

MCP Telegram

β˜… 245

from dryeab

Control Telegram using LLMs through the Model Context Protocol (MCP).

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

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

🧰 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.

🀝 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