A lightweight MCP server that provides both auditory and visual notifications for Claude Desktop on macOS. This server lets you know when Claude starts processing your request and when it has completed a task.
.aiff
files)shell
git clone https://github.com/charles-adedotun/notifications-mcp-server.git
cd notifications-mcp-server
```shell
# Option 1: Using curl
curl -LsSf https://astral.sh/uv/install.sh | sh
# Option 2: Using Homebrew
brew install uv
```
```shell
# Install the package in development mode
uv pip install -e .
# Or install directly from the repository
uv pip install git+https://github.com/charles-adedotun/notifications-mcp-server.git
# Install visual notification dependencies (recommended)
uv pip install pyobjc-core pyobjc-framework-Cocoa
```
```shell
# Run the test script to verify notifications are working
python test_notification.py
# Run the notification server directly
claude-notifications
```
Edit Claude's configuration to include the notification server:
json
{
"mcpServers": [\
{\
"notify-user": {\
"command": "uv",\
"args": [\
"run",\
"--with",\
"fastmcp",\
"fastmcp",\
"run",\
"/path/to/server.py"\
]\
}\
}\
]
}
Replace /path/to/server.py
with the absolute path to the server.py file on your system.
If the mcpServers
array already exists, just add this new object to it.
Restart Claude Desktop
Test the notifications:
shell
python test_notification.py
This will test all available notification methods and help diagnose any issues.
Once installed, the server automatically connects with Claude Desktop and offers the task_status
notification tool. Claude will call this tool at the start and end of each interaction, producing both audible and visual notifications.
┌─────────────────┐ MCP Protocol ┌─────────────────┐ System Command ┌─────────────┐
│ │ ──────────────────> │ │ ──────────────────> │ macOS Sound │
│ Claude Desktop │ │ Notification │ │ System │
│ Application │ <────────────────── │ MCP Server │ <────────────────── │ │
│ │ │ │ └─────────────┘
│ │ ┌───────────-──┐
│ │ ──────────────────> │ macOS │
│ │ │ Notification │
│ │ <────────────────── │ Center │
└─────────────────┘ └─────────────-┘
The notification server uses multiple methods to deliver visual notifications, with automatic fallbacks:
This ensures that at least one notification method should work on your system.
The Claude Notifications MCP Server is now organized into a modular structure:
notifications/
├── __init__.py # Package initialization with version info
├── core/ # Core functionality
│ ├── __init__.py
│ ├── sound_manager.py # Sound playback management
│ └── notification_manager.py # Visual notification management
├── platform/ # Platform-specific implementations
│ ├── __init__.py
│ └── macos/ # macOS-specific code
│ ├── __init__.py
│ ├── sound.py # macOS sound functions
│ └── notification.py # macOS notification methods
├── utils/ # Utility functions
│ ├── __init__.py
│ ├── config.py # Configuration constants and helpers
│ └── logging.py # Logging setup
└── server.py # MCP server implementation
This modular structure improves maintainability and makes it easier to add support for additional platforms in the future.
To configure an LLM to use this notification server, add the following to your MCP configuration:
{
"notify-user": {
"command": "uv",
"args": [\
"run",\
"--with",\
"fastmcp",\
"fastmcp",\
"run",\
"/path/to/server.py"\
]
}
}
Replace /path/to/server.py
with the absolute path to the server.py file on your system.
This configuration uses the uv
command to run the notification server with the required dependencies.
# For start notifications
export CLAUDE_START_SOUND="/System/Library/Sounds/Ping.aiff"
# For completion notifications
export CLAUDE_COMPLETE_SOUND="/System/Library/Sounds/Purr.aiff"
# After setting environment variables, restart the notification server
# Disable visual notifications
export CLAUDE_VISUAL_NOTIFICATIONS="false"
# Set custom notification icon
export CLAUDE_NOTIFICATION_ICON="/path/to/your/custom/icon.png"
# After setting environment variables, restart the notification server
Add to your shell profile (~/.zshrc, ~/.bashrc, or similar):
# For different sounds
echo 'export CLAUDE_START_SOUND="/System/Library/Sounds/Ping.aiff"' >> ~/.zshrc
echo 'export CLAUDE_COMPLETE_SOUND="/System/Library/Sounds/Purr.aiff"' >> ~/.zshrc
# For visual notifications
echo 'export CLAUDE_VISUAL_NOTIFICATIONS="true"' >> ~/.zshrc
echo 'export CLAUDE_NOTIFICATION_ICON="/path/to/your/icon.png"' >> ~/.zshrc
source ~/.zshrc
macOS provides these built-in sounds in /System/Library/Sounds/
:
Sound Name | Description |
---|---|
Basso.aiff | Deep, serious tone |
Blow.aiff | Wind-like sound |
Bottle.aiff | Bottle pop sound |
Frog.aiff | Frog croak |
Funk.aiff | Funky electronic sound |
Glass.aiff | Glass tapping sound (default) |
Hero.aiff | Triumphant sound |
Morse.aiff | Short morse code beep |
Ping.aiff | Classic ping notification |
Pop.aiff | Short pop sound |
Purr.aiff | Gentle purr sound |
Sosumi.aiff | Apple's classic alert |
Submarine.aiff | Submarine ping |
Tink.aiff | Light tink sound |
You can preview these sounds with:
afplay /System/Library/Sounds/Glass.aiff
You can also use your own .aiff files by providing the full path.
shell
python3 test_notification.py
This comprehensive test will try all notification methods and provide diagnostic information.
Check notification permissions:
Go to System Preferences → Notifications
You can open notification preferences directly with:
shell
open "x-apple.systempreferences:com.apple.preference.notifications"
shell
brew install terminal-notifier
This provides an additional fallback method for notifications.
Check the server logs:
Look for error messages in the terminal where the server is running
Verify your macOS sound settings:
Make sure your system volume is not muted
afplay /System/Library/Sounds/Glass.aiff
Check custom sound paths:
If you specified custom sounds, make sure the paths are correct
.aiff
files for best compatibilityVerify Claude Desktop configuration:
Check that the path to the server.py file is correct in claude_desktop_config.json
Restart everything:
Restart Claude Desktop
Check dependencies:
Make sure all required packages are installed: uv pip list | grep fastmcp
uv pip install -e .
Check the server logs:
Look for error messages in the terminal where the server is running
shell
rm -rf /path/to/notifications-mcp-server
shell
# Remove packages installed with uv
uv pip uninstall notifications-mcp-server fastmcp pyobjc-core pyobjc-framework-Cocoa pync
shell
uv pip install pytest pytest-cov
pytest
This project is licensed under the MIT License.
A Model Context Protocol (MCP) server that provides notifications for Claude Desktop on macOS. It plays configurable system sounds when Claude completes a task, enhancing user experience by eliminating the need for constant visual monitoring.
macos mcp claude notification-system llm-tools