This MCP server allows AI assistants like Claude to send native macOS notifications with tmux integration, enabling clickable notifications that can focus specific tmux sessions, windows, and panes when clicked.
npm install -g macos-notify-mcp
git clone https://github.com/yuki-yano/macos-notify-mcp.git
cd macos-notify-mcp
npm install
npm run build
Use the claude mcp add
command:
claude mcp add macos-notify -s user -- macos-notify-mcp
Then restart Claude Code.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"macos-notify": {
"command": "macos-notify-mcp"
}
}
}
The send_notification
tool sends a macOS notification with the following parameters:
message
(required): Notification messagetitle
: Notification title (default: "Claude Code")sound
: Notification sound (default: "Glass")session
: tmux session namewindow
: tmux window numberpane
: tmux pane numberuseCurrent
: Use current tmux locationThe list_tmux_sessions
tool lists all available tmux sessions.
The get_current_tmux_info
tool returns information about the current tmux session.
# Basic notification
macos-notify-cli -m "Build completed"
# With title
macos-notify-cli -t "Development" -m "Tests passed"
# With tmux integration
macos-notify-cli -m "Task finished" -s my-session -w 1 -p 0
# Use current tmux location
macos-notify-cli -m "Check this pane" --current-tmux
# Detect current terminal emulator
macos-notify-cli --detect-terminal
# List tmux sessions
macos-notify-cli --list-sessions
The tool automatically detects which terminal emulator you're using and uses this information when you click on notifications to focus the correct application.
CURSOR_TRACE_ID
environment variableVSCODE_IPC_HOOK_CLI
or VSCODE_REMOTE
environment variablesALACRITTY_WINDOW_ID
or ALACRITTY_SOCKET
environment variablesTERM_PROGRAM=iTerm.app
TERM_PROGRAM=Apple_Terminal
When running inside tmux, the tool attempts to detect which terminal emulator the active tmux client is using through a series of methods:
macos-notify-mcp -m "test"
to verifymacos-notify-mcp --list-sessions
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "macos-notify" '{"command":"macos-notify-mcp"}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"macos-notify": {
"command": "macos-notify-mcp"
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"macos-notify": {
"command": "macos-notify-mcp"
}
}
}
3. Restart Claude Desktop for the changes to take effect