
Telegram Mcp
io.github.Shreyas-Profile由 GitHub 账号 Shreyas-Profile 发布v0.4.0更新于 Oct 24, 2026
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
概览
托管的 Telegram 桥接服务,让 MCP 智能体读取你发给机器人的消息并通过 Telegram 回复。
- 可以做什么
- 拉取自上次拉取以来的新入站 Telegram 消息,读取一次即消费。由智能体向你的 Telegram 机器人发送文本消息。列出双向最近存储的消息,且不推进读取游标。清除该账号存储的消息历史。help、recent、window、usage、clear 等 Telegram 斜杠命令由平台直接应答,即使没有智能体在轮询。
- 适用场景
- 适合想用手机上的 Telegram 与智能体对话、并在同一聊天中获得回复,而不直接暴露智能体的场景。适用于智能体主动轮询新消息而非接收推送的架构。若只需单向通知则不必使用。
- 运行要求
- 使用 telegram.regiq.in 远程端点,或用 Docker 与 Compose 自托管。需要 Google 账号登录、来自 BotFather 的 Telegram 机器人令牌,以及通过 Authorization Bearer 请求头发送的 MCP API 密钥。自托管还需 Google OAuth 客户端、用于 webhook 的公共 HTTPS 域名,以及 NEXTAUTH_SECRET、GOOGLE_*、PUBLIC_BASE_URL 等环境配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Telegram Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.Shreyas-Profile%2Ftelegram-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"telegram": {
"type": "http",
"url": "https://telegram.regiq.in/api/mcp"
}
}
}README
telegram-mcp
Bidirectional Telegram ⇆ agent bridge. No LLM in our stack.
Your agent (Claude Desktop, Cursor, a custom script) is the brain. Our platform is the pipe: we take messages you send on Telegram, store them, and hand them to your agent when it polls. When your agent has something to say back, it pushes through us to your Telegram.
- Bring your own agent. Any MCP client works.
- No inference in the middle. We don't call an LLM. No vendor lock-in.
- Bidirectional.
get_new_messagespulls inbound,send_telegram_messagepushes outbound. - Platform slash-commands.
/help,/clear,/recent,/window,/usageall work even if your agent is offline.
Hosted at telegram.regiq.in or self-host with the Docker Compose below.
Use it (hosted)
-
Visit https://telegram.regiq.in, sign in with Google.
-
DM @BotFather →
/newbot. Paste the token in your dashboard. -
On the dashboard: Generate MCP API key, copy it.
-
Add to Claude Desktop's
claude_desktop_config.json(or Cursor / any MCP client): -
Send
/startto your bot on Telegram.
Now your agent can call get_new_messages to see what you sent it, and send_telegram_message to reply.
Tools
Slash commands (platform-handled)
Handled by the platform directly — your agent isn't involved. So /help works even when nothing is polling.
Self-host
You'll need:
- Docker + Compose
- A Google OAuth client — Cloud Console. Scopes:
openid,email,profile. Redirect:<PUBLIC_BASE_URL>/api/auth/callback/google - A public HTTPS domain for Telegram webhooks (Cloudflare Tunnel or
ngrok http 3012locally)
No LLM key required. Your agent brings its own model.
Architecture
Per-user webhook URL segment is a random secret so a leaked bot token can't be pointed at someone else's account. Google sign-in is identity + ban anchor only — per-message identity comes from the MCP API key + chatId.
License
MIT. See LICENSE.
来源:README.md,提交 ad391a0
工具
0版本历史
1- v0.4.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分