Token导航 LogoToken导航TokenDH.com
Telegram Bot MCP Community logo
AI代理未说明官方级别未说明来源级核验

Telegram Bot MCP Community

MCP Server

Telegram Bot MCP Server是一个基于Model Context Protocol(MCP)的服务,提供27种工具用于发送消息、管理聊天、处理Webhook等Telegram Bot API功能,适用于Claude Desktop、Cursor、VS Code等MCP客户端。

工具数

27

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptClaudeAI代理Claude DesktopClaudeCursorVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

node2flow-th

提供方

node2flow-th

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

电报机器人MCP服务器

](https://smithery.ai/server/node2flow/telegram-bot) ](https://www.npmjs.com/package/@node2flow/telegram-bot-mcp) ![License: MIT](https://opensource.org/licenses/MIT)

用于Telegram Bot API的MCP(模型上下文协议)服务器。通过27个工具发送消息、管理聊天、处理Webhook等。

适用于Claude Desktop、Cursor、VS Code和任何MCP客户端。

______________________________________________________________________

快速开始

克劳德桌面

增添 claude_desktop_config.json:

{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": ["-y", "@node2flow/telegram-bot-mcp"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your-bot-token"
      }
    }
  }
}

光标/VS代码

添加到MCP设置:

{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": ["-y", "@node2flow/telegram-bot-mcp"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your-bot-token"
      }
    }
  }
}

HTTP模式(流式HTTP)

对于远程部署或共享访问:

TELEGRAM_BOT_TOKEN=your_token npx @node2flow/telegram-bot-mcp --http

服务器在端口3000上启动(可通过配置 PORT env变量)。MCP端点: http://localhost:3000/mcp

______________________________________________________________________

配置

环境变量必填说明
TELEGRAM_BOT_TOKEN来自的Telegram Bot令牌 @植物学家
PORTHTTP服务器的端口(默认值: 3000,仅用于 --http)

______________________________________________________________________

所有工具(27个工具)

机器人信息(2个工具)

工具说明
tg_get_me获取机器人信息
tg_set_my_commands设置机器人命令菜单

发送消息(8个工具)

工具说明
tg_send_message使用Markdown/HTML格式发送文本
tg_send_photo发送照片(URL或file_id)
tg_send_document发送文档/文件(最大50MB)
tg_send_video发送视频(MPEG4,最大50MB)
tg_send_audio发送音频(MP3/M4A,最大50MB)
tg_send_location发送地理位置
tg_send_poll发送投票(常规或测验)
tg_send_contact发送电话联系卡

编辑/删除(3个工具)

工具说明
tg_edit_message_text编辑消息文本
tg_edit_message_caption编辑媒体标题
tg_delete_message删除消息(48小时限制)

聊天管理(5个工具)

工具说明
tg_get_chat获取聊天详细信息
tg_get_chat_member_count获取会员数量
tg_get_chat_member获取会员信息
tg_ban_chat_member禁止用户聊天
tg_unban_chat_member取消阻止用户

Webhooks(3个工具)

工具说明
tg_set_webhook设置webhook URL
tg_delete_webhook删除webhook
tg_get_webhook_info获取webhook状态

回调和文件(3个工具)

工具说明
tg_answer_callback_query按下在线应答按钮
tg_get_file获取文件下载URL
tg_get_user_profile_photos获取用户个人资料照片

固定链接和邀请链接(3个工具)

工具说明
tg_pin_chat_message固定消息
tg_unpin_chat_message不愉快的消息
tg_create_chat_invite_link创建邀请链接

______________________________________________________________________

需求

  • Node.js 18+
  • Telegram Bot令牌

如何创建Telegram Bot

  1. 打开 @植物学家 在Telegram上
  2. 发送 /newbot 并按照提示进行操作
  3. 复制令牌并将其用作 TELEGRAM_BOT_TOKEN

______________________________________________________________________

面向开发者

git clone https://github.com/node2flow-th/telegram-bot-mcp-community.git
cd telegram-bot-mcp-community
npm install
npm run build

# Run in stdio mode
TELEGRAM_BOT_TOKEN=your_token npm start

# Run in dev mode (hot reload)
TELEGRAM_BOT_TOKEN=your_token npm run dev

# Run in HTTP mode
TELEGRAM_BOT_TOKEN=your_token npm start -- --http

______________________________________________________________________

许可证

MIT许可证-请参阅 许可证

版权所有(c)2026

链接

-

目录标签

目录标签

TypeScriptClaudeAI代理Telegram机器人混合部署消息发送聊天管理Webhook处理MCP协议

支持客户端

Claude DesktopClaudeCursorVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

27

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP