mcp电报机器人
暴露Telegram机器人的MCP服务器
   
安装
pip install mcp-telegram-bot设置
- 通过在Telegram上与@BotFather对话创建Telegram机器人
- 获取您的机器人令牌
- 设置
TELEGRAM_BOT_TOKEN环境变量
用法
export TELELEGRAM_BOT_TOKEN="your-bot-token-here"
mcp-telegram-botMCP工具
- 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/许可证
麻省理工学院
