MCP directory
NM

Ntfy Mcp Server

by github.com/cyanheads · v2.4.2 · updated Nov 18, 2026

Send, manage, and replay ntfy push notifications via MCP.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • NTFY_SERVERS

    JSON array of `{ baseUrl, authToken? | authUsername?+authPassword? }` entries — one per ntfy server. First entry is the default base. A `baseUrl` may not carry `user:password@`; set credentials with the entry's auth fields. Auth is scoped to the entry's `baseUrl`; per-call `base_url` overrides that...

  • NTFY_BASE_URL

    Single-server shorthand — base URL of the ntfy server (no trailing slash, no `user:password@`; 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_MS

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

  • NTFY_MAX_RETRIES

    Max retry attempts for transient upstream failures (5xx, network, 429).

  • NTFY_BLOCK_PRIVATE_HOSTS

    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_LIMITS

    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 enforce a schema maximum...

  • NTFY_ENABLE_EMOJI_TAGS

    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_LEVEL

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

  • LOGS_DIR

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

  • OTEL_ENABLED

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

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • NTFY_SERVERS

    JSON array of `{ baseUrl, authToken? | authUsername?+authPassword? }` entries — one per ntfy server. First entry is the default base. A `baseUrl` may not carry `user:password@`; set credentials with the entry's auth fields. Auth is scoped to the entry's `baseUrl`; per-call `base_url` overrides that...

  • NTFY_BASE_URL

    Single-server shorthand — base URL of the ntfy server (no trailing slash, no `user:password@`; 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_MS

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

  • NTFY_MAX_RETRIES

    Max retry attempts for transient upstream failures (5xx, network, 429).

  • NTFY_BLOCK_PRIVATE_HOSTS

    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_LIMITS

    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 enforce a schema maximum...

  • NTFY_ENABLE_EMOJI_TAGS

    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_SESSION_MODE

    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 'stateless' is refused. 'au...

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    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.

  • MCP_LOG_LEVEL

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

  • LOGS_DIR

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

  • OTEL_ENABLED

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

More from github.com/cyanheads

More MCP servers