Skip to main content
Glama
notiferry-mcp

notiferry-mcp

Official
by n2ctech

notiferry-mcp

MIT License MCP Server

Zero-dependency Model Context Protocol (MCP) server, Claude Code plugin (Notification & Stop hooks), and Agent Skill that sends push notifications to your iPhone and Apple Watch via the free ntfy app when long-running AI coding sessions finish or pause for permission.

Works with Claude Code, OpenAI Codex CLI, Cursor, Windsurf, Claude Desktop, Cline, and self-hosted ntfy servers.


Quickstart (60 seconds)

1. Subscribe your iPhone in the free ntfy app

  1. Install the free open-source ntfy app on your iPhone.

  2. Generate a private random topic on your machine and subscribe to it in ntfy:

export NTFY_TOPIC="nf-$(openssl rand -hex 16)"
echo "$NTFY_TOPIC"

(Treat your topic name like a password - anyone with a public ntfy.sh topic string can read or post to it, or point NTFY_SERVER + NTFY_TOKEN at your own HTTPS ntfy server.)

2A. Add as an MCP Server (Claude Code, Cursor, Codex, Windsurf)

Claude Code CLI:

claude mcp add notiferry-mcp \
  -e NTFY_TOPIC="nf-your-random-topic" \
  -- npx -y github:n2ctech/notiferry-mcp

Cursor / Windsurf / Claude Desktop (mcp.json):

{
  "mcpServers": {
    "notiferry-mcp": {
      "command": "npx",
      "args": ["-y", "github:n2ctech/notiferry-mcp"],
      "env": {
        "NTFY_TOPIC": "nf-your-random-topic"
      }
    }
  }
}

2B. Or install as a Claude Code Plugin (automatic Notification + Stop hooks)

Inside Claude Code:

/plugin marketplace add n2ctech/notiferry-mcp
/plugin install notiferry-mcp@n2ctech

With NTFY_TOPIC exported in your shell, the plugin automatically sends a high-priority iPhone alert whenever Claude Code blocks on a tool-permission prompt (Notification hook) or completes a run (Stop hook), without requiring the model to remember to call a tool.


Related MCP server: ntfy-mcp

Included MCP Tools

Tool

Purpose

send_iphone_notification

Send a push alert (title, message, priority, tags, optional HTTPS click_url) when a build, test suite, or task finishes.

notify_agent_waiting

Send a high-priority alert when an agent is blocked waiting for human approval or a decision.

check_macos_notification_setup

Check NTFY_TOPIC, ~/.claude/settings.json hooks, and whether system-wide macOS Notification Center forwarding is active.

Built-in safety guardrails:

  • Zero npm runtime dependencies (uses only Node.js >=18 built-in modules).

  • Enforces HTTPS on NTFY_SERVER and click_url.

  • Blocks accidental transmission of common secret patterns (sk-..., ghp_..., AKIA..., tk_..., PEM private keys).


Free MCP/Hook vs. Full macOS Notification Center Forwarding

notiferry-mcp is free and MIT-licensed, and covers any tool where an MCP client or shell hook runs. If you are on macOS and also want automatic iPhone alerts from every desktop Mac app without per-app hooks, compare the two approaches:

Capability

notiferry-mcp (this repo)

NotiFerry for macOS

Price & license

Free, open source (MIT)

7-day free trial, then EUR 9.99 once (2 Macs)

Claude Code / MCP tools

Yes (MCP tools + hooks.json)

Yes (forwards terminal & desktop banners)

GUI Mac apps (Xcode, Cursor, Codex Desktop, Ghostty, Finder, exports)

Requires per-tool hook or script

Automatic via macOS Notification Center

macOS permission model

None (outbound HTTPS only)

App Sandbox + read-only single usernoted folder (no Full Disk Access)

Privacy modes (Title only / Generic)

Manual prompt discipline

Enforced locally before queuing

Burst folding & stale-alert cutoff

Basic

Folds 5+ queued alerts when >=30s behind; drops alerts >10 min old

If you want the companion macOS menu-bar app (NotiFerry, which I built):

brew install --cask n2ctech/tap/notiferry

Note: when NotiFerry.app is running on your Mac, scripts/claude-ntfy-hook.sh automatically skips duplicate hook sends unless NOTIFERRY_SKIP_HOOK_WHEN_APP_RUNNING=0 is set.


Environment Variables

Variable

Required

Description

NTFY_TOPIC

Yes

Random 1-64 char topic (A-Za-z0-9_-) subscribed in your iPhone ntfy app.

NTFY_SERVER

No

Defaults to https://ntfy.sh. Set to your own HTTPS ntfy server URL if self-hosted.

NTFY_TOKEN

No

Optional Bearer access token (tk_...) for protected or self-hosted ntfy topics.

Development & Tests

npm test

License

MIT - see LICENSE.

Available Tools

3 tools
check_macos_notification_setupB

Inspect whether NTFY_TOPIC, Claude Code Notification hooks, or NotiFerry.app (system-wide macOS Notification Center forwarding) are configured on this machine.

Inputs: no named parameters.

notify_agent_waitingA

Send a high-priority iPhone / Apple Watch alert when the coding agent is blocked waiting for human approval, clarification, or a failing check.

Inputs: question (required), agent, project.

send_iphone_notificationA

Send a push notification to the user's iPhone (and Apple Watch via iOS mirroring) through ntfy when a long build, migration, test suite, or autonomous coding run finishes.

Inputs: title (required), message (required), tags, priority, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 3 tools

    Disambiguation4/5

    All three tools target distinct actions (send routine completion push, send high-priority blocked alert, inspect setup), but the two send tools overlap in mechanism and could be confused for one another without reading the urgency/context distinction. Descriptions do enough to separate them in practice.

    Naming Consistency4/5

    All names use snake_case with a verb-leading pattern (send_, notify_, check_), which is predictable. The verbs and structure lengths vary slightly, but the convention is clearly readable and consistent.

    Tool Count4/5

    Three tools is thin but appropriate for a narrowly scoped notification bridge. Each tool covers a genuinely different scenario without padding.

    Completeness3/5

    The surface covers sending and verifying setup, but there is no way to configure NTFY_TOPIC or register hooks from the tool set, so an agent that fails the setup check hits a dead end. No test-send or notification history/status tools either.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to send push notifications to your phone through ntfy, with built-in security controls to prevent data exfiltration. It exposes a single tool notify_user for notifying when tasks complete or need attention.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables sending push notifications via ntfy with a single tool, allowing Claude agents to send notifications directly without shell access.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides a send_notification MCP tool for push notifications to mobile devices, bypassing Claude Code's suppression of pushes when terminal has focus. Works with multiple providers like ntfy, Pushover, and Telegram.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to send push alerts to your phone via Blipr, useful for notifying when tasks complete, builds break, or approvals are needed.
      5
      253 npm
      MIT