npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

notification-sound-mcp

v1.0.5

Published

MCP server for notification sounds

Readme

Notification Sound MCP

npm version

🔔 Play a sound when the task is finished so you know when to continue creating wonderful things 🔔

A Model Context Protocol (MCP) server that provides notification sound functionality. This server allows MCP clients like Claude Code to play audio notifications, helping you stay aware of task completion without constantly monitoring your screen.

Use Case

If you want to get a notification after a task is completed, you can use the following prompt:

calculate 2 + 2, then play sound.
add unit test for this module. after that play notification.

Features

  • Cross-platform support: Works on macOS, Linux, and Windows
  • Zero configuration: Works out of the box with automatic audio player detection
  • Audio format support: Supports MP3 and WAV files

Usage with MCP Clients

VSCode with GitHub Copilot Chat

To use this MCP server with VSCode and GitHub Copilot Chat, add the server configuration to your VSCode settings:

{
  "mcp.servers": {
    "notification-sound": {
      "command": "npx",
      "args": ["-y", "notification-sound-mcp"],
      "env": {}
    }
  }
}

Claude Code and Claude Desktop

Add this server to your Claude Code configuration:

  1. Open Claude Code settings
  2. Add the MCP server configuration:
{
  "mcpServers": {
    "notification-sound": {
      "command": "npx",
      "args": ["-y", "notification-sound-mcp"]
    }
  }
}
  1. Restart Claude Code
  2. The play_notification_sound tool will be available for use

Or if you want to add it with a command:

claude mcp add notification-sound-mcp -s user -- npx -y notification-sound-mcp

Cursor IDE

To integrate with Cursor IDE:

  1. Open Cursor settings
  2. Navigate to the MCP servers section
  3. Add a new server configuration:
{
  "notification-sound": {
    "command": "npx",
    "args": ["-y", "notification-sound-mcp"]
  }
}
  1. Restart Cursor IDE
  2. Access the tool through Cursor's AI chat

Generic MCP Client Configuration

For any MCP-compatible client, use this general configuration pattern:

{
  "servers": {
    "notification-sound": {
      "command": "npx",
      "args": ["-y", "notification-sound-mcp"]
    }
  }
}

Supported Audio Players

The server automatically detects and uses the first available audio player based on your operating system:

macOS

  • afplay (built-in)

Linux

  • ffplay (FFmpeg)
  • mpv
  • paplay (PulseAudio)
  • aplay (ALSA)
  • play (SoX)

Windows

  • ffplay (FFmpeg)
  • powershell (built-in)
  • mpv

API Reference

Tools

play_notification_sound

Plays a notification sound

Parameters: None

Returns:

  • Success: { content: [{ type: "text", text: "Notification sound played!" }] }
  • Error: { content: [{ type: "text", text: "Error message" }], isError: true }

Common Error Messages:

  • "No supported audio player found. Please install ffplay, paplay, aplay, play, or mpv."
  • "Audio player does not support the sound file format."
  • "Failed to play notification sound: [specific error]"

Requirements

  • Node.js: Version 18 or higher
  • Audio player: At least one supported audio player must be installed on your system

Testing

Test the notification functionality locally:

# Test notification sound playback
npx notification-sound-mcp --test-notification

Troubleshooting

No Sound Playing

  1. Check audio player availability:

    # Linux/macOS - check if common players are installed
    which ffplay mpv paplay aplay play
    
    # Windows - check if ffplay is available
    where ffplay
  2. Install an audio player:

    # Ubuntu/Debian
    sudo apt install ffmpeg  # provides ffplay
    
    # macOS (afplay is built-in, but you can also install others)
    brew install ffmpeg mpv
    
    # Windows - install FFmpeg or mpv

MCP Integration Issues

  1. Server not starting: Check Node.js version (requires 18+)
  2. Tool not available: Verify MCP client configuration points to correct path
  3. Permission errors: Ensure the server has permission to execute audio commands

Development

To modify the notification sound, replace assets/notification.mp3 with your preferred audio file (MP3 or WAV format).

To add support for additional audio players, modify the audioPlayers configuration in src/audio_player.js.