
mcp notifier
一个基于Model Context Protocol的桌面通知工具,支持多平台。
Repository Info
About This Server
一个基于Model Context Protocol的桌面通知工具,支持多平台。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Notifier
A Model Context Protocol (MCP) server that provides desktop notification capabilities using node-notifier.
Features
- Simple notification tool
- Advanced notification tool with additional options
- Support for different notification types (info, success, warning, error)
- Customizable notification settings
Platform Support
This MCP server uses node-notifier and works across multiple platforms:
- macOS: Uses macOS Notification Center
- Windows: Uses Windows Toast Notifications (Windows 8+) or taskbar balloons (< Windows 8)
- Linux: Uses notify-send command for Gnome/Ubuntu notifications
For more details on platform-specific behavior, visit the node-notifier documentation.
Usage Options
You can use MCP Notifier in two ways:
Option 1: Run Directly with npx
The simplest way to use MCP Notifier is with npx:
# Run directly with npx
npx @uehaj/mcp-notifier
This will download and execute the package with a single command.
Option 2: Clone and Build from Source
# Clone repository
git clone https://github.com/uehaj/mcp-notifier.git
cd mcp-notifier
# Install dependencies
npm install
# Build the project
npm run build
# Run the server
node build/index.js
Integration with Claude Desktop
-
Edit your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Choose one of the following configuration methods:
For npx method (recommended):
{
"mcpServers": {
"mcp-notifier": {
"command": "npx",
"args": [
"@uehaj/mcp-notifier"
]
}
}
}
For local git clone method:
{
"mcpServers": {
"mcp-notifier": {
"command": "node",
"args": [
"/absolute/path/to/cloned/mcp-notifier/build/index.js"
]
}
}
}
- Restart Claude Desktop
Smithery Integration
This MCP server is available on Smithery. Since it requires desktop access to function properly, it must be installed locally rather than used as a hosted service.
Run via Smithery CLI:
# Run using Smithery CLI
npx @smithery/cli run @uehaj/mcp-notifier
Manual setup from repository:
Follow the "Clone and Build from Source" instructions above.
Available Tools
notify
Basic notification tool with the following parameters:
title: The notification title (required)message: The notification message (required)icon: Optional path to an icon filesound: Whether to play a sound (optional boolean)wait: Whether to wait for the notification to close (optional boolean)
notify-advanced
Advanced notification tool with more options:
title: The notification title (required)message: The notification message (required)type: Notification type - "info", "success", "warning", or "error" (optional)timeout: Auto-close timeout in milliseconds (optional)closeLabel: Text for close button (macOS only, optional)actions: Array of action button labels (macOS only, optional)
Testing
Run tests:
# For npx method
npx @modelcontextprotocol/inspector npx @uehaj/mcp-notifier
# For git clone method
cd mcp-notifier
npx @modelcontextprotocol/inspector node build/index.js
Development
Publishing to npm
The package includes several npm scripts to help with publishing:
# Publish the current version
npm run release
# Increment patch version (1.0.0 -> 1.0.1) and publish
npm run release:patch
# Increment minor version (1.0.0 -> 1.1.0) and publish
npm run release:minor
# Increment major version (1.0.0 -> 2.0.0) and publish
npm run release:major
These commands will:
- Automatically run the build process
- Update the version number as needed
- Publish the package to npm with public access
You need to be logged in to npm (npm login) before running these commands.
Requirements
- Node.js 18 or higher
- npm 6 or higher
- Desktop environment (Windows, macOS, or Linux)
- Access permissions to notification system
License
MIT
Quick Start
Clone the repository
git clone https://github.com/uehaj/mcp-notifierInstall dependencies
cd mcp-notifier
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.