ntfy-mcp
MCP server for sending notifications to ntfy.sh or self-hosted ntfy instances.
README
ntfy-mcp
Standalone MCP server for sending notifications to ntfy.sh or any self-hosted ntfy instance.
This server is reusable across MCP clients. It exposes tools for sending notifications, while keeping the ntfy URL and topic locked at server startup so agents cannot override them per call.
Features
stdioMCP server for broad client compatibility- locked
ntfybase URL and topic - startup config via flags or environment variables
- bearer token or basic auth support
ntfy_publishtool for general notificationsntfy_pingtool for simple "finished working" notifications
Install
Local development
npm install
npm run build
Published CLI
After publishing, clients can run the server directly with npx:
npx -y ntfy-mcp --ntfy-url https://ntfy.sh --ntfy-topic my-topic
Smoke test
You can run a local MCP-level smoke test after building:
node scripts/smoke-test.mjs dist/index.js \
--ntfy-url https://ntfy.sh \
--ntfy-topic my-test-topic
Configuration
Flags take priority over environment variables.
Flags
node dist/index.js \
--ntfy-url https://ntfy.sh \
--ntfy-topic my-topic \
--ntfy-token tk_your_token
Environment variables
export NTFY_URL="https://ntfy.sh"
export NTFY_TOPIC="my-topic"
export NTFY_TOKEN="tk_your_token"
node dist/index.js
Supported variables:
NTFY_URLNTFY_TOPICNTFY_TOKENNTFY_USERNAMENTFY_PASSWORD
If both token auth and basic auth are configured, token auth wins.
Tool reference
ntfy_publish
Sends a notification to the configured topic.
Input:
{
"message": "Deployment complete",
"title": "Deploy",
"priority": "high",
"tags": ["rocket", "white_check_mark"],
"markdown": false,
"click": "https://example.com/deploys/123",
"icon": "https://example.com/icon.png",
"delay": "10m"
}
ntfy_ping
Convenience tool for simple pings.
Input:
{
"message": "Agent finished working.",
"title": "Agent finished",
"priority": "default",
"tags": ["robot_face", "white_check_mark"]
}
npm publish
This package is set up to publish as a public npm CLI.
npm login
npm publish
Quick checks before publishing:
npm run build
npm pack --dry-run
skills.sh skill
This repository also contains a reusable skill in the skills/ directory:
skills/ntfy-after-task/SKILL.md
After pushing the repo, it can be installed through skills.sh with:
npx skills add Edqe14/ntfy-mcp@ntfy-after-task
OpenCode
Register the server in opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ntfy": {
"type": "local",
"command": [
"npx",
"-y",
"ntfy-mcp",
"--ntfy-url",
"https://ntfy.sh",
"--ntfy-topic",
"my-topic"
]
}
}
}
This only makes the tool available. To send a ping after the agent finishes working, OpenCode still needs a plugin, hook, or workflow that calls ntfy_ping when the session becomes idle or reaches your chosen completion event.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ntfy": {
"command": "npx",
"args": [
"-y",
"ntfy-mcp",
"--ntfy-url",
"https://ntfy.sh",
"--ntfy-topic",
"my-topic"
]
}
}
}
Cursor
Add to .cursor/mcp.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"ntfy": {
"command": "npx",
"args": [
"-y",
"ntfy-mcp",
"--ntfy-url",
"https://ntfy.sh",
"--ntfy-topic",
"my-topic"
]
}
}
}
Notes
- The server publishes with HTTP
POSTtohttps://<ntfy-host>/<topic>. - ntfy URL and topic are intentionally locked at startup.
- Per-call overrides for URL or topic are not supported.
- Use
console.errorfor logs because stdout is reserved for MCP protocol traffic.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.