首页
学习
活动
专区
圈层
工具
发布
MCP广场 >详情页
mcp服务提醒2026-06-03114分享添加福利群:解决AI开发者的「MCP实战痛点」
一种模型上下文协议服务,当AI代理任务完成时发送桌面通知和警报声音,与Claude Desktop和Cursor等各种LLM客户端集成。
By Cactusinhand
2026-06-03114
github
详情内容

MseeP.ai 安全评估徽章 PyPI 版本

📢 MCP 通知服务器

English | 中文

一个 MCP 服务器,当代理任务完成时发送桌面通知并带有音效。

🥩 功能

  • 代理任务完成后发送系统桌面通知
  • 播放提示音以吸引用户注意,内置音效文件
  • 跨平台支持(Windows、macOS、Linux)
  • 基于标准 MCP 协议,可与各种 LLM 客户端集成

⏬ 安装

使用 uv 包管理器安装

git clone https://github.com/Cactusinhand/mcp_server_notify.git
cd mcp_server_notify

uv venv
source .venv/Scripts/activate

uv pip install mcp-server-notify
# 或者
pip install mcp-server-notify

安装后,直接调用模块以检查安装是否成功:

python -m mcp_server_notify

该模块接受 --debug--file 选项,可以这样使用:

python -m mcp_server_notify --debug
python -m mcp_server_notify --debug --log-file=path/to/logfile.log

⚠️❕ 特殊要求

我们使用 Apprise API 来发送桌面通知,因此需要在桌面上安装一些特殊要求

Windows

# windows:// 最低要求
pip install pywin32

macOS

# 确保 terminal-notifier 已安装到系统中
brew install terminal-notifier

📚 使用

与 Claude Desktop 一起使用:

找到配置文件 claude_desktop_config.json

{
    "mcpServers": {
        "NotificationServer": {
            "command": "uv",
            "args": [
              "--directory",
              "path/to/your/mcp_server_notify project",
              "run",
              "mcp-server-notify",
            ]
        }
    }
}

如果全局安装,也可以使用 python 命令:

{
    "mcpServers": {
        "NotificationServer": {
            "command": "python",
            "args": [
              "-m",
              "mcp_server_notify",
            ]
        }
    }
}

⚡️ 与 Cursor 一起使用:

找到配置文件 ~/.cursor/mcp.jsonyour_project/.cursor/mcp.json

{
    "mcpServers": {
        "NotificationServer": {
            "command": "uv",
            "args": [
              "--directory",
              "path/to/your/mcp_server_notify project",
              "run",
              "mcp-server-notify",
            ]
        }
    }
}

配置完成后,只需在任务输入到 AI 的末尾添加类似 finally, send me a notification when task finished. 的提示即可触发通知。

在 Cursor 中,可以将此提示添加为 Cursor Settings -> Rules 中的规则,这样就不必每次都手动输入。

⚡️ 与 VSCode + Copilot 一起使用:

  1. 安装服务管理器 uv/uvxpip install uv

  2. 将服务添加到 VSCode 设置中:

    Windows %APPDATA%\Code\User\settings.json
    macOS $HOME/Library/Application\ Support/Code/User/settings.json
    Linux $HOME/.config/Code/User/settings.json

    "mcp": {
        "servers": {
            "notifier": {
                "command": "uvx",
                "args": [
                    "mcp-server-notify"
                ],
                "env": {}
            }
        }
    }
    
  3. 确保使用最新版本的 VSCode —— 它会自动运行 MCP 服务

  4. 打开 VSCode → 启用 Copilot → 切换到代理模式。

  5. 输入 # → 你会看到 #send_notification 选项。

  6. 询问代理:运行 #send_notification(它会自动处理通知)。

  7. 现在,代理模式下的 Copilot 可以发送桌面通知。

🐳 使用 Docker 运行

由于环境兼容性问题,目前不可用。 如果 Docker 容器需要触发主机通知,无论主机操作系统是 Windows、macOS 还是 Linux,解决方案都会变得更加复杂,通常无法直接使用原生通知。

主要问题:

  1. 操作系统特定的通知系统 每个操作系统(Windows、macOS、Linux)都有其独特的通知机制。

  2. Docker 隔离 Docker 容器的隔离限制了其直接访问主机操作系统资源的能力。

  3. 依赖管理 需要处理每个操作系统的不同通知库和依赖项。

🧾 许可证

MIT

💻 贡献

欢迎提交问题和拉取请求!

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档