notify-mcp

notify-mcp

Enables AI to send push notifications to your phone via a configurable gateway. It is a thin wrapper that posts to an Apprise push gateway.

Category
访问服务器

README

page-user — proactive push-notification MCP

English | 简体中文

An MCP server that gives any MCP client (Claude Code, Codex CLI, …) a page_user tool. The AI calls it to proactively push a short message to your phone via Telegram — when a long task finishes, a run fails, it needs a decision, or you asked for periodic progress. Each message carries the machine name, which CLI sent it, a session label, and optional tables (rendered aligned).

Claude Code / Codex ── page_user(message, title?, host?, session?, agent?, table?, tag?) ──►
        (just a URL + token in config)                                                       │
                                                                                             ▼
                                              Cloudflare Worker (remote MCP) ──► Telegram

There are two flavors. The Cloudflare remote MCP is recommended; the original self-hosted Apprise gateway is kept as a legacy alternative (see the end).

Recommended: remote MCP on Cloudflare

The whole server is one Cloudflare Worker in cloudflare/ — stateless MCP over Streamable HTTP, bearer auth, pushes straight to Telegram. Nothing runs on your machines; you update every client at once by redeploying.

  1. Deploy the Worker and set its secrets — full step-by-step in cloudflare/README.md. You end up with an endpoint like https://<name>.<subdomain>.workers.dev/mcp and a bearer AUTH_TOKEN.

  2. Register with your CLIs on each machine:

    PAGE_USER_TOKEN=<AUTH_TOKEN> ./scripts/install_page_user.sh
    

    This removes any old notify server and adds page-user to Claude Code (user scope) and Codex (~/.codex/config.toml), baking in the machine's hostname (X-Host) and the CLI name (X-Agent). Override the endpoint with PAGE_USER_URL if you deployed under a different name.

  3. Verify: claude mcp list (should show page-user … ✔ Connected) and codex mcp list.

Egress: clients must be able to reach *.workers.dev (the default Worker domain is commonly blocked on direct connections — a working HTTP(S) proxy in the environment is enough; the CLIs inherit HTTPS_PROXY). If a machine can't reach *.workers.dev at all, bind a custom domain to the Worker instead.

The tool

page_user(message, title?, host?, session?, agent?, table?, tag?) — pushes a formatted notification. Only message is required; host/agent default to the X-Host/X-Agent headers set at registration, tag selects a recipient group (TARGETS secret), and table is rows of strings rendered as an aligned monospace table. The model learns all of this from the tool's MCP schema — it does not read this README. To change the tool or its guidance, edit cloudflare/worker.js and npx wrangler deploy; all clients pick it up.

Manual registration

# Claude Code (user scope):
claude mcp add --transport http page-user https://<name>.<subdomain>.workers.dev/mcp \
  -H "Authorization: Bearer <AUTH_TOKEN>" -H "X-Host: $(hostname)" -H "X-Agent: claude-code" -s user

# Codex — add to ~/.codex/config.toml:
# [mcp_servers.page-user]
# url = "https://<name>.<subdomain>.workers.dev/mcp"
# http_headers = { "Authorization" = "Bearer <AUTH_TOKEN>", "X-Host" = "<host>", "X-Agent" = "codex" }

Legacy: self-hosted Apprise gateway

The original design is a thin Python MCP wrapper (notify_mcp.py, tool send_notification) that POSTs to a self-hosted Apprise gateway (server.py), which forwards to Telegram/Feishu/etc. Use this if you can't or don't want to use Cloudflare. It is managed with uv:

uv sync --extra gateway       # wrapper + apprise
./scripts/start_gateway.sh    # run the gateway (needs ./token and ./targets.json)
./scripts/install_mcp.sh      # register the `notify` MCP with Claude Code + Codex

Details:

Unit tests (legacy Python code)

uv run pytest -q                 # no network needed
uv run pre-commit run --all-files  # ruff format/lint

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选