Gotify MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Gotify MCP
a read-only MCP server for a Gotify notification server, so an AI agent can read the notifications you receive.
Gotify has no read-only token: a client token can read, delete and manage everything of its
user. This server is the boundary instead. It can only send GET requests to three fixed
paths, and its tools return only whitelisted fields, so the application tokens that
GET /application returns never reach the model. There is no tool to send, delete or
manage anything.
It is a single Python file on top of the MCP Python SDK, serving streamable HTTP on /mcp
and running as a non-root user.
run
$ docker run -d --name gotify-mcp -p 8080:8080 \
-e GOTIFY_URL=https://gotify.example.com \
-e GOTIFY_CLIENT_TOKEN=<client token> \
-e MCP_ALLOWED_HOSTS=gotify-mcp.example.com \
visibilityspots/gotify-mcp:latest
$ claude mcp add --transport http gotify https://gotify-mcp.example.com/mcpClient token
Create a dedicated client in the Gotify web UI (Clients, Create client), so you can revoke the MCP's access without touching your other clients. It sees the messages of every application of that user.
The token is sent in the X-Gotify-Key header only, never in a URL, so it does not end up
in proxy access logs. Error messages carry the HTTP status, never the URL, headers or
Gotify's response body.
Authentication
/mcp has no authentication of its own: put it on an internal network or behind a reverse
proxy that restricts access. Anyone who reaches it can read your notifications.
Related MCP server: @pocket-agent/mcp-server
Tools
tool | arguments | returns |
|
| messages newest first: |
|
|
before_idpages back in time: pass the previous result'snext_before_id. Gotify's ownsinceparameter works this way (ids lower than the value), which the name makes explicit.after_idkeeps only messages newer than the given id, e.g. the highest id seen last time. It filters within the fetched page;more_after: truemeans there may be more, so raiselimitor page withbefore_id.Message
extras(click URLs, markdown hints) are dropped, and bodies are cut atGOTIFY_MESSAGE_MAX_CHARS.
Titles and bodies are written by whatever sends you notifications. The server tells the client to treat them as data, never as instructions; tell your agent the same.
Configuration
variable | default | |
| base url of the Gotify server (required) | |
| Gotify client token (required) | |
| comma-separated host names the server answers to, see below | |
|
| listen address |
|
| listen port |
|
| longer message bodies are truncated |
The MCP SDK protects against DNS rebinding and allows only localhost and 127.0.0.1 by
default. Behind a reverse proxy the Host header is the public name, and without
MCP_ALLOWED_HOSTS every request is answered 421 Misdirected Request. A name also
matches with any port. * turns the protection off.
The server runs stateless (stateless_http), so clients keep working after a restart.
build
$ docker build -t visibilityspots/gotify-mcp:latest .buildx
$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
$ docker buildx build -t visibilityspots/gotify-mcp:latest --platform linux/amd64,linux/arm64 --push .dgoss
The tests in goss.yaml run the real entrypoint without a Gotify behind it: they check the
MCP handshake under a proxied Host header, the 421 for any other host and the path guard.
goss_wait.yaml waits until the port listens:
$ dgoss run -e MCP_ALLOWED_HOSTS=gotify-mcp.example.com -e GOTIFY_URL=http://127.0.0.1:1 -e GOTIFY_CLIENT_TOKEN=test visibilityspots/gotify-mcp:dev
...
Count: 12, Failed: 0, Skipped: 0
INFO: Deleting containeract
using act for local testing of the written github actions makes my life and commit history a lot easier;
Stage Job ID Job name Workflow name Workflow file Events
0 update update docker-hub-description docker-hub-description.yml push
0 main main CI main.yml push,pull_request
0 scan scan trivy trivy.yml workflow_dispatch,push,schedulerelease
Images are built and pushed by the shared workflow in
visibilityspots/github-workflows when
a tag is pushed. Pushing to main builds nothing; a pull request only builds and runs dgoss.
License
Distributed under the MIT license
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Read-only Google Search Console and Google Analytics for AI agents.
Read-only directory of AI agent security tools: search, get, compare, list categories.
Read-only access to the My AI Guide directory of AI tools, repos, plugins, news and guides.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Mender IoT platform for device management, deployment monitoring, and fleet analysis through natural language commands. Provides read-only access to device status, deployment logs, releases, and system monitoring capabilities.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables read-only access to Pocket Agent's product information, public persona templates, and app catalog. No authentication required.50 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only access to a Nightscout instance for glucose readings, treatments, and deterministic server-side aggregates, allowing users to discuss their diabetes data with an AI assistant without write permissions.1MIT
- AlicenseNot gradedqualityCmaintenanceGives AI agents read-only access to any QuestDB instance, enabling schema discovery, time-series querying, and monitoring of partitions, WAL state, symbols, and ingestion health through MCP.Apache 2.0