Skip to main content
Glama
mcp-notify

mcp-notify

by mrfqcentic

mcp-notify

Minimaler MCP-Server, der einen Benachrichtigungston abspielt und ein Systembanner anzeigt, sobald Ihr KI-Agent eine Aufgabe abgeschlossen hat oder Ihre Aufmerksamkeit benötigt.

Funktioniert mit jedem MCP-Client: Claude Desktop, Claude Code, Cursor, VS Code, opencode, Cline und mehr. Eine 3-zeilige Konfiguration, keine API-Schlüssel, keine Netzwerkaufrufe – es greift nur auf Ihre lokalen Audio- und Benachrichtigungsfunktionen zu.

Installation

Fügen Sie es zur MCP-Konfiguration Ihres Clients hinzu (Claude Desktop claude_desktop_config.json, Cursor / VS Code mcp.json oder opencode-Konfiguration):

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

(opencode-Nutzer: gleiche Struktur unter dem mcp-Schlüssel mit "type": "local" und "command": ["npx", "-y", "@mrfqcentic/mcp-notify"].)

Erfordert Node.js >= 20.

Related MCP server: Notifications MCP Server

Lassen Sie den Agenten es aufrufen

Fügen Sie eine Zeile zu Ihrer AGENTS.md / CLAUDE.md / Systemaufforderung hinzu:

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.

Tools

notify

Spielt den Ton ab und zeigt ein Banner. Der Agent liefert immer title (max. 50 Zeichen) und message (max. 200 Zeichen).

Parameter

Erforderlich

Beschreibung

title

ja

Kurzer Bannertitel, z. B. „Build abgeschlossen“

message

ja

1–2-Satz-Beschreibung, z. B. „Alle 142 Tests bestanden“

sound

nein

Absoluter Pfad zu einer beliebigen Audio-/Videodatei mit Ton (mp4, m4a, mp3, wav, aiff)

list_sounds

Listet verfügbare Sounds und den aktuell ausgewählten Standard auf.

Auswahl Ihres Sounds

Reihenfolge:

  1. NOTIFY_SOUND-Umgebungsvariable – absoluter Pfad, explizit und deterministisch

  2. Eine Datei im Ordner sounds/, deren Name mit default beginnt

  3. Erste Audiodatei im Ordner sounds/ (alphabetisch – notify-me.mp3 wird hier als Standard mitgeliefert)

  4. Der generierte Klang in assets/

  5. Der Systemklang (macOS Glass.aiff, Linux bell.oga)

Tipp: Benennen Sie Ihren Lieblingssound um oder kopieren Sie ihn nach sounds/default.mp3 (oder setzen Sie NOTIFY_SOUND), damit er dauerhaft verwendet wird.

Der gebündelte sounds/notify-me.mp3 wurde mit ElevenLabs unter einer kommerziellen Lizenz erstellt.

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

Tipp: MP4-Dateien mit einer Tonspur funktionieren ebenfalls (macOS afplay liest den Audiostream).

Plattformen

Betriebssystem

Sound

Banner

macOS

afplay (getestet)

osascript (getestet)

Linux

ffplay / mpg123 / paplay / aplay-Fallback-Kette (bestmöglich)

notify-send (bestmöglich)

Windows

PowerShell MediaPlayer (bestmöglich)

PowerShell NotifyIcon-Ballon (bestmöglich)

Jeder CI-Umgebungsvariablenwert macht die Ton- und Bannerwiedergabe zu No-ops (wird automatisch in CI-Workflows gesetzt), sodass die Testsuite auf Maschinen ohne Audio ausgeführt werden kann.

Entwicklung

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

Lizenz

MIT – siehe 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