watush-mcp
A send-only Telegram MCP server enabling agents to message you or named contacts via a Telegram bot, with audit copies to the owner.
README
watush-mcp
A robust, send-only Telegram MCP server. Any agent — Claude Code, Claude Desktop, or Codex — can use it to message you or named people (partner, family, friends) through your own Telegram bot.
So you can say:
"message me on telegram once the build is done" "message my partner in 30 minutes: running late" "ping the family: dinner at 7"
…and it routes to the right person. You (the owner) always get an audit copy of anything sent to someone else.
It's send-only by design: it can deliver messages, but it cannot read your chats.
How it works
- Two tools are exposed to the agent:
send_telegram_message({ text, to? })— send a message.tois a person's name or a tag (case-insensitive). Omitto(or use"me") to message yourself. A tag shared by several people fans out to all of them.list_recipients()— lets the agent discover who/what tags it can address (names + tags only; chat IDs are never exposed).
- Timing is the agent's job. "in 30 minutes" is handled by the agent that calls the tool; the tool itself always sends now.
- No background process. Stdio MCP servers are spawned on demand by each client, so there's nothing to "start on login" — installing simply registers the server with your agents so it's available whenever they run.
Setup
1. Install (build + wire all agents)
cd ~/Code/watush-mcp
./install.sh
This installs dependencies, compiles the TypeScript, creates config.yaml (if
missing), and registers the server with Claude Code, Codex, and Claude Desktop —
whichever are present. Existing agent configs are backed up first. Re-run it any
time (e.g. after a Node version change).
2. Configure config.yaml
config.yaml holds your secrets and is git-ignored — it is never committed.
Copy the example if you don't have one yet:
cp config.example.yaml config.yaml && chmod 600 config.yaml
botToken: "123456789:ABC..." # from @BotFather
owner:
name: "Owner"
chatId: "111111" # your numeric Telegram ID (gets audit copies)
recipients:
- name: "Alice"
chatId: "222222"
tags: ["partner", "household"]
- name: "Bob"
chatId: "333333"
tags: ["friend", "team"]
auditToOwner: true
3. Find chat IDs
Everyone you want to message (including you) must DM the bot once. You have two ways to capture their numeric IDs — neither runs in the background:
a) On-demand /chatinfo listener (recommended)
npm run chatinfo
This starts a temporary listener. Each person DMs the bot /chatinfo and the
bot replies to them with their own chat ID (it's also printed in your terminal).
Press Ctrl-C when you're done — it does not keep running.
npm run chatinfo -- --once # auto-stop after the first /chatinfo
npm run chatinfo -- --timeout=60 # auto-stop after 60 seconds
b) One-shot snapshot
npm run chats
Prints the chat ID + name of everyone who recently messaged the bot. (Reads only — never writes your config.)
Copy the right IDs into config.yaml.
4. Restart Claude Desktop
If you use Claude Desktop, restart it so it loads the new server. Claude Code and Codex pick it up on their next run.
Usage
Just ask, in any agent:
"message me on telegram: deploy finished ✅" "text my partner: leaving now" "notify the family: flight landed"
Behind the scenes the agent calls send_telegram_message. Messages to anyone
other than you also send you an audit copy like:
🔔 Audit — sent to Alice: leaving now
Configuration reference
| Key | Meaning |
|---|---|
botToken |
Telegram bot token from @BotFather. |
owner.name |
Your display name. |
owner.chatId |
Your numeric Telegram ID. Receives audit copies. |
recipients[].name |
A person's name (addressable as to). |
recipients[].chatId |
Their numeric Telegram ID. |
recipients[].tags |
Aliases like partner, family (addressable as to). |
auditToOwner |
true (default) to copy the owner on messages to others. |
Environment overrides (handy for CI / secrets managers):
TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID (owner), TELEGRAM_RECIPIENTS (a JSON
array of recipients, merged over the file), and WATUSH_CONFIG (alternate config
path).
Resolving to
| You say… | to |
Goes to |
|---|---|---|
| "message me" | (omitted) | owner (you) |
| "message Alice" | Alice |
Alice |
| "message my partner" | partner |
whoever is tagged partner |
| "message the family" | family |
everyone tagged family |
| "message Dana" (unknown) | Dana |
nothing — returns a helpful error listing known names/tags |
Uninstall
./uninstall.sh # unregister from all agents (keeps config.yaml)
./uninstall.sh --purge # also remove dist/ and node_modules/
Security
config.yamlis git-ignored andchmod 600. The token and chat IDs never leave your machine and are never committed.- Send-only: the server has no tool to read messages or list your chats.
- If your token ever leaks, rotate it in @BotFather (
/revoke) and paste the new one intoconfig.yaml.
Development
npm install
npm run build # tsc -> dist/
npm test # offline unit tests (resolution, config, audit logic)
npm start # run the MCP server over stdio
Project layout:
src/config.ts load YAML config + resolve recipients (pure, tested)
src/telegram.ts Telegram Bot API client (send-only)
src/deliver.ts resolve + send + audit orchestration (pure, tested)
src/mcp-server.ts the MCP server (two tools)
src/list-chats.ts read-only "npm run chats" helper
src/listen.ts on-demand "npm run chatinfo" listener
bin/watush-mcp-server launcher that resolves node for GUI apps / nvm
scripts/ config editors used by install/uninstall
MIT licensed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。