N

Ntfy MCP Server

by cyanheads · io.github.cyanheads/ntfy-mcp-server

A Model Context Protocol server enabling AI systems to send real-time notifications to phones, desktops, and other devices through the ntfy publish/subscribe service.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-cyanheads-ntfy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "<VALUE>",
        "NTFY_BASE_URL": "https://ntfy.sh",
        "NTFY_DEFAULT_TOPIC": "<VALUE>",
        "NTFY_AUTH_TOKEN": "<VALUE>",
        "NTFY_AUTH_USERNAME": "<VALUE>",
        "NTFY_AUTH_PASSWORD": "<VALUE>",
        "NTFY_REQUEST_TIMEOUT_MS": "15000",
        "NTFY_MAX_RETRIES": "3",
        "NTFY_BLOCK_PRIVATE_HOSTS": "false",
        "NTFY_CLAMP_LIMITS": "true",
        "NTFY_ENABLE_EMOJI_TAGS": "true",
        "MCP_LOG_LEVEL": "info",
        "LOGS_DIR": "./logs",
        "OTEL_ENABLED": "false",
        "NODE_ENV": "development",
        "LOG_LEVEL": "info",
        "NTFY_API_KEY": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000",
        "RATE_LIMIT_MAX_REQUESTS": "100"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
NTFY_SERVERS No JSON 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 match a registered base forward that server's auth. Takes precedence over the single-server NTFY_BASE_URL / NTFY_AUTH_* shorthand.
NTFY_BASE_URL No The ntfy server base URL Default: https://ntfy.sh
NTFY_DEFAULT_TOPIC Yes Your default ntfy topic
NTFY_AUTH_TOKEN No Bearer access token (`tk_…`) for the single-server shorthand. Mutually exclusive with NTFY_AUTH_USERNAME / NTFY_AUTH_PASSWORD.
NTFY_AUTH_USERNAME No Basic-auth username for the single-server shorthand — must be set together with NTFY_AUTH_PASSWORD.
NTFY_AUTH_PASSWORD No Basic-auth password for the single-server shorthand — must be set together with NTFY_AUTH_USERNAME.
NTFY_REQUEST_TIMEOUT_MS No Per-attempt HTTP timeout in milliseconds, covering the response body. Each call is also capped at 50 s across all attempts. Default: 15000
NTFY_MAX_RETRIES No Max retry attempts for transient upstream failures (5xx, network, 429). Default: 3
NTFY_BLOCK_PRIVATE_HOSTS No When 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. Default: false
NTFY_CLAMP_LIMITS No When 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 at the cap instead, so a larger value is rejected. Default: true
NTFY_ENABLE_EMOJI_TAGS No Set 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. Default: true
MCP_LOG_LEVEL No Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info
LOGS_DIR No Directory for file-based logs (Node only; ignored on Workers). Default: ./logs
OTEL_ENABLED No Enable OpenTelemetry instrumentation (spans, metrics, completion logs). Default: false
NODE_ENV No Environment mode (development, production) Default: development
LOG_LEVEL No Logging level (debug, info, warn, error) Default: info
NTFY_API_KEY No Optional API key for reserved topics
RATE_LIMIT_WINDOW_MS No Rate limiting window in milliseconds Default: 60000
RATE_LIMIT_MAX_REQUESTS No Maximum number of requests in rate limit window Default: 100

Similar servers