Skip to main content
Glama

MCP Notify Server

📢 MCP 通知服务器

英语|中文

当代理任务完成时,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 # or 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:// minimum requirements pip install pywin32

macOS

# Make sure terminal-notifier is installed into your system 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/mcp.json或者your_project/.cursor/mcp.json

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

配置完成后,只需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. 依赖管理需要处理每个操作系统不同的通知库和依赖项。

🧾 许可证

麻省理工学院

💻 贡献

欢迎提出问题和请求!

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议服务,当 AI 代理任务完成时发送桌面通知和警报声音,并与 Claude Desktop 和 Cursor 等各种 LLM 客户端集成。

  1. 🥩 功能
    1. ⏬ 安装
      1. 使用uv包管理器安装
    2. ⚠️❕ 特殊要求
      1. 📚 使用方法
        1. 与 Claude Desktop 一起使用:
        2. ⚡️ 与光标一起使用:
        3. ⚡️ 与 VSCode + Copilot 一起使用:
        4. 🐳 使用 Docker 运行
      2. 🧾 许可证
        1. 💻 贡献

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol implementation that enables AI agents to send notifications through Pushover.net, supporting message customization with various parameters like priority, sound, and URL.
            Last updated -
            31
            7
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants like Claude to interact with Zulip workspaces, supporting capabilities such as posting messages, listing channels, sending direct messages, and accessing conversation history.
            Last updated -
            JavaScript
            Apache 2.0
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server enabling AI systems to send real-time notifications to phones, desktops, and other devices through the ntfy publish/subscribe service.
            Last updated -
            10
            8
            TypeScript
            Apache 2.0
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that bridges AI assistants like Claude with Wordware's specialized agent capabilities, allowing dynamic loading and access to any Wordware flow through a standardized interface.
            Last updated -
            Python

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cactusinhand/mcp_server_notify'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server