消息通知(MCP&Agent挑战赛)

gimjin/message_mcp-MCP_Agent_Challenge
Hosted
11 Stars 1.2k 次浏览 gimjin 更新于 2026-08-23

桌面通知、个性化声音、ntfy 手机应用通知、邮件通知和 API 推送,减少 AI 任务等待焦虑,舒适地享用一杯咖啡。​

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "message-mcp": {
      "args": [
        "-y",
        "message-mcp@latest",
        "--shttp"
      ],
      "command": "npx"
    }
  }
}

该服务需要配置环境变量:API_HEADERS、API_METHOD、API_URL、NTFY_TOPIC、SMTP_HOST、SMTP_PASS、SMTP_PORT、SMTP_SECURE、SMTP_USER

可用工具 (1 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

notify 2 个参数

Send notifications and messages through multiple channels (desktop, email, API). Use this tool to notify users about any important information, progress updates, task completions, alerts, or any other communication needs.

该工具无需必填参数,直接调用即可

服务介绍

🚀 提升 AI 使用效率,释放更多时间

等待 AI 完成任务时,您是否希望能同时处理其他工作?现在可以在 AI 执行长时间任务时,安心去处理其他事务。

Message MCP 让您的 AI 协作更高效!

text
🧑:做一款俄罗斯方块网页游戏,完成后通知。
🤖:我将开始做俄罗斯方块游戏
...
💬:Message MCP 执行,已发送信息。

[!TIP]

  • 在客户端设置里 允许 MCP 自动执行
  • 用户规则规则文件 中加入 “完成后通知” 提示,即可避免重复手动提示。

⚡️ 快速安装

点击安装-Cursor 点击安装-VS_Code 点击安装-VS_Code_Insiders smithery.ai

通过 smithery.ai 支持云端安装(如 Dify 等 SaaS 服务),也提供本地一键部署。由于 Message MCP 实际运行于 smithery.ai 云端,暂不支持桌面通知。全程采用端到端加密,保障数据安全。了解更多

⚙️ 标准安装

MacOS、Linux、WSL2

json
{
"mcpServers": {
"message-mcp": {
"command": "npx",
"args": ["-y", "message-mcp@latest"]
}
}
}

Windows

json
{
"mcpServers": {
"message-mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "message-mcp@latest"]
}
}
}

🎛️ 可选配置

修改桌面通知

json
{
"mcpServers": {
"message-mcp": {
"command": "npx",
"args": ["-y", "message-mcp@latest"],
"env": {
"DISABLE_DESKTOP": "true",
"SOUND_PATH": "/path/to/your/sound.mp3"
}
}
}
}

  • 默认已开启桌面通知
  • 默认声音由 zapsplat 提供。如果不喜欢默认声音,可以到 zapsplat.com 下载并配置。

ntfy 手机通知安装 App:App StoreGoogle PlayF-Droid

json
{
"mcpServers": {
"message-mcp": {
"command": "npx",
"args": ["-y", "message-mcp@latest"],
"env": {
"NTFY_TOPIC": "your-unique-topic"
}
}
}
}

邮件通知

json
{
"mcpServers": {
"message-mcp": {
"command": "npx",
"args": ["-y", "message-mcp@latest"],
"env": {
"SMTP_HOST": "smtp.gmail.com",
"SMTP_PORT": "587",
"SMTP_SECURE": "false",
"SMTP_USER": "user@gmail.com",
"SMTP_PASS": "your_password"
}
}
}
}

API 通知

json
{
"mcpServers": {
"message-mcp": {
"command": "npx",
"args": ["-y", "message-mcp@latest"],
"env": {
"API_URL": "https://httpbin.org/post",
"API_METHOD": "POST", // POST, PUT, PATCH
"API_HEADERS": "{"Authorization": "Bearer token"}"
}
}
}
}

javascript
fetch(API_URL, {
method: API_METHOD,
headers: {
'Content-Type': 'application/json',
...JSON.parse(API_HEADERS)
},
body: JSON.stringify({
title: notifyTitle,
message: notifyMessage,
}),
})

📌 系统要求

  • Node.js:18 或更高
  • macOS:原生通知需要 >= 10.8 版本
  • Linux:需要安装 notify-osd 或 libnotify-bin(Ubuntu 默认包含)
  • Windows:>= 8 版本,或 Windows < 8 的任务栏气球提示

❗️ 解决异常问题

Windows 系统通知未启用

设置 > 通知和操作 > 获取来自应用和其他发送者的通知 → 启用

WSL2(Ubuntu)没有通知声音

bash
sudo apt install -y pulseaudio mpg123

WSL2 环境缺少操作系统通知

bash
sudo find / -type f -name "snoretoast-*.exe" 2>/dev/null
/path/to/.../node_modules/snoretoast-x64.exe
/path/to/.../node_modules/snoretoast-x86.exe

chmod +x /path/to/.../node_modules/snoretoast-*.exe


如果这个项目对你有帮助,请给个 ⭐️ 支持一下,让更多人看到它!

相关 MCP 服务