GN

gitmotion/ntfy-me-mcp

Developer tools
72ย stars 0 forks ํ’ˆ์งˆ 90 ํŠธ๋ Œ๋“œ 90

A streamlined Model Context Protocol (MCP) server for sending notifications via ntfy service (public or selfhosted with token support) ๐Ÿ“ฒ

๊ฐœ์š”

A streamlined Model Context Protocol (MCP) server for sending notifications via ntfy service (public or selfhosted with token support) ๐Ÿ“ฒ

README

ntfy-me-mcp

A streamlined Model Context Protocol (MCP) server for sending notifications via ntfy service (public or selfhosted with token support) ๐Ÿ“ฒ

Overview

ntfy-me-mcp provides AI assistants with the ability to send real-time notifications to your devices through the ntfy.sh service (either public or selfhosted with token support). Get notified when your AI completes tasks, encounters errors, or reaches important milestones - all without constant monitoring.

The server includes intelligent features like automatic URL detection for creating view actions and smart markdown formatting detection, making it easier for AI assistants to create rich, interactive notifications without extra configuration.

Features

  • ๐Ÿš€ Quick Setup: Run with npx or docker!
  • ๐Ÿ”” Real-time Notifications: Get updates on your phone/desktop when tasks complete
  • ๐ŸŽจ Rich Notifications: Support for topic, title, priorities, emoji tags, and detailed messages
  • ๐Ÿ” Notification Fetching: Fetch and filter cached messages from your ntfy topics
  • ๐ŸŽฏ Smart Action Links: Automatically detects URLs in messages and creates view actions
  • ๐Ÿ“„ Intelligent Markdown: Auto-detects and enables markdown formatting when present
  • ๐Ÿ”’ Secure: Optional authentication with access tokens
  • ๐Ÿ”‘ Input Masking: Securely store your ntfy token in your vs config!
  • ๐ŸŒ Self-hosted Support: Works with both ntfy.sh and self-hosted ntfy instances

Coming soonโ€ฆ

  • ๐Ÿ“จ Email: Send notifications to email (requires ntfy email server configuration)
  • ๐Ÿ”— Click urls: Ability to customize click urls
  • ๐Ÿ–ผ๏ธ Image urls: Intelligent image url detection to automatically include image urls in messages and notifications
  • ๐Ÿ and more!

Table of Contents

Quickstart - MCP Server Configuration

Choose the config shape that matches your client. All examples below use NTFY_TOPIC as the required variable and keep the optional auth settings commented out until you need them.

Configuration Examples

Installation

If you need to install and run the server directly (alternative to the MCP configuration above):

Setting Up the Notification Receiver

Configuration

Environment Variables

Create a .env file by copying the example: cp .env.example .env โ€” see .env.example for reference.

Variable Required Default Description
NTFY_TOPIC Yes โ€” The ntfy topic to publish notifications to
NTFY_URL No https://ntfy.sh ntfy server URL โ€” change this for self-hosted instances(include port if needed, e.g. https://your-server.com:8443)
NTFY_TOKEN No โ€” Access token for protected topics or private servers

Authentication

Field Value Purpose
env.NTFY_TOKEN "${input:ntfy_token}" References the secure prompt-backed token value
inputs[].id "ntfy_token" Defines the input name used by NTFY_TOKEN
inputs[].type "promptString" Prompts the user for the token at runtime

If the client resolves "${input:ntfy_token}" before launch, the server receives the real token directly. If the placeholder is passed through unchanged, ntfy-me-mcp detects that unresolved input reference and prompts for the token itself at startup.

Since v1.4.0+, the PROTECTED_TOPIC env has been removed. This handling is now auto-detected from the unresolved NTFY_TOKEN input reference instead.

Tools & Usage

ntfy_me: Sending Notifications

Using Natural Language

  • When working with your AI assistant, you can use natural phrases to request notifications:
"ntfyme with a summary of the task when complete"
"Send me a notification when the build is complete"
"Notify me when the task is done"
"Alert me after generating the code"
"Message me when the process finishes"
"Send an alert with high priority"

Example Usage

Message Parameters

ntfy_me_fetch: Polling Notifications

Using Natural Language

AI assistants understand various ways to request message fetching:

"Show me my recent notifications"
"Get messages from the last hour"
"Find notifications with title 'Build Complete'"
"Search for messages with the test_tube tag"
"Show notifications from the updates topic from the last 24hr"
"Check my latest alerts"

Example Usage

Fetch Parameters

Development & Contributions

Contributions are welcome! Please see CONTRIBUTING.md, which include general guidelines, setup steps, etc.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.


Made with โค๏ธ by gitmotion

View this README on GitHub

์„ค์น˜

npx -y ntfy-me-mcp