Telegram机器人服务

一个提供Telegram机器人功能的服务器,支持发送消息、获取机器人信息和更新等功能。

  • by daedalus
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 daedalus/mcp-telegram-bot

使用说明

mcp电报机器人

暴露Telegram机器人的MCP服务器

安装

pip install mcp-telegram-bot

设置

  1. 通过在Telegram上与@BotFather对话创建Telegram机器人
  2. 获取您的机器人令牌
  3. 设置 TELEGRAM_BOT_TOKEN 环境变量

用法

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

MCP工具

  • send_message:向Telegram聊天发送消息
  • get_me:获取机器人信息
  • 获取更新:从Telegram获取最新更新

MCP资源

  • bot://status:获取机器人状态

mcp名称:io.github.daedalus/mcp-telegram-bot

发展

git clone https://github.com/daedalus/mcp-telegram-bot.git
cd mcp-telegram-bot
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

许可证

麻省理工学院