A Model Context Protocol server that allows AI agents to play notification sounds when tasks are completed. This TypeScript-based MCP server provides a simple, configurable notification system with bundled sounds that work out of the box with npx!
play_notification- Play a notification sound to indicate task completion- Takes an optional
messageparameter to display with the notification - Supports cross-platform sound playback (Windows and macOS)
- Works with bundled sounds - no manual downloads required!
- Takes an optional
5 high-quality notification sounds bundled with the package:
cosmic- Space-themed notification πfairy- Magical, whimsical tone π§ββοΈgentle- Soft, pleasant default sound (default) πpleasant- Balanced, professional tone πretro- Nostalgic, vintage-style notification πΉοΈrandom- Randomly plays one of the 5 sounds π²
Just run it with npx - sounds included!
{
"mcpServers": {
"notifications": {
"command": "npx",
"args": ["-y", "@pinkpixel/notification-mcp"]
}
}
}{
"mcpServers": {
"notifications": {
"command": "npx",
"args": ["-y", "@pinkpixel/notification-mcp"],
"env": {
"MCP_NOTIFICATION_SOUND": "cosmic"
}
}
}
}{
"mcpServers": {
"notifications": {
"command": "npx",
"args": ["-y", "@pinkpixel/notification-mcp"],
"env": {
"MCP_NOTIFICATION_SOUND": "random"
}
}
}
}{
"mcpServers": {
"notifications": {
"command": "npx",
"args": ["-y", "@pinkpixel/notification-mcp"],
"env": {
"MCP_NOTIFICATION_SOUND_PATH": "C:\\path\\to\\your\\sound.mp3"
}
}
}
}The notification sound can be configured using environment variables:
| Variable | Description | Default |
|---|---|---|
MCP_NOTIFICATION_SOUND |
Choose from bundled sounds: cosmic, fairy, gentle, pleasant, retro, random |
gentle |
MCP_NOTIFICATION_SOUND_PATH |
Absolute path to your own MP3 file (overrides bundled sounds) | null |
- Custom Path (
MCP_NOTIFICATION_SOUND_PATH) - highest priority - Bundled Sound (
MCP_NOTIFICATION_SOUND) - choose from 5 included sounds - Default - gentle chime if nothing is specified
Once configured, your MCP client can call the play_notification tool:
await client.request({
method: "tools/call",
params: {
name: "play_notification",
arguments: {
message: "Task completed successfully! π"
}
}
});# Clone the repository
git clone https://github.com/pinkpixel-dev/notification-mcp.git
cd notification-mcp
# Install dependencies
npm install
# Build the server
npm run build
# For development with auto-rebuild
npm run watch{
"mcpServers": {
"notifications": {
"command": "node",
"args": ["./build/index.js"],
"env": {
"MCP_NOTIFICATION_SOUND": "retro"
}
}
}
}Use the MCP Inspector for interactive debugging:
npm run inspectorThe Inspector provides a web interface to test your MCP server in your browser.
No installation required - sounds are bundled automatically:
npx @pinkpixel/notification-mcpnpm install -g @pinkpixel/notification-mcp
notification-mcpnpm install @pinkpixel/notification-mcp
npx notification-mcpAll sound files are located in the sounds/ directory and are automatically included when you install the package:
- Cosmic:
sounds/cosmic_chime.mp3- π Space-themed - Fairy:
sounds/fairy_chime.mp3- π§ββοΈ Magical - Gentle:
sounds/gentle_chime.mp3- π Default (soft) - Pleasant:
sounds/pleasant_chime.mp3- π Professional - Retro:
sounds/retro_chime.mp3- πΉοΈ Vintage - Random: Set
MCP_NOTIFICATION_SOUND=random- π² Surprise me!
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
- Website: pinkpixel.dev
- GitHub: github.com/pinkpixel-dev
- Discord: @sizzlebop
Made with β€οΈ by Pink Pixel β¨
