Skip to content
cyanheads avatar

Ntfy Mcp Server

cyanheads/ntfy-mcp-server

Send, manage, and replay ntfy push notifications, including publish, clear, delete, and history polling.

CCM score
79 of 100
GitHub stars
27
tools
4
auth
Secret needed
transport
STDIO, HTTP
env vars
21
last updated
Nov 28, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Publishes and updates messages with ntfy_publish_message, and clears or deletes them with ntfy_manage_message by sequence_id
  • Reads topic history with ntfy_fetch_messages, filtered by since, priority, tags, title, or message, and includes scheduled messages on request
  • Requires a topic name treated as a secret, and asks the user to confirm email, call, or broadcast targets before sending
  • Designed for alerting, reminders, and reading recent topic history from an AI client

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

ntfy_publish_messageSend or update a push notification on an ntfy topic.

Send or update a push notification on an ntfy topic.

No parameter schema in public metadata yet.

ntfy_manage_messageClear or delete a previously-sent notification by `sequence_id`.

Clear or delete a previously-sent notification by `sequence_id`.

No parameter schema in public metadata yet.

ntfy_fetch_messagesPoll cached messages from one or more topics with optional filters.

Poll cached messages from one or more topics with optional filters.

No parameter schema in public metadata yet.

ntfy_search_emoji_tagsLook up ntfy emoji tag short codes for use in `tags`.

Look up ntfy emoji tag short codes for use in `tags`.

No parameter schema in public metadata yet.

Configuration

NTFY_SERVERS

JSON array of `{ baseUrl, authToken? | authUsername?+authPassword? }` entries — one per ntfy server. First entry is the default base. A `baseUrl` is an absolute `http://` or `https://` URL with no `user:password@` and no `?` or `#`; set credentials with the entry's auth fields. A

NTFY_BASE_URLdefault: https://ntfy.sh

Single-server shorthand — base URL of the ntfy server (an absolute `http://` or `https://` URL, no trailing slash, no `user:password@`, no `?` or `#`; set credentials with the NTFY_AUTH_* variables). Used when NTFY_SERVERS is unset.

NTFY_DEFAULT_TOPIC

Topic used when a tool call omits `topic`. Treat the topic name as a secret — anyone who knows it can publish or subscribe.

NTFY_AUTH_TOKEN

Bearer access token (`tk_…`) for the single-server shorthand. Mutually exclusive with NTFY_AUTH_USERNAME / NTFY_AUTH_PASSWORD.

NTFY_AUTH_USERNAME

Basic-auth username for the single-server shorthand — must be set together with NTFY_AUTH_PASSWORD.

NTFY_AUTH_PASSWORD

Basic-auth password for the single-server shorthand — must be set together with NTFY_AUTH_USERNAME.

NTFY_REQUEST_TIMEOUT_MSdefault: 15000

Per-attempt HTTP timeout in milliseconds, covering the response body. Each call is also capped at 50 s across all attempts.

NTFY_MAX_RETRIESdefault: 3

Max retry attempts for transient upstream failures (5xx, network, 429). A publish retries only a refused connection, an unresolved host, or a rejected TLS certificate among network failures.

NTFY_BLOCK_PRIVATE_HOSTSdefault: false

When true, a per-call `base_url` override must resolve to a public address and its redirects are not followed. Servers registered under NTFY_SERVERS / NTFY_BASE_URL are exempt. Turn it on where callers you do not control can reach the server.

NTFY_CLAMP_LIMITSdefault: true

When true, a `limit` above a tool's per-call cap (100 for ntfy_fetch_messages, 200 for ntfy_search_emoji_tags), or a `wait_seconds` above 40 on ntfy_fetch_messages, is served as the cap with a notice, and the input schema advertises no maximum. Set to false to advertise and enfor

NTFY_ENABLE_EMOJI_TAGSdefault: true

Set to false to disable the ntfy_search_emoji_tags tool: it leaves tools/list, and the server instructions and ntfy_publish_message stop pointing at it.

MCP_LOG_LEVELdefault: info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

LOGS_DIRdefault: ./logs

Directory for file-based logs (Node only; ignored on Workers).

OTEL_ENABLEDdefault: false

Enable OpenTelemetry instrumentation (spans, metrics, completion logs).

MCP_TRANSPORT_TYPEdefault: http

Selects the HTTP transport.

MCP_SESSION_MODEdefault: stateful

HTTP session model: 'auto', 'stateful', or 'stateless'. This server requires 'stateful' over HTTP — the consent prompt on destructive and outbound calls is a multi-round-trip request that a 2025-era HTTP client can only complete over a live session — so an HTTP start with 'statel

MCP_HTTP_HOSTdefault: 127.0.0.1

The hostname for the HTTP server.

MCP_HTTP_PORTdefault: 3010

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATHdefault: /mcp

The endpoint path for the MCP server.

MCP_AUTH_MODEdefault: none

Authentication mode to use: 'none', 'jwt', or 'oauth'.

MCP_REQUEST_STATE_KEYsecret

Recommended for HTTP. Key (>= 32 bytes, the same on every instance) that seals the requestState carrying the consent-record id of a confirmation prompt, bound to the caller for 900 s; a forged, tampered, or expired state is rejected before the handler runs.

Readme

ntfy-mcp-server

Send, manage, and replay ntfy push notifications via MCP. STDIO or Streamable HTTP.

4 Tools • 1 Resource • 1 Skill

Version License Docker MCP SDK npm TypeScript Bun

Details

Repository
github.com/cyanheads/ntfy-mcp-server
Categories
Email & Messaging, Workflow Automation, Monitoring & Observability
Package
ntfy-mcp-server
Transport
STDIO, HTTP
Auth
Required
Registry
MCP registry, active

Questions

Which Email & Messaging MCP server lets an agent send push notifications through ntfy?

The ntfy-mcp-server sits in the Email & Messaging category on Claude Marketplaces and ranks in the top 50 there. Other servers in that category include Agent-Native Dispatch, WhatsApp, MoeMail, Slack and Commonly, while this one focuses on sending, updating, clearing and replaying ntfy push notifications.

What tools does the ntfy MCP server give an agent?

It exposes four tools: ntfy_publish_message sends or updates a notification on a topic, ntfy_manage_message clears or deletes a sent notification by sequence_id, ntfy_fetch_messages polls cached messages from one or more topics, and ntfy_search_emoji_tags looks up emoji short codes for tags. Publishes with email, call or broadcast actions ask the user to confirm before sending.

What environment variables does the ntfy MCP server need?

No variable is strictly required, since NTFY_BASE_URL defaults to the public ntfy service. For a private server you set NTFY_BASE_URL, or NTFY_SERVERS for several servers, plus an NTFY_AUTH_TOKEN or NTFY_AUTH_USERNAME with NTFY_AUTH_PASSWORD, and NTFY_DEFAULT_TOPIC if you want a topic used when a call omits one.

Can I install the ntfy-mcp-server from npm?

Yes, the server is published on npm as ntfy-mcp-server and supports the stdio and streamable-http transports. Its repository is at https://github.com/cyanheads/ntfy-mcp-server, where the README describes setup and the tool reference.

More from cyanheads

All 18

Similar to Ntfy Mcp Server

More Email & Messaging