Telegram MCP server for sending alerts and receiving replies

Telegram MCP server for sending alerts and receiving replies

mcp-telegram-poc•byarananet

A Python MCP server that enables LLMs to send text alerts to a Telegram chat and check for user replies.

License: Not specified•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Sends text alerts to a Telegram chat with a message, project name, and optional urgency level, then waits for a reply.
  • •Polls for replies to a specific Telegram message with a configurable timeout.

BEST FOR

  • •Sending notifications to a Telegram chat from MCP-compatible LLM applications.
  • •Checking whether a Telegram user has replied to an alert within a set timeout.

ABOUT MCP-TELEGRAM-POC

Telegram MCP server for sending alerts and receiving replies is cataloged as an MCP server attributed to arananet. A Python MCP server that enables LLMs to send text alerts to a Telegram chat and check for user replies. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Telegram MCP server for sending alerts and receiving replies are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the MCP server expose?

It exposes send_alert, which sends a Telegram alert and waits for a reply, and check_reply, which polls for replies to a specific message.

What urgency levels can alerts use?

Alerts accept low, medium, or high urgency, with medium as the default.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 54e41c13e7b5 · 采集于 2026-11-13 11:22:07 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Integration example with Telegram

A Python-based Model Context Protocol (MCP) client and server that enables LLMs to send notifications via Telegram and receive user responses.

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

MCP vs Function Calls or Agent tools

MCP Protocol (Model Context Protocol):

  • Separates the LLM’s reasoning (the “context”) from the execution of external actions. For example, the LLM decides what action to take and the MCP server handles how to execute that action.
  • This decoupling means you can update or swap out external tools without changing the core LLM model or its prompts.
  • It also allows for safer and more controlled execution of actions.

LLM Function Call or Agent:

  • Direct function calls or agent-based methods often mix decision-making and execution logic, which can make the system less modular.
  • Changes in how an action is performed may require reengineering the agent or modifying the LLM’s prompts, making maintenance harder.

Prerequisites

  • Python 3.11+
  • A Telegram bot token (from @BotFather)
  • Your Telegram chat ID

Installation

  1. Clone the repository:
    git git@github.com:arananet/mcp-telegram-poc.git
    cd mcp-telegram-poc
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Create the virtual environment:
    python3 -m venv .venv
    
  4. Copy .env.example to .env and fill in your Telegram credentials:
    cp .env.example .env
    nano .env
    

Configuration

Edit .env with:

  • TELEGRAM_BOT_TOKEN=your_bot_token_here
  • TELEGRAM_CHAT_ID=your_chat_id_here
  • OPENAI_API_KEY=your_openai_apikey

Getting a Telegram Bot Token

  1. Chat with @BotFather on Telegram.
  2. Send /newbot and provide a name (e.g. mcp_example) and then provide an user name (e.g. mcp_example_bot) after this telegram botfather will reply with the token.
  3. Copy the token provided.

Finding Your Chat ID

  1. Send a message to your bot (go to the created bot and send some example, e.g. hi).
  2. Visit https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates.
  3. Find the chat object's id field. You will see something like this (e.g. "chat":{"id":107184517,"first_name":"Edu","last_name":"Arana"...) the Chat ID is 107184517.

Usage

Running Standalone

python3 src/mcp_handler.py

Programmatic Usage

For testing sending and receiving an alert:

python3 examples/test_client.py

Agent integration

For testing the integration of the MCP using an agent with autogen 0.4 framework

python3 examples/test_autogen_agent.py

Testing Locally

Use the test script (Linux/macOS):

chmod +x test_server.sh
./test_server.sh

Available Tools

send_alert

  • Parameters:
    • message (str, required): Message to send (Markdown supported).
    • project (str, required): Project name.
    • urgency (str, optional): "low", "medium", "high" (default: "medium").
  • Description: Sends a Telegram alert and waits for a reply.

check_reply

  • Parameters:
    • message_id (int, required): Message ID to check.
    • timeout_seconds (int, optional): Wait time (default: 60).
  • Description: Polls for replies to a specific message.

Development

  • Install dependencies: pip install -r requirements.txt
  • Run server: python3 src/mcp_handler.py
  • Test client: python3 examples/test_client.py
  • Test Agent: python3 examples/test_autogen_agent.py

Examples

The examples folder contains:

  • test_server.py: Runs the server standalone.

  • test_client.py: Demonstrates client interaction.

  • test_autogen_agent.py: Demostrates the MCP integration between an AutoGen Agent

  • In the images folder you can find some screenshots of the testings.

Developer

  • Eduardo Arana

Availability

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Telegram MCP server for sending alerts and receiving replies from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-telegram-poc)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication