通知
STDIO用于任务完成通知提示音的MCP服务器
用于任务完成通知提示音的MCP服务器
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
message parameter to display with the notification5 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 | 
MCP_NOTIFICATION_SOUND_PATH) - highest priorityMCP_NOTIFICATION_SOUND) - choose from 5 included soundsOnce 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 inspector
The Inspector provides a web interface to test your MCP server in your browser.
No installation required - sounds are bundled automatically:
npx @pinkpixel/notification-mcp
npm install -g @pinkpixel/notification-mcp notification-mcp
npm install @pinkpixel/notification-mcp npx notification-mcp
All sound files are located in the sounds/ directory and are automatically included when you install the package:
sounds/cosmic_chime.mp3 - 🌌 Space-themedsounds/fairy_chime.mp3 - 🧚♀️ Magicalsounds/gentle_chime.mp3 - 🔔 Default (soft)sounds/pleasant_chime.mp3 - 📞 Professionalsounds/retro_chime.mp3 - 🕹️ VintageMCP_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.
Made with ❤️ by Pink Pixel ✨