---
title: "Deploy kuvasz"
description: "Open-source uptime and SSL monitoring with status pages, API and MCP"
category: "Observability"
url: https://railway.com/deploy/kuvasz
---

# Deploy kuvasz

Open-source uptime and SSL monitoring with status pages, API and MCP

**[Deploy kuvasz on Railway](https://railway.com/template/kuvasz)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/kuvasz/manifest.json

- **Creator:** Paul Zarudnev's Projects
- **Category:** Observability

## Template content

### Postgres

- **Source:** https://github.com/RockinPaul/kuvasz_railway_template

### kuvasz

- **Source:** https://github.com/RockinPaul/kuvasz_railway_template
- **Health check:** /api/v2/health
- **Public domain:** Yes

## Documentation

# Deploy and Host kuvasz on Railway

[kuvasz](https://github.com/kuvasz-uptime/kuvasz) (pronounced "KOO-vos") is an open-source uptime and SSL monitor: HTTP, TCP, ICMP, DNS and push (heartbeat) monitors, SSL certificate expiry checks, public status pages, maintenance windows, incident notes, alerts to Slack, Discord, Telegram, PagerDuty, ntfy and webhooks, a REST API, YAML-as-code and a built-in MCP server for AI assistants. This template deploys the official `kuvaszmonitoring/kuvasz:4.9.0` image with a PostgreSQL database, login enabled and every credential generated. No inputs are needed.

## About Hosting kuvasz

kuvasz is a single JVM service backed by PostgreSQL. On Railway the template runs two services:

- **`kuvasz`**: the web UI, REST API, MCP server and the checkers, behind a public HTTPS domain. Upstream caps the JVM heap at 192 MB (`JAVA_TOOL_OPTIONS`); total memory sits above that and grows with the number of monitors.
- **`Postgres`**: PostgreSQL 18 (Railway's image), reachable only over the private network, with a 5 GB volume. Monitors, check history, status pages and settings live there, so they survive redeploys.

Login is on from the first second. The template generates:

- the admin password (`ADMIN_PASSWORD`, 24 characters, user `admin`);
- a REST API key (`ADMIN_API_KEY`);
- a separate MCP key (`ADMIN_MCP_API_KEY`);
- the JWT signing secret, so web sessions survive restarts.

Anonymous visitors get only the login page, `/api/v2/health`, the status pages you choose to publish, and push-monitor heartbeat URLs (each carries its own secret, so treat those URLs as credentials). The dashboard, the monitor API and MCP need a login or a key.

**First login:** in Railway, open the `kuvasz` service → Variables, copy `ADMIN_PASSWORD`, and sign in at `https://YOUR-DOMAIN` as `admin`.

## Common Use Cases

- Uptime and response-time monitoring for websites, APIs and Railway services, with alerts to chat or on-call tools.
- SSL certificate expiry warnings before customers see a browser error.
- Public or private status pages for your products.
- Heartbeat (push) monitors for cron jobs and background workers.
- Letting an AI assistant read and manage monitors through MCP at `/mcp`.

## Dependencies for kuvasz Hosting

- A Railway account. Both services are included in this template.
- Optional: a Slack, Discord, Telegram, PagerDuty or other webhook for alerts. Email alerts need SMTP, which Railway blocks below the Pro plan.

### Deployment Dependencies

- [kuvasz on GitHub](https://github.com/kuvasz-uptime/kuvasz) (AGPL-3.0)
- [kuvasz documentation](https://kuvasz-uptime.dev)
- [Official Docker image](https://hub.docker.com/r/kuvaszmonitoring/kuvasz)
- [This template's repository](https://github.com/RockinPaul/kuvasz_railway_template)

### Implementation Details

- **`kuvasz`**: built from the template repo's `Dockerfile`, which is `FROM kuvaszmonitoring/kuvasz:4.9.0` plus fixed settings: `ADMIN_USER=admin`, `ENABLE_MCP_SERVER=true`, `TZ=UTC` and the database port, name and user. Port 8080, IPv4 and IPv6. Healthcheck `/api/v2/health` with a 300-second timeout, because database migrations run before the first start completes. Restart policy: always.
- **Database connection:** `DATABASE_HOST` and `DATABASE_PASSWORD` reference the `Postgres` service; port, database and user are the image defaults baked into the `kuvasz` image. The `Postgres` service builds `postgres/Dockerfile`, Railway's PostgreSQL image with its data directory set, so the template has no blank fields.
- **REST API:** send `X-API-KEY: YOUR-ADMIN_API_KEY` or `Authorization: Bearer YOUR-ADMIN_API_KEY`.
- **MCP:** point your client at `https://YOUR-DOMAIN/mcp` with `ADMIN_MCP_API_KEY` as the bearer token. The REST key does not work there.
- **Not applicable on Railway:** Docker container monitoring, which needs the host's Docker socket.
- **Configuration:** any setting from the [configuration reference](https://kuvasz-uptime.dev/setup/configuration/) can be added as a service variable, for example `ENABLE_OIDC` for single sign-on or the retention days.
- **Single sign-on:** `ENABLE_OIDC=true` lets every identity your provider accepts sign in with full rights, and the built-in admin password stops being used. Restrict access at the provider or with `OIDC_ALLOWED_EMAILS` when you turn it on.
- **Upgrading:** the template repo pins the image by tag. Back up the Postgres volume first; kuvasz migrates the schema at start and does not support downgrades.

## Why Deploy kuvasz on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying kuvasz on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/kuvasz
