Skip to content
VS Code

ntfy for VS Code

io.github.ni-c/ntfy-mcp

Publish ntfy notifications, read the message cache, and manage users and topic access

client:VS Code transport:stdio runtime:npm

Install ntfy in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ntfy-url",
      "description": "NTFY_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-token",
      "description": "NTFY_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-username",
      "description": "NTFY_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-password",
      "description": "NTFY_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-topics",
      "description": "NTFY_TOPICS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-read-only",
      "description": "NTFY_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-insecure-tls",
      "description": "NTFY_INSECURE_TLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-allow-tools",
      "description": "NTFY_ALLOW_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ntfy-deny-tools",
      "description": "NTFY_DENY_TOOLS",
      "password": true
    }
  ],
  "servers": {
    "ntfy-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/ntfy-mcp"
      ],
      "env": {
        "NTFY_URL": "${input:ntfy-url}",
        "NTFY_TOKEN": "${input:ntfy-token}",
        "NTFY_USERNAME": "${input:ntfy-username}",
        "NTFY_PASSWORD": "${input:ntfy-password}",
        "NTFY_TOPICS": "${input:ntfy-topics}",
        "NTFY_READ_ONLY": "${input:ntfy-read-only}",
        "NTFY_INSECURE_TLS": "${input:ntfy-insecure-tls}",
        "NTFY_ALLOW_TOOLS": "${input:ntfy-allow-tools}",
        "NTFY_DENY_TOOLS": "${input:ntfy-deny-tools}"
      }
    }
  }
}

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

ntfy in other clients