npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-notifier

v2.2.1

Published

Lightweight Node.js server for sending webhook notifications. Supports Discord, Slack, Teams, Feishu, and custom webhooks. Ideal for AI-assisted developers working across multiple projects.

Readme

MCP Server Notifier

A lightweight notification service that integrates with MCP (Model Context Protocol) to send webhooks when AI agents complete tasks.

简体中文文档

MCP Server Notifier

Authors

Originally created by [email protected].
Currently maintained by zudsniper.

Features

  • Webhook Notifications: Receive alerts when your AI agents complete tasks
  • Multiple Webhook Providers: Support for Discord, Slack, Microsoft Teams, Feishu, Ntfy, and custom webhooks
  • Image Support: Include images in notifications via Imgur
  • Multi-Project Support: Efficiently manage notifications across different projects
  • Easy Integration: Simple setup with AI tools like Cursor
  • Customizable Messages: Send personalized notifications with title, body, and links

Installation

Option 1: Using npm

npm install -g mcp-server-notifier

Option 2: Using Docker

docker pull zudsniper/mcp-server-notifier:latest

# Run with environment variables
docker run -e WEBHOOK_URL=https://your-webhook-url -e WEBHOOK_TYPE=discord zudsniper/mcp-server-notifier

Option 3: From Source

git clone https://github.com/zudsniper/mcp-server-notifier.git
cd mcp-server-notifier
npm install
npm run build

Integration

Cursor Integration

  1. Go to your 'Cursor Settings'
  2. Click MCP in the sidebar, then click + Add new global MCP server
  3. Add mcp-server-notifier.
{
   "mcpServers": {
      "notifier": {
         "command": "npx",
         "args": [
            "-y",
            "mcp-server-notifier"
         ],
         "env": {
            "WEBHOOK_URL": "https://ntfy.sh/webhook-url-example",
            "WEBHOOK_TYPE": "ntfy"
         }
      }
   }
}

Configuration

By default, the notifier supports several webhook types:

  • Discord
  • Slack
  • Microsoft Teams
  • Feishu
  • Ntfy
  • Generic JSON

You can specify the webhook type and URL through environment variables:

env WEBHOOK_URL="https://your-webhook-url" WEBHOOK_TYPE="discord" npx -y mcp-server-notifier

Configuration File

For more advanced configuration, you can create a webhook-config.json file:

{
  "webhook": {
    "type": "discord",
    "url": "https://discord.com/api/webhooks/your-webhook-url",
    "name": "My Notifier"
  },
  "imgur": {
    "clientId": "your-imgur-client-id"
  }
}

See the Configuration Guide for full details and examples.

Usage

  • Ask your AI agent to notify you with a custom message when a task is complete
  • Configure it as a persistent rule in Cursor settings to avoid repeating the setup

For detailed usage instructions, see the Usage Guide.

Available Tools

  1. notify
    • Purpose: Send rich notifications to any configured webhook
    • Input:
      • message - Text content of the notification
      • title (optional) - Title for the notification
      • link (optional) - URL to include in the notification (used as click action for ntfy)
      • imageUrl (optional) - URL of an image to include (legacy, use image or attachments)
      • image (optional) - Local file path of an image to upload to Imgur
      • priority (optional, ntfy only) - Notification priority (1-5)
      • attachments (optional, ntfy only) - Array of URLs to attach
      • template (optional, ntfy only) - Predefined template to use: status, question, progress, problem
      • templateData (optional, ntfy only) - Data to populate the chosen template
      • actions (optional, ntfy only) - Array of action button definitions (view or http)
    • Best for: General notification needs

Note: Template functionality is currently under development and has limited support. Templates work best with ntfy.sh but may not be fully implemented for all webhook providers. See the ROADMAP.md file for future implementation plans.

NTFY Templates

When using ntfy.sh as your webhook provider, you can use the following predefined templates:

  1. Status Template (status)

    • Purpose: Send status updates about systems, processes, or tasks
    • Data Fields:
      • status - Current status (e.g., "online", "completed", "pending")
      • details (optional) - Additional information about the status
      • timestamp (optional) - When this status was recorded
      • component (optional) - The system component this status applies to
  2. Question Template (question)

    • Purpose: Ask questions that require a response
    • Data Fields:
      • question - The main question being asked
      • context (optional) - Background information for the question
      • options (optional) - Possible answer options
      • deadline (optional) - When a response is needed by
  3. Progress Template (progress)

    • Purpose: Track progress of long-running tasks
    • Data Fields:
      • title - Name of the task or process
      • current - Current progress value
      • total - Total value to reach completion
      • percentage (optional) - Explicit percentage value (calculated if not provided)
      • eta (optional) - Estimated time to completion
      • details (optional) - Additional information about the progress
  4. Problem Template (problem)

    • Purpose: Report errors or issues
    • Data Fields:
      • title - Short description of the problem
      • description (optional) - Detailed information about the problem
      • severity (optional) - How severe the problem is (e.g., "critical", "warning")
      • source (optional) - Where the problem originated
      • timestamp (optional) - When the problem occurred
      • solution (optional) - Suggested ways to fix the problem

Example Using Template:

// Send a progress notification
{
  "template": "progress",
  "templateData": {
    "title": "Database Backup",
    "current": 75,
    "total": 100,
    "eta": "2 minutes remaining",
    "details": "Compressing backup files"
  },
  "priority": 3
}

Docker Support

The MCP Server Notifier is available as a Docker image:

docker pull zudsniper/mcp-server-notifier:latest

Run with environment variables:

docker run -e WEBHOOK_URL=https://your-webhook-url -e WEBHOOK_TYPE=discord zudsniper/mcp-server-notifier

Example Configurations

Example webhook configurations are available in the examples directory.

Development

Setting Up Development Environment

  1. Clone the repository:
git clone https://github.com/zudsniper/mcp-server-notifier.git
cd mcp-server-notifier
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Testing Your Changes

  1. Run the MCP server in development mode:
# Install the MCP Inspector if you haven't already
npm install -g @modelcontextprotocol/inspector

# Start the server with the Inspector
npx @modelcontextprotocol/inspector node build/index.js
  1. The Inspector provides a web interface where you can:
    • Send requests to your tools
    • View request/response logs
    • Debug issues with your implementation

Releasing New Versions

To release a new version:

  1. Update version in package.json
  2. Push changes to the release branch
  3. GitHub Actions will automatically:
    • Run tests
    • Build and push Docker images
    • Publish to npm
    • Create a GitHub Release

Required repository secrets for CI/CD:

  • DOCKERHUB_USERNAME - Docker Hub username
  • DOCKERHUB_TOKEN - Docker Hub access token
  • NPM_TOKEN - npm access token

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.