Skip to main content
Glama
mcp-notify

mcp-notify

by mrfqcentic

mcp-notify

最小限のMCPサーバーで、AIエージェントがタスクを完了したときや注意が必要なときに、通知音を再生し、システムバナーを表示します。

あらゆるMCPクライアントで動作します: Claude Desktop、Claude Code、Cursor、VS Code、opencode、Clineなど。3行の設定だけで、APIキー不要、ネットワーク呼び出し不要 — ローカルの音声機能と通知機能にのみアクセスします。

インストール

クライアントのMCP設定に追加します (Claude Desktopのclaude_desktop_config.json、Cursor / VS Codeのmcp.json、またはopencodeの設定):

{
  "mcpServers": {
    "mcp-notify": {
      "command": "npx",
      "args": ["-y", "@mrfqcentic/mcp-notify"]
    }
  }
}

(opencodeユーザー: mcpキーの下に同じ形で、"type": "local"と"command": ["npx", "-y", "@mrfqcentic/mcp-notify"]を指定します。)

Node.js >= 20が必要です。

Related MCP server: Notifications MCP Server

エージェントに呼び出させる

AGENTS.md / CLAUDE.md / システムプロンプトに1行追加します:

When a task is done or the user should be alerted, call the `notify` tool with a short title and a 1–2 sentence description of the result.

ツール

notify

サウンドを再生し、バナーを表示します。エージェントは常にtitle(最大50文字)とmessage(最大200文字)を提供します。

パラメータ

必須

説明

title

はい

短いバナータイトル。例: "Build finished"

message

はい

1〜2文の説明。例: "All 142 tests passed"

sound

いいえ

音声を含む任意のオーディオ/ビデオファイルの絶対パス (mp4、m4a、mp3、wav、aiff)

list_sounds

利用可能なサウンドと現在選択されているデフォルトを一覧表示します。

サウンドの選択

優先順位:

  1. NOTIFY_SOUND環境変数 — 絶対パス。明示的で決定的

  2. sounds/フォルダ内の名前がdefaultで始まるファイル (ピン留めしたもの)

  3. sounds/フォルダ内の最初の音声ファイル (アルファベット順 — バンドルされたデフォルトとしてnotify-me.mp3が同梱されています)

  4. assets/内の生成されたチャイム

  5. システムサウンド (macOS Glass.aiff、Linux bell.oga)

ヒント: お気に入りのサウンドをsounds/default.mp3にリネームまたはコピーするか(NOTIFY_SOUNDを設定するか)ことで固定できます。

同梱されているsounds/notify-me.mp3は、ElevenLabsで商用ライセンスのもと生成されました。

{
  "mcpServers": {
    "mcp-notify": {
      "command": "npx",
      "args": ["-y", "@mrfqcentic/mcp-notify"],
      "env": { "NOTIFY_SOUND": "/absolute/path/to/your-sound.mp3" }
    }
  }
}

ヒント: 音声トラック付きのMP4ファイルも動作します (macOS afplayが音声ストリームを読み取ります)。

対応プラットフォーム

OS

サウンド

バナー

macOS

afplay (テスト済み)

osascript (テスト済み)

Linux

ffplay / mpg123 / paplay / aplay フォールバックチェーン (ベストエフォート)

notify-send (ベストエフォート)

Windows

PowerShell MediaPlayer (ベストエフォート)

PowerShell NotifyIcon バルーン (ベストエフォート)

CI環境変数が設定されている場合、サウンドとバナーの再生はノーオペレーションになります (CIワークフローで自動設定されます)。これにより、音声のないマシンでもテストスイートを実行できます。

開発

npm install
npm run typecheck
npm test          # builds, then runs the e2e suite (sound + banner fire locally)

ライセンス

MIT — LICENSEを参照。

Available Tools

2 tools
list_soundsList soundsA

List audio files available to the notify tool and the currently selected default sound. Resolution order: NOTIFY_SOUND env var, sounds/default* file, first file in sounds/, bundled chime, system sound.

Inputs: no named parameters.

notifyNotifyA

Play a notification sound on the user's computer and show a system banner. Call this whenever a task is done, something needs the user's attention, or the user asks to be notified. Always write a concise, human-friendly title and message describing what just happened or needs attention (e.g. title: 'Build finished', message: 'All 142 tests passed, no errors.'). Default sound resolution: NOTIFY_SOUND env var, then a sounds/default* file, then the first file in this server's sounds/ folder, then the bundled chime, then the system sound. You can pass an absolute path to any audio/video file with audio (mp4, m4a, mp3, wav, aiff) in sound.

Inputs: title (required), message (required), sound.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools serve entirely different functions: notify triggers the notification while list_sounds enumerates available sounds and the default. There is no overlap or ambiguity between them.

    Naming Consistency4/5

    Both tools use imperative verbs ('notify', 'list_sounds'), but 'notify' lacks a noun object unlike 'list_sounds' which follows verb_noun. Still, they are clear and predictable with no style mixing.

    Tool Count4/5

    With only 2 tools, the server is minimal but appropriately scoped for a simple notification utility. It does not feel under- or over-populated for its purpose.

    Completeness4/5

    The tool surface covers the core functionality (sending notifications and inspecting available sounds). Minor gaps like muting or configuration could exist, but for a focused utility it is reasonably complete.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Sends system notifications when AI completes responses in MCP-compatible code editors, with cross-platform support for macOS, Windows, and Linux including customizable titles, messages, icons, and sound effects.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to send native macOS notifications for task completion alerts and reminders. Supports interactive features like custom system sounds, action buttons, and user replies directly from the notification center.
      201 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to send desktop notifications on macOS with rich formatting, urgency levels, and sound options.
      1
      16 npm
      1
      MIT
    • A
      license
      D
      quality
      D
      maintenance
      Enables MCP agents to send desktop notifications for completed tasks, failures, and important updates, providing visible and reliable feedback.
      1
      52 npm
      2
      Apache 2.0