# ntfy-me-mcp
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
[](https://www.npmjs.com/package/ntfy-me-mcp)
[](https://hub.docker.com/r/gitmotion/ntfy-me-mcp)
[](LICENSE)
[](https://github.com/gitmotion/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](https://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.
### Available via:
| Name | Link / Badge |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Glama.ai |
|
| Smithery.ai | [](https://smithery.ai/server/@gitmotion/ntfy-me-mcp) |
| MseeP.ai |
|
| Archestra.ai | [](https://archestra.ai/mcp-catalog/gitmotion__ntfy-me-mcp) |
## Table of Contents
- [Features](#features)
- [Coming soon...](#coming-soon)
- [Quickstart - MCP Server Configuration](#quickstart---mcp-server-configuration)
- [Configuration Examples](#configuration-examples)
- [VS Code Token Input Example](#vs-code-token-input-example)
- [Installation](#installation)
- [Option 1: Install Globally](#option-1-install-globally)
- [Option 2: Run with npx](#option-2-run-with-npx)
- [Option 3: Install Locally](#option-3-install-locally)
- [Option 4: Build and Use Locally](#option-4-build-and-use-locally-with-node-command)
- [Using locally built server with MCP](#using-locally-built-server-with-mcp)
- [Option 5: MCP Marketplace Installations](#option-5-mcp-marketplace-installations)
- [Configuration](#configuration)
- [Environment Variables](#environment-variables)
- [Usage](#usage)
- [Authentication](#authentication)
- [Setting Up the Notification Receiver](#setting-up-the-notification-receiver)
- [Sending Notifications (ntfy_me tool)](#sending-notifications-ntfy_me-tool)
- [Using Natural Language](#using-natural-language)
- [Message Parameters](#message-parameters)
- [Action Links](#action-links)
- [Emoji Shortcodes](#emoji-shortcodes)
- [Markdown Formatting](#markdown-formatting)
- [Retrieving Messages (ntfy_me_fetch tool)](#retrieving-messages-ntfy_me_fetch-tool)
- [Using Natural Language](#using-natural-language-1)
- [Message Parameters](#message-parameters-1)
- [Examples](#examples)
- [Development](#development)
- [Building from Source](#building-from-source)
- [License](#license)
- [Contributing](#contributing)
## 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!
## 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
| Type | Use when | Example |
|---|---|---|
| NPM / NPX | Recommended for most MCP clients when you want the lightest setup. |
Show config
|
| Local | Use a local checkout when you are developing or changing the server yourself. |
Show config
|
| Docker | Use a containerized setup when Docker is already part of your environment. |
Show config
|
| OpenCode | Use OpenCode's local launcher format when configuring MCP there. |
Show config
|