NTFY MCP Server
Enables sending and receiving messages through ntfy.sh with real-time subscriptions, supporting push notifications, bidirectional chat workflows, and message management with optional authentication, priorities, tags, and attachments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NTFY MCP Server send me a reminder to call mom tomorrow at 3pm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NTFY MCP Server
MCP server for ntfy.sh notifications, asynchronous agent messaging, and human-in-the-loop workflows.
It provides a simple way for an MCP client to publish messages to an ntfy topic, maintain a live subscription, and wait for replies without building a custom messaging layer.
What It Does
This server is useful when you need:
push notifications from an MCP-connected agent
asynchronous message exchange between a user and an agent
a lightweight human approval or reply loop over
ntfya simple notification channel for long-running workflows
Typical flow:
A user or external system publishes a message to an
ntfytopic.The MCP client reads it through
wait-and-read-inboxorntfy://inbox.The agent responds through
send-ntfy.The user receives the response as an
ntfypush notification.
Related MCP server: Chat Human MCP Server
Features
publish messages with optional title, priority, tags, and attachments
maintain a persistent subscription for near real-time delivery
switch topics without restarting the server
keep recent messages in memory and on disk
support bearer-token and basic-auth protected topics
work with public
ntfy.shout of the box
Installation
Install globally:
npm install -g nfty-mcp-serverOr run through npx:
npx -y --yes nfty-mcp-serverQuick Start
1. Choose a topic
Create or reuse a topic on ntfy.sh. Public topics are easy to set up, so pick a unique name.
2. Configure your MCP client
For Cursor or VS Code, add this to your MCP settings:
{
"mcpServers": {
"nfty": {
"command": "npx",
"args": ["-y", "--yes", "nfty-mcp-server"],
"env": {
"NTFY_TOPIC": "your-topic-name",
"NTFY_BASE_URL": "https://ntfy.sh"
}
}
}
}For Claude Desktop, add the same server entry to claude_desktop_config.json.
Notes:
NTFY_TOPICis required--yeskeepsnpxinstalls in its own cache instead of polluting a project directory
3. Restart the client
Restart Cursor, VS Code, or Claude Desktop so the MCP server is loaded.
Tools
send-ntfy
Publishes a message to the configured topic.
Parameters:
messagerequiredtitleoptionalpriorityoptional,1through5tagsoptionalattachUrloptional
Example:
{
"message": "Task completed successfully.",
"title": "Task Status",
"priority": 4
}set-ntfy-topic
Switches the active topic for the current session.
Parameters:
topicrequiredbaseUrloptional
wait-and-read-inbox
Waits for new messages on the configured topic and returns when at least one arrives.
Parameters:
sinceoptionalsinceTimeoptionalsinceNowoptional, defaulttrue
Important:
many MCP clients impose an approximately 60-second timeout
if you are waiting on human input, the client or calling agent should retry on timeout
Recommended prompt behavior for agent chat flows:
If
wait-and-read-inboxtimes out while waiting for a user response, retry until a new message arrives.
Resources
ntfy://inbox
Returns recent messages for the configured topic as JSON.
Example shape:
{
"topic": "your-topic",
"baseUrl": "https://ntfy.sh",
"messages": [
{
"id": "message-id",
"time": 1234567890,
"title": "Message Title",
"message": "Message body",
"priority": 3,
"tags": ["tag1"],
"topic": "your-topic"
}
]
}Configuration
Data Storage
The server stores logs, cache files, and lock files in a dedicated data directory so it does not clutter the current project.
Default location:
macOS / Linux:
~/.nfty-mcp-server/Windows:
C:\Users\<user>\.nfty-mcp-server\
Files written there include:
nfty-messages.jsonnfty-debug.lognfty-process.lognfty.lock
Environment Variables
Variable | Description | Default |
| Topic to send/receive messages | required |
| ntfy server URL |
|
| Bearer token | optional |
| Basic-auth username | optional |
| Basic-auth password | optional |
| Initial backlog cursor |
|
| Fetch timeout in milliseconds |
|
| Clear logs/cache on startup |
|
| Kill existing server instances |
|
| Data directory override | default platform path |
| Cache file override |
|
CLI Arguments
You can also configure the server directly:
npx nfty-mcp-server --topic my-topic --base-url https://ntfy.sh --auth-token your-tokenSupported arguments:
--topic--base-urlor--server--auth-token--username--password--since--log-incoming
How It Works
The server opens a persistent HTTP subscription to the configured topic.
Incoming messages are received through that live connection.
Recent messages are cached in memory and persisted to disk.
MCP tools expose send, topic-switching, and wait/read behavior on top of that subscription.
Use Cases
asynchronous user-agent messaging
push notifications for long-running tasks
human approval loops
lightweight operator alerts
agent-to-agent coordination through a shared topic
Development
git clone https://github.com/harshwasan/NFTY-MCP.git
cd NFTY-MCP
npm install
npm test
npm run devProject layout:
NFTY-MCP/
src/server.js
tests/server.test.js
package.jsonTroubleshooting
Messages not arriving:
verify
NTFY_TOPICconfirm the topic exists and is reachable
inspect the debug log in the configured data directory
Connection problems:
verify network access to the configured
NTFY_BASE_URLverify authentication settings if the topic is protected
License
MIT
Available Tools
3 toolssend-ntfySend ntfy messageA
Publish a message to the configured ntfy topic (set in mcp.json). Supports optional title, priority (1-5), tags, and attachUrl. After sending, use wait-and-read-inbox to wait for responses.
Inputs: message (required), tags, title, priority, +1 more. Returns: id, time, topic, status, +1 more
set-ntfy-topicSet ntfy topicB
Change the ntfy topic for this MCP server session (no restart needed).
Inputs: topic (required), baseUrl. Returns: topic, baseUrl
wait-and-read-inboxWait for new messagesA
Waits for new messages on the configured topic (set in mcp.json) and returns when a new message arrives. Does not return until at least one new message is received. Uses the existing subscription. Note: The MCP protocol has a ~60s client-side timeout that cannot be controlled from the server, but this tool will wait as long as possible within that limit.
Inputs: since, sinceNow, sinceTime. Returns: messages, newCount, lastCursor
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a distinct purpose: sending messages, changing topic, and waiting for incoming messages. No overlap, clear boundaries.
Tool names mix patterns: 'send-ntfy' and 'set-ntfy-topic' use verb-ntfy, but 'wait-and-read-inbox' uses a different structure with 'and'. Inconsistent naming conventions.
Three tools is appropriate for a focused notification server: send, configure topic, and receive. Each tool is necessary and none are redundant.
Core publish/subscribe functionality is covered with send and wait. The set-topic tool adds flexibility. A minor gap is lack of explicit unsubscribe or message history, but not essential for core use.
Related MCP Connectors
Push notifications for AI agents - send instant iPhone notifications from any MCP client.
Let your AI agents ask you for decisions and get your answers back, from your phone or the web.
Reach your own phone from an AI agent: notifications, approval questions, reminders, ring, files.
Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.
Related MCP Servers
- AlicenseAqualityBmaintenanceA streamlined MCP server that enables AI assistants to send real-time notifications to your devices through the ntfy service, allowing you to receive alerts when tasks complete or important events occur.2190 npm77GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to send messages to human users via chat platforms (currently Discord) and optionally wait for human responses, facilitating human-in-the-loop interactions.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to communicate with humans using notify and ask semantics, supporting session management and blocking or non-blocking messages.MIT
- AlicenseNot gradedqualityDmaintenanceSend push notifications to mobile devices via ntfy.sh from AI assistants.MIT