mcp-telegram-poc
If you are the rightful owner of mcp-telegram-poc and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Python-based Model Context Protocol (MCP) client and server that enables LLMs to send notifications via Telegram and receive user responses.
The MCP Integration example with Telegram is a Python-based implementation that allows Language Model Models (LLMs) to send notifications via Telegram and receive user responses. This setup is designed to separate the LLM's reasoning from the execution of external actions, providing a modular and flexible approach to integrating LLMs with external tools. By using the MCP protocol, developers can update or swap out external tools without altering the core LLM model or its prompts, ensuring safer and more controlled execution of actions. The integration requires Python 3.11+, a Telegram bot token, and a Telegram chat ID. The repository includes scripts for standalone running, programmatic usage, and agent integration, making it versatile for different use cases.
Features
- Send text alerts to a Telegram chat with customizable urgency levels
- Check for user replies with configurable timeouts
- Flexible template for integration with MCP-compatible LLM applications
Tools
send_alert
Sends a Telegram alert and waits for a reply.
check_reply
Polls for replies to a specific message.