Rust MCP server and CLI for Gotify push notifications and message management.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Gotify notifications and app, client, and message management over MCP and CLI.
It exposes one MCP tool, gotify, plus the rgotify CLI. Agents can send
notifications, inspect server health, list messages, and manage Gotify apps and
clients through stdio MCP, Streamable HTTP MCP, or direct shell commands.
30-second path: set GOTIFY_URL, then run npx -y @dinglebear/rgotify health --json
-> start loopback HTTP with GOTIFY_MCP_HOST=127.0.0.1 npx -y @dinglebear/rgotify serve
-> call tools/call with {"action":"health"}.
Status: operational RMCP upstream-client server. Write-capable; destructive
delete actions are gated by explicit confirmation. HTTP MCP supports loopback
dev mode, static bearer tokens, and Google OAuth through lab-auth.
Not for: replacing Gotify, storing notifications independently, generic webhook routing, scheduling reminders, multi-tenant isolation, or passing Gotify tokens through MCP tool arguments.
| Surface | This repo |
|---|---|
| Repository | dinglebear-ai/rgotify |
| Rust crate (Cargo package) | gotify-mcp |
| Binary / CLI | rgotify |
| npm package | @dinglebear/rgotify |
| npm binary aliases | gotify-rmcp, rgotify |
| MCP tool | gotify |
| MCP registry name | ai.dinglebear/rgotify |
| Config home | ~/.gotify on hosts, /data in containers |
| Env prefixes | GOTIFY_*, GOTIFY_MCP_*, GOTIFY_RMCP_* for npm launcher controls |
These names intentionally differ. The npm package and registry entry use the
RMCP family name, the Cargo package is gotify-mcp, the git repo is rgotify,
and the shipped binary uses the short Rust CLI name rgotify.
| This repo owns | Gotify owns | Explicitly out of scope |
|---|---|---|
| MCP/CLI projection, request validation, auth policy, response shaping, setup checks, destructive gates. | Notification storage, delivery, Gotify users, token issuance, app/client state, upstream API semantics. | Notification scheduling, independent persistence, arbitrary webhook relay behavior, multi-tenant sandboxing, credential brokerage. |
| Path | Command | Best for | Notes |
|---|---|---|---|
| npm / npx | npx -y @dinglebear/rgotify --help | Local MCP clients and quick trials. | Downloads the matching rgotify binary from GitHub Releases. |
| Release installer | curl -fsSL https://raw.githubusercontent.com/dinglebear-ai/rgotify/main/scripts/install.sh | bash | Host installs without Node. | Installs rgotify for the current Linux host. |
| Docker / Compose | docker compose up -d | Shared HTTP MCP deployments. | Reads .env and exposes container port 40020. |
| Build from source | cargo build --release | Development and audits. | Produces target/release/rgotify. |
| Plugin | claude plugin install plugins/gotify | Claude Code local plugin setup from this checkout. | Ships no hooks β run rgotify setup repair once by hand afterwards. |
Run the stdio MCP server or CLI without a manual binary install:
The npm package downloads rgotify during postinstall. Override download
behavior only when testing packaging:
| Variable | Purpose |
|---|---|
GOTIFY_RMCP_SKIP_DOWNLOAD=1 | Skip postinstall binary download. |
GOTIFY_RMCP_VERSION or GOTIFY_RMCP_BINARY_VERSION | Select the GitHub Release tag. |
GOTIFY_RMCP_REPO | Select the GitHub repo used for release downloads. |
GOTIFY_RMCP_RELEASE_BASE_URL | Select a custom release base URL. |
Minimum supported Rust version: 1.86.
For the safest first call, only GOTIFY_URL is required:
Create tokens in the Gotify web UI before using management or send actions:
Token roles:
| Token | Env var | Used for |
|---|---|---|
| Client token | GOTIFY_CLIENT_TOKEN | Read and management actions such as messages, apps, clients, and current user. |
| App token | GOTIFY_APP_TOKEN | Sending notifications with send. |
In another shell:
Register Gotify through Labby as an HTTP upstream when sharing one long-running server, or run it directly as stdio for local-only use.
Do not put API keys, passwords, OAuth secrets, SSH keys, Gotify client tokens, Gotify app tokens, or upstream bearer tokens in MCP tool arguments. Use env, config files, or the MCP client's secret storage.
| Surface | Status | Entry point | Purpose |
|---|---|---|---|
| MCP stdio | Supported | rgotify mcp, npx -y @dinglebear/rgotify mcp | Local child-process MCP clients. |
| MCP HTTP | Supported | rgotify serve, POST /mcp | Streamable HTTP MCP for local or shared server deployments. |
| CLI | Supported | rgotify <command> | Scriptable parity and debugging. |
| Prompts | Supported | send_notification, check_status | Reusable agent prompts. |
| Resource | Supported | gotify://schema/mcp-tool | JSON schema for the gotify tool. |
| REST API | Not shipped | N/A | Gotify already owns the REST API. |
| Web UI | Not shipped | N/A | Gotify already owns the web UI. |
One MCP tool is exposed: gotify. Pass the required action argument to select
the operation.
| Action | Description | Required params | Optional params |
|---|---|---|---|
health | Gotify server health check. | none | none |
version | Gotify server version. | none | none |
me | Current authenticated user. | none | none |
messages | List messages. | none | app_id, limit, since |
applications | List applications. | none | none |
clients | List clients. | none | none |
status | Return runtime status, config snapshot, and counters. | none | none |
| Action | Description | Required params | Optional params |
|---|---|---|---|
send | Send a push notification. | message | title, priority, extras |
create_application | Create an application. | name | description, default_priority |
update_application | Update an application. | app_id | name, description, default_priority |
create_client | Create a client. | name | none |
Destructive actions require confirm=true in MCP arguments, --confirm on the
CLI, or GOTIFY_ALLOW_DESTRUCTIVE=true in the process environment.
| Action | Description | Required params |
|---|---|---|
delete_message | Delete one message. | id, confirm |
delete_all_messages | Delete all messages. | confirm |
delete_application | Delete an application and its messages. | app_id, confirm |
delete_client | Delete a client. | client_id, confirm |
| Primitive | Name / URI | Purpose |
|---|---|---|
| Tool action | help | Return built-in markdown tool help. |
| Prompt | send_notification | Guide an agent through a notification send. |
| Prompt | check_status | Check health and recent messages. |
| Resource | gotify://schema/mcp-tool | Return the current action-based JSON schema. |
Curated action summaries live here. The current branch source code and
docs/INVENTORY.md are the source of truth for complete parameters until a
generated docs/MCP_SCHEMA.md is added.
The CLI calls the same service methods as the MCP tool.
Hyphenated aliases are accepted for the two-word forms: create-app,
update-app, create-client, delete-message, delete-all, delete-app,
delete-client.
Known parity exception: MCP action=status is MCP-only observability. The CLI
equivalent for operator checks is rgotify doctor --json.
Configuration loads from config.toml when present, then environment variables
override those values. On startup, the binary also loads ~/.gotify/.env on
hosts or /data/.env in containers without overriding already-set variables.
| Variable | Required | Description |
|---|---|---|
GOTIFY_URL | yes | Gotify server base URL, for example https://gotify.example.com. |
GOTIFY_CLIENT_TOKEN | for management | Gotify client token for read and management actions. |
GOTIFY_APP_TOKEN | for send | Gotify app token used only to send notifications. |
| Variable | Default | Description |
|---|---|---|
GOTIFY_ALLOW_DESTRUCTIVE | false | Skip destructive confirmation gates. |
GOTIFY_MCP_HOST | 0.0.0.0 | HTTP MCP bind host. |
GOTIFY_MCP_PORT | 40020 | HTTP MCP bind port. |
GOTIFY_MCP_TOKEN | empty | Static bearer token for HTTP MCP when not in loopback dev mode. |
GOTIFY_MCP_NO_AUTH | false | Disable HTTP MCP auth. Use only on loopback or behind a trusted gateway. |
GOTIFY_MCP_AUTH_MODE | bearer | Set to oauth for Google OAuth through lab-auth. |
GOTIFY_MCP_PUBLIC_URL | empty | Public URL for OAuth metadata and protected-resource discovery. |
GOTIFY_MCP_GOOGLE_CLIENT_ID | empty | Google OAuth client ID. |
GOTIFY_MCP_GOOGLE_CLIENT_SECRET | empty | Google OAuth client secret. |
GOTIFY_MCP_AUTH_ADMIN_EMAIL | empty | Initial/admin OAuth email. |
GOTIFY_MCP_AUTH_SQLITE_PATH | <data>/auth.db | OAuth state database path. |
GOTIFY_MCP_AUTH_KEY_PATH | <data>/auth-jwt.pem | OAuth JWT signing key path. |
GOTIFY_MCP_ALLOWED_HOSTS | empty | Comma-separated Host header allowlist. |
GOTIFY_MCP_ALLOWED_ORIGINS | empty | Comma-separated Origin header allowlist. |
GOTIFY_NOAUTH | false | Escape hatch permitting a non-loopback bind with no auth. See below. |
GOTIFY_MCP_HOME | ~/.gotify or /data | Override the appdata dir used by rgotify setup. |
RUNNING_IN_CONTAINER | unset | Forces the /data appdata path. |
RUST_LOG | info | Rust log filter. Stdio logs must stay off stdout. |
GOTIFY_MCP is also the lab-auth env prefix, so lab-auth reads further
GOTIFY_MCP_* keys beyond those listed here.
The server refuses to start when it would bind a non-loopback host with no
authentication configured. To bind 0.0.0.0, set GOTIFY_MCP_TOKEN, or use
GOTIFY_MCP_AUTH_MODE=oauth, or β only when an upstream gateway genuinely
enforces auth β set GOTIFY_NOAUTH=true.
| Policy | When | Effect |
|---|---|---|
| Loopback development | GOTIFY_MCP_HOST starts with 127. or GOTIFY_MCP_NO_AUTH=true | No HTTP auth layer is mounted. Use for local testing only. |
| Static bearer | GOTIFY_MCP_TOKEN is set and the server is not loopback dev | /mcp requires Authorization: Bearer <token>. |
| OAuth | GOTIFY_MCP_AUTH_MODE=oauth plus Google OAuth settings | /mcp uses lab-auth OAuth and scoped bearer tokens. |
| Stdio | rgotify mcp | The local child-process boundary is the trust boundary. |
MCP scopes are gotify:read and gotify:write. The static bearer token grants
both scopes. OAuth tokens are checked before MCP calls are dispatched.
confirm=true, --confirm, or the explicit
GOTIFY_ALLOW_DESTRUCTIVE=true process override.| Path | Role |
|---|---|
src/app.rs | Business service layer, destructive gate, response shaping. |
src/gotify.rs | Gotify REST client. |
src/mcp/ | RMCP tool, prompts, resource, schema, and auth checks. |
src/cli/ | CLI parser, doctor, setup helpers, and output formatting. |
src/config.rs | Env/config loading and defaults. |
packages/gotify-rmcp/ | npm launcher and release-binary downloader. |
The thin-shim rule is intentional: MCP and CLI parse inputs, call
GotifyService, and return output. Credential handling, destructive gates, and
Gotify API behavior stay outside the MCP and CLI shims.
| Artifact | File(s) | Must align with |
|---|---|---|
| Rust crate/binary | Cargo.toml, Cargo.lock | Git tag, release assets, CLI docs, install scripts. |
| npm launcher | packages/gotify-rmcp/package.json, bin/rgotify.js, lib/platform.js, scripts/install.js | GitHub Release tag and assets named rgotify-x86_64.tar.gz and rgotify-windows-x86_64.tar.gz. |
| GitHub Releases | .github/workflows/*, scripts/install.sh | Package version, binary name, checksums, supported platforms. |
| Docker / Compose | config/Dockerfile, docker-compose*.yml | Exposed port 40020, healthcheck /health, env file contract. |
| MCP registry | server.json | Server identity tv.tootie/gotify-rmcp, env vars, transport URL, package version. |
| Plugin | plugins/gotify | Runtime command, user config, bundled metadata. No hooks are shipped. |
| Docs | README.md, docs/INVENTORY.md, docs/QUICKSTART.md | Current binary name, default port, action list, and env names. |
Release invariant: npm package version, Rust crate version, server.json.version,
GitHub Release tag, release asset names, and README install examples should move
together. README examples must use canonical repo and binary names, not older
aliases.
For live send or management tests, add GOTIFY_CLIENT_TOKEN and
GOTIFY_APP_TOKEN from your Gotify instance.
The container stores app data under /data, normally mounted from
${HOME}/.gotify.
Expose only /mcp and /health. Preserve Streamable HTTP headers, require TLS,
and configure bearer or OAuth auth before exposing the server beyond loopback.
The plugin ships no Claude Code hooks, so nothing runs setup for you. Run it once by hand after installing or updating the plugin:
rgotify setup repair creates the appdata dir and a placeholder .env;
rgotify setup install keeps a terminal-callable copy in ~/.local/bin (repeat
it after /plugin update). rgotify setup check verifies appdata, .env,
binary-on-PATH, and that port 40020 is free. The server itself takes its config
from the plugin's .mcp.json ${user_config.*} block, so these commands
bootstrap the local environment rather than configure the server.
| Symptom | Likely cause | Fix |
|---|---|---|
401 from /mcp | Missing or wrong bearer/OAuth token. | Check GOTIFY_MCP_TOKEN and client headers, or use loopback dev mode locally. |
| CLI health fails | GOTIFY_URL is missing or unreachable. | Export GOTIFY_URL and confirm Gotify is reachable from this host. |
send fails with auth error | Wrong token type. | Use GOTIFY_APP_TOKEN for send and GOTIFY_CLIENT_TOKEN for management. |
| Destructive action is blocked | Confirmation gate is working. | Add confirm=true, --confirm, or a deliberate GOTIFY_ALLOW_DESTRUCTIVE=true. |
| stdio MCP JSON parse errors | Logs went to stdout. | Keep protocol logs off stdout and lower RUST_LOG if needed. |
| npm launcher cannot find binary | Release asset download failed or was skipped. | Reinstall, check GOTIFY_RMCP_VERSION, or build rgotify from source. |
runraid) and Unraid plugins.Start here:
docs/QUICKSTART.md - focused setup flow.docs/INVENTORY.md - component inventory for actions,
CLI commands, env vars, and endpoints.docs/RUST.md - Rust development notes.docs/stack/ARCH.md - stack architecture details.server.json - MCP registry metadata.packages/gotify-rmcp/README.md - npm
package launcher notes.This README is curated. Generated or exhaustive catalogs should be refreshed in their own files and treated as the source of truth for current branch details.
Original Dinglebear-authored portions of this project are licensed under AGPL-3.0-only. Separate commercial licensing is available for organizations that need terms outside the AGPL. Third-party material remains under its original license. See LICENSING.md.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gotify-rmcp)<a href="https://allmcps.com/mcp/gotify-rmcp"><img src="https://allmcps.com/api/badge/gotify-rmcp?style=directory" alt="Gotify RMCP on AllMCPs" /></a>