Self-hosted Telegram Bot MCP server for rich text, media and interactive buttons.
MCPpedia last refreshed this data
io.github.cyuanxv/telegram-bot-mcp-server is an MCP server that self-hosted Telegram Bot MCP server for rich text, media and interactive buttons. Its tool list has not been published yet over http, requires no API key, and scores 61/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-cyuanxv-telegram-bot-mcp-server": {
"args": [
"-y",
"@cyuanxv/telegram-bot-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Self-hosted Telegram Bot MCP server for rich text, media and interactive buttons.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@cyuanxv/telegram-bot-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @cyuanxv/telegram-bot-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in communication / writing
Official TypeScript library for the Telnyx API
Open-source SMS gateway. Turn your Android phone into an SMS API: send and receive SMS from your apps over REST and webhooks. Self-hostable, with a free hosted plan.
Send email and newsletters with Mailtea over MCP, plus skills for email and website design.
X/Twitter automation MCP: scrape, post, schedule, analyze, engage. No API key required.
MCP Security Weekly
Get CVE alerts and security updates for io.github.cyuanxv/telegram-bot-mcp-server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
为 AI 助手连接 Telegram Bot,支持富文本、多媒体消息和交互按钮,可自行部署。
telegram-bot-mcp-server 通过 MCP(模型上下文协议)让兼容客户端使用你自己的 Telegram Bot。服务运行在你控制的环境中,Bot 凭据由你配置和保管。
需要 Node.js 24,先设置自己的 MCP_API_KEY 进程环境,再运行:
npx --yes @cyuanxv/telegram-bot-mcp-server@1.0.1 --port 3000
首次启动会编译源码。连接地址为 http://127.0.0.1:3000/api/mcp,使用 Streamable HTTP,并携带 Authorization: Bearer <你的 MCP_API_KEY>。真实发送还需你自己的 Bot token 和目标 chat ID。
按步骤安装 · npm 安装包 · 1.0.1 Release · 官方 MCP Registry 条目
各功能的配置要求见功能说明。本仓库提供后端源码,不包含 Sites 网页入口、Docker 镜像或预装依赖。本项目并非 Telegram 官方产品。
© 2026 cyuanxv · X / Twitter @cyuanxv
npm 安装教程 · 源码与本地安装包说明 · Registry 发布维护说明
以下为源码开发方式;日常安装请优先看上面的 npm 教程。使用 Node.js 24 和随附的 npm。解压后所有后端命令都在 server/ 目录执行,不要在本包根目录执行 npm ci。
cd telegram-bot-mcp-server/server
npm ci --ignore-scripts
cp .env.example .env.local
# 用编辑器填 MCP_API_KEY;有自己的测试 Bot 时再填 token 和 chat ID
npm run dev -- --hostname 127.0.0.1
MCP 地址:http://127.0.0.1:3000/api/mcp。客户端请求需带 Authorization: Bearer <你的 MCP_API_KEY>。云端客户端通常不能访问你的本机地址,需要你自行部署 HTTPS 后端。
没有真实 Bot 也能启动并运行合成测试,但不能据此声称已向 Telegram 发出消息。不要把 Bot token、MCP 密钥或验证码贴入聊天、截图或 Git。
在 server/:
npm test
npm run test:review
npm run typecheck
npm run build:delivery
npm run build
npm run test:protocol
低内存设备可用 node --test-concurrency=2 --experimental-test-module-mocks --import ./tests/register-typescript.mjs --test tests/*.test.mjs 代替 npm test。协议检查只连接本机,端口3130须空闲;运行时不要加载真实 Bot 配置。
已有本地安装验收不等于云端部署、真实 Bot 或客户端效果验收。
MCP 密钥只给可信操作者:基础接口包含发送、编辑和管理工具,可选择原始 chat ID,配置别名不是完整的收件人白名单。不要把它作为无需认证的公开消息服务。
已知依赖风险见 已知问题。源码沿用 MIT 及原版权声明,第三方条款见 第三方声明。自有代码版权由cyuanxv持有,已确认采用MIT;不覆盖第三方依赖的原许可。反馈前请按 安全说明 删除凭据。
© 2026 cyuanxv · X / Twitter @cyuanxv
自有代码采用 MIT 许可证,第三方依赖保留各自的版权和许可。