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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ntfy-mcp

v0.1.0

Published

Standalone MCP server for sending ntfy.sh notifications

Readme

ntfy-mcp

Standalone MCP server for sending notifications to ntfy.sh or any self-hosted ntfy instance.

This server is reusable across MCP clients. It exposes tools for sending notifications, while keeping the ntfy URL and topic locked at server startup so agents cannot override them per call.

Features

  • stdio MCP server for broad client compatibility
  • locked ntfy base URL and topic
  • startup config via flags or environment variables
  • bearer token or basic auth support
  • ntfy_publish tool for general notifications
  • ntfy_ping tool for simple "finished working" notifications

Install

Local development

npm install
npm run build

Published CLI

After publishing, clients can run the server directly with npx:

npx -y ntfy-mcp --ntfy-url https://ntfy.sh --ntfy-topic my-topic

Smoke test

You can run a local MCP-level smoke test after building:

node scripts/smoke-test.mjs dist/index.js \
  --ntfy-url https://ntfy.sh \
  --ntfy-topic my-test-topic

Configuration

Flags take priority over environment variables.

Flags

node dist/index.js \
  --ntfy-url https://ntfy.sh \
  --ntfy-topic my-topic \
  --ntfy-token tk_your_token

Environment variables

export NTFY_URL="https://ntfy.sh"
export NTFY_TOPIC="my-topic"
export NTFY_TOKEN="tk_your_token"
node dist/index.js

Supported variables:

  • NTFY_URL
  • NTFY_TOPIC
  • NTFY_TOKEN
  • NTFY_USERNAME
  • NTFY_PASSWORD

If both token auth and basic auth are configured, token auth wins.

Tool reference

ntfy_publish

Sends a notification to the configured topic.

Input:

{
  "message": "Deployment complete",
  "title": "Deploy",
  "priority": "high",
  "tags": ["rocket", "white_check_mark"],
  "markdown": false,
  "click": "https://example.com/deploys/123",
  "icon": "https://example.com/icon.png",
  "delay": "10m"
}

ntfy_ping

Convenience tool for simple pings.

Input:

{
  "message": "Agent finished working.",
  "title": "Agent finished",
  "priority": "default",
  "tags": ["robot_face", "white_check_mark"]
}

npm publish

This package is set up to publish as a public npm CLI.

npm login
npm publish

Quick checks before publishing:

npm run build
npm pack --dry-run

OpenCode

Register the server in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "ntfy": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "ntfy-mcp",
        "--ntfy-url",
        "https://ntfy.sh",
        "--ntfy-topic",
        "my-topic"
      ]
    }
  }
}

This only makes the tool available. To send a ping after the agent finishes working, OpenCode still needs a plugin, hook, or workflow that calls ntfy_ping when the session becomes idle or reaches your chosen completion event.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ntfy": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp",
        "--ntfy-url",
        "https://ntfy.sh",
        "--ntfy-topic",
        "my-topic"
      ]
    }
  }
}

Cursor

Add to .cursor/mcp.json or ~/.cursor/mcp.json:

{
  "mcpServers": {
    "ntfy": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp",
        "--ntfy-url",
        "https://ntfy.sh",
        "--ntfy-topic",
        "my-topic"
      ]
    }
  }
}

Notes

  • The server publishes with HTTP POST to https://<ntfy-host>/<topic>.
  • ntfy URL and topic are intentionally locked at startup.
  • Per-call overrides for URL or topic are not supported.
  • Use console.error for logs because stdout is reserved for MCP protocol traffic.