
Guarded WhatsApp
io.github.peter-tnc-453由 GitHub 帳號 peter-tnc-453 發布v0.1.0更新於 Oct 24, 2026
Security gate for agent-driven WhatsApp: allowlist, secret scan, rate limit, audit log.
概覽
為 AI 代理提供受管控的 WhatsApp 傳送:白名單、密鑰掃描、速率限制與稽核日誌把關每則訊息和檔案。
- 可以做什麼
- 以唯讀方式預演傳送,執行所有檢查並回傳判定結果與確認權杖,不會實際送出
- 透過完整檢核向白名單內的收件人傳送文字訊息
- 傳送檔案,自動使用 ASCII 安全檔名,並進行類型、大小檢查與說明文字掃描
- 檢視收件人白名單,號碼已遮蔽
- 讀取僅可追加稽核日誌中的近期紀錄
- 適用情境
- 當希望助理傳送 WhatsApp 訊息或檔案,但需要對可聯絡對象、外送內容與頻率設下硬性限制,並保留每次嘗試的紀錄時使用。適合在備用號碼上做個人或團隊自動化,而非正式環境的客戶訊息推播。
- 執行需求
- 以 Python 套件形式在本機透過 stdio 執行(Python 3.10+),可從 PyPI 或原始碼安裝。需要另一個提供傳送介面且已完成登入的 WhatsApp 橋接服務在執行(首次需掃 QR code)。需要 YAML 白名單設定檔,由環境變數 WA_GUARD_CONFIG 指定;稽核日誌寫入使用者家目錄下。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Guarded WhatsApp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
guarded-whatsapp-mcp
Govern & automate WhatsApp safely for AI agents.
[License: MIT] [Python 3.10+] [MCP server] [status: alpha] [PRs welcome]
An MCP server that lets an AI agent (or any MCP client) send WhatsApp messages and files — but only through a security gate you control: a recipient allowlist, secret scanning, file validation, rate limiting, a confirmation gate, and an append-only audit log.
Most WhatsApp bridges send anything, anywhere, with no record. That is fine for a human clicking send. It is not fine for an autonomous agent. guarded-whatsapp-mcp is the governance layer that makes agent-driven WhatsApp safe enough to trust.
This is not a Slack replacement. No channels, no threads, no workspace UI. It makes the WhatsApp you already use safe to automate.
See it in action
Good sends go through · a leaked key and an un-allowlisted number are blocked · files need a preview · everything is logged.
How it works
⚠️ Read this first — unofficial transport & WhatsApp Terms
This server governs access to a transport; by default that transport is the unofficial
whatsmeow-based bridge (e.g.
whatsapp-mcp), which speaks WhatsApp Web's
private protocol.
- An unofficial client violates WhatsApp's Terms of Service and can get a number banned. A reverse-engineered client cannot avoid this.
- Use a secondary / non-critical number. Never your primary or business-critical one.
- Not for production customer messaging — use the official WhatsApp Business Cloud API. An official Cloud-API backend is on the roadmap; the guard layer is built to front either transport.
The guardrails here reduce operational risk (wrong recipient, leaked secret, spam). They do not change the Terms-of-Service risk of the underlying bridge. We are loud about this on purpose so you can choose with eyes open.
Why teams use it
Security controls
Tools
Quickstart
Register with Claude Code / any MCP client
Example — a safe agent flow
Configuration
See config/allowlist.example.yaml. Key knobs:
allow_unlisted (the fail-closed switch), require_confirm_for, rate_limit, files,
secrets.on_detect, and the recipients allowlist. Edits hot-reload on each call.
Roadmap
- Pluggable backend — same guard layer in front of the unofficial bridge or the official WhatsApp Business Cloud API (compliant path).
- Inbound routing — surface incoming messages to agents (read · classify · route).
- Scheduled / templated sends through the same gate.
- Per-recipient policy (rate limits / confirm rules per contact or group).
Tests
Contributing
PRs welcome — see CONTRIBUTING.md. The one rule: keep the fail-closed posture, and add a test for every new check.
License
MIT — see LICENSE. Security model & honest limitations in SECURITY.md.
來源:README.md,提交 73cfc2c
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分