Telegram Notify Mcp

io.github.ParthJadhav由 GitHub 账号 ParthJadhav 发布v1.0.1更新于 Oct 24, 2026

Send Telegram notifications from AI agents — text, photos, and documents.

已验证STDIO仅桌面沟通与协作

概览

AI 生成的概览

让助手以文本消息、图片或文件的形式向你发送 Telegram 通知。

可以做什么
一个小型 MCP 服务器,提供三个工具:send_message 发送文本更新,send_photo 发送截图或图表等图片,send_document 发送报告、日志或构建产物等文件。首次调用时会把你的 Telegram 用户名解析为聊天 ID,并在进程存活期间缓存。它不涉及聊天或群组管理。
适用场景
适合启动长时间运行的助手任务后,把进度或完成提醒推送到 Telegram,而不必盯着终端。也适合把生成的图片或文件发送到手机上。
运行要求
通过 stdio 在本地运行,通常使用 npx,因此需要 Node.js。需要在 TELEGRAM_BOT_TOKEN 中提供来自 BotFather 的机器人令牌,并在 TELEGRAM_USERNAME 中填写你的 Telegram 用户名。必须先向机器人发送 /start,它才能找到你的聊天 ID。需要访问 Telegram Bot API 的网络连接。
安装前请注意
TELEGRAM_BOT_TOKEN 中的机器人令牌是可控制该机器人的凭据,不要放入共享配置。消息、图片和文件都会发送到 Telegram 的服务器,助手转发的内容会离开你的机器。该服务器只负责发送,不读取或管理聊天。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Telegram Notify Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[bloom-banner-01-light-tags-1500x500]

Telegram Notify MCP

[npm version] [License: MIT]

A dead-simple MCP server with one job: send AI agent progress back to you on Telegram.

That's it. No chat management, no group administration, no inline queries. Just notifications — as text, images, or files.

You kick off an agent, walk away, and get a Telegram message when it's done (or while it's working). Nothing more, nothing less.

Quick Start

1. Create a Telegram Bot

  1. Message @BotFather on Telegram
  2. Send /newbot and follow the prompts
  3. Copy the bot token

2. Start a chat with your bot

Find your bot on Telegram and send /start. This is required so the bot can discover your chat ID.

3. Add to your MCP client

Claude Code
bash
claude mcp add telegram -e TELEGRAM_BOT_TOKEN=your-token -e TELEGRAM_USERNAME=your-username -- npx @parthj/telegram-notify-mcp
Claude Desktop / Cursor / Windsurf

Add to your MCP config file:

json
{  "mcpServers": {    "telegram": {      "command": "npx",      "args": ["-y", "@parthj/telegram-notify-mcp"],      "env": {        "TELEGRAM_BOT_TOKEN": "your-bot-token",        "TELEGRAM_USERNAME": "your-telegram-username"      }    }  }}

Configuration

Environment VariableRequiredDescription
TELEGRAM_BOT_TOKENYesBot token from @BotFather
TELEGRAM_USERNAMEYesYour Telegram username (without the @)

Tools

Three tools. That's the entire surface area.

send_message

Send a text update to the user.

ParameterTypeRequiredDescription
textstringYesThe message text
parse_modestringNoHTML, Markdown, or MarkdownV2

send_photo

Send an image — a screenshot, a chart, a generated visual.

ParameterTypeRequiredDescription
photostringYesURL or absolute file path
captionstringNoPhoto caption
parse_modestringNoCaption formatting mode

send_document

Send a file — a report, a log, a build artifact.

ParameterTypeRequiredDescription
documentstringYesURL or absolute file path
captionstringNoDocument caption
parse_modestringNoCaption formatting mode

How It Works

  • On the first tool call, the server resolves your username to a chat ID via the Telegram Bot API's getUpdates
  • Sending /start to the bot is required — Telegram bots can only message users who have initiated a conversation
  • The chat ID is cached for the lifetime of the process

Development

bash
git clone https://github.com/ParthJadhav/telegram-notify-mcp.gitcd telegram-notify-mcpnpm installnpm run build

License

MIT

来源:README.md,提交 9eecb61

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分