Mcp Telegram Bot

io.github.daedalus由 GitHub 账号 daedalus 发布v0.1.0更新于 Oct 24, 2026

MCP server that exposes a Telegram bot

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

一个本地 MCP 服务器,把助手连接到 Telegram 机器人,使其能发送消息、读取最近更新并查看机器人状态。

可以做什么
通过 send_message 工具向 Telegram 聊天发送消息。用 get_me 获取机器人信息,用 get_updates 获取最近的更新。读取 bot://status 资源以查看机器人状态。
适用场景
适合让助手向 Telegram 聊天发送消息或查看机器人最近收到的内容,例如通知或简单的聊天工作流。
运行要求
以 Python 包形式通过 pip 安装在本地运行。需要通过 BotFather 创建 Telegram 机器人,并在 TELEGRAM_BOT_TOKEN 环境变量中提供其机器人令牌。需要访问 Telegram 的网络连接。
安装前请注意
需要 Telegram 机器人令牌,该凭据可控制机器人,请避免写入日志或共享配置。send_message 工具会向聊天发送消息,在真实对话中启用前应确认助手发送的内容。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-telegram-bot

MCP server that exposes a Telegram bot

[PyPI] [Python] [Coverage] [Ruff]

Install

bash
pip install mcp-telegram-bot

Setup

  1. Create a Telegram bot by talking to @BotFather on Telegram
  2. Get your bot token
  3. Set the TELEGRAM_BOT_TOKEN environment variable

Usage

bash
export TELELEGRAM_BOT_TOKEN="your-bot-token-here"mcp-telegram-bot

MCP Tools

  • send_message: Send a message to a Telegram chat
  • get_me: Get bot information
  • get_updates: Get recent updates from Telegram

MCP Resources

  • bot://status: Get bot status

mcp-name: io.github.daedalus/mcp-telegram-bot

Development

bash
git clone https://github.com/daedalus/mcp-telegram-bot.gitcd mcp-telegram-botpip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

License

MIT

来源:README.md,提交 2dab562

工具

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

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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