Ntfy Mcp Server
by github.com/cyanheads · v2.4.2 · updated Nov 18, 2026
Send, manage, and replay ntfy push notifications via MCP.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
NTFY_SERVERSJSON 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_URLSingle-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_TOPICTopic used when a tool call omits `topic`. Treat the topic name as a secret — anyone who knows it can publish or subscribe.
NTFY_AUTH_TOKENBearer access token (`tk_…`) for the single-server shorthand. Mutually exclusive with NTFY_AUTH_USERNAME / NTFY_AUTH_PASSWORD.
NTFY_AUTH_USERNAMEBasic-auth username for the single-server shorthand — must be set together with NTFY_AUTH_PASSWORD.
NTFY_AUTH_PASSWORDBasic-auth password for the single-server shorthand — must be set together with NTFY_AUTH_USERNAME.
NTFY_REQUEST_TIMEOUT_MSPer-attempt HTTP timeout in milliseconds, covering the response body. Each call is also capped at 50 s across all attempts.
NTFY_MAX_RETRIESMax retry attempts for transient upstream failures (5xx, network, 429).
NTFY_BLOCK_PRIVATE_HOSTSWhen 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_LIMITSWhen 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_TAGSSet 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_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
LOGS_DIRDirectory for file-based logs (Node only; ignored on Workers).
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).
npm
npx -y [email protected]Environment variables
MCP_TRANSPORT_TYPESelects the HTTP transport.
NTFY_SERVERSJSON 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_URLSingle-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_TOPICTopic used when a tool call omits `topic`. Treat the topic name as a secret — anyone who knows it can publish or subscribe.
NTFY_AUTH_TOKENBearer access token (`tk_…`) for the single-server shorthand. Mutually exclusive with NTFY_AUTH_USERNAME / NTFY_AUTH_PASSWORD.
NTFY_AUTH_USERNAMEBasic-auth username for the single-server shorthand — must be set together with NTFY_AUTH_PASSWORD.
NTFY_AUTH_PASSWORDBasic-auth password for the single-server shorthand — must be set together with NTFY_AUTH_USERNAME.
NTFY_REQUEST_TIMEOUT_MSPer-attempt HTTP timeout in milliseconds, covering the response body. Each call is also capped at 50 s across all attempts.
NTFY_MAX_RETRIESMax retry attempts for transient upstream failures (5xx, network, 429).
NTFY_BLOCK_PRIVATE_HOSTSWhen 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_LIMITSWhen 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_TAGSSet 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_MODEHTTP 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_HOSTThe hostname for the HTTP server.
MCP_HTTP_PORTThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_REQUEST_STATE_KEYsecretRecommended 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_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
LOGS_DIRDirectory for file-based logs (Node only; ignored on Workers).
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).
More from github.com/cyanheads
Gdelt Mcp Server
github.com/cyanheads
Search and analyze global news coverage and US TV transcripts via the GDELT Project APIs.
Openfoodfacts Mcp Server
github.com/cyanheads
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Pubchem Mcp Server
github.com/cyanheads
Search PubChem compounds, properties, safety data, bioactivity, and cross-references.
Pubmed Mcp Server
github.com/cyanheads
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Canada Parliament Mcp Server
github.com/cyanheads
Track Canadian federal bills, MPs, House votes, and Hansard speeches.
Nasa Power Mcp Server
github.com/cyanheads
Query NASA POWER solar, wind, building, and agroclimatology data.
More MCP servers
Codify Mcp
github.com/cybairfly
Easily create reusable automation tools from casual browser actions using Apify Agent
Database Admin
github.com/cybeleri
Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL
Finance
github.com/cybeleri
Financial data MCP server: stock quotes, crypto prices, portfolio tracking, market analysis
SoleScout
github.com/cyberLdy
Live sneaker & streetwear prices and in-stock sizes across 600+ US stores, by style code.
code-graph
github.com/cyberchronos00
Local dependency graph: callers, entry points and file:line evidence for what a change affects.
OpsecForge
github.com/cyberdroid2077
Local MCP tools that keep secrets out of agent context: redact files, scan commits, verify webhooks.