Skip to content
VS Code

ntfy mcp server for VS Code

io.github.cyanheads/ntfy-mcp-server

Send, manage, and replay ntfy push notifications via MCP.

client:VS Code transport:stdio runtime:npm

Install ntfy mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ntfy-servers",
      "description": "NTFY_SERVERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-base-url",
      "description": "NTFY_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-default-topic",
      "description": "NTFY_DEFAULT_TOPIC",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-auth-token",
      "description": "NTFY_AUTH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-auth-username",
      "description": "NTFY_AUTH_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-auth-password",
      "description": "NTFY_AUTH_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-request-timeout-ms",
      "description": "NTFY_REQUEST_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-max-retries",
      "description": "NTFY_MAX_RETRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-block-private-hosts",
      "description": "NTFY_BLOCK_PRIVATE_HOSTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-log-level",
      "description": "MCP_LOG_LEVEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "logs-dir",
      "description": "LOGS_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "otel-enabled",
      "description": "OTEL_ENABLED",
      "password": true
    }
  ],
  "servers": {
    "ntfy-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ntfy-mcp-server"
      ],
      "env": {
        "NTFY_SERVERS": "${input:ntfy-servers}",
        "NTFY_BASE_URL": "${input:ntfy-base-url}",
        "NTFY_DEFAULT_TOPIC": "${input:ntfy-default-topic}",
        "NTFY_AUTH_TOKEN": "${input:ntfy-auth-token}",
        "NTFY_AUTH_USERNAME": "${input:ntfy-auth-username}",
        "NTFY_AUTH_PASSWORD": "${input:ntfy-auth-password}",
        "NTFY_REQUEST_TIMEOUT_MS": "${input:ntfy-request-timeout-ms}",
        "NTFY_MAX_RETRIES": "${input:ntfy-max-retries}",
        "NTFY_BLOCK_PRIVATE_HOSTS": "${input:ntfy-block-private-hosts}",
        "MCP_LOG_LEVEL": "${input:mcp-log-level}",
        "LOGS_DIR": "${input:logs-dir}",
        "OTEL_ENABLED": "${input:otel-enabled}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ntfy mcp server in other clients