About
An MCP server for Uptime Kuma
README
MCP server for Uptime Kuma — monitor services, manage monitors, and control maintenance windows through AI assistants like Claude.
Features
- Status overview — total monitor count, up/down/pending/maintenance breakdown
- Monitor listing — all monitors with status, response times, certificate info
- Down detection — quickly find which services are currently down
- Certificate expiry — SSL cert status sorted by urgency (critical/warning/OK)
- Monitor management — create, edit, delete monitors (HTTP, ping, port, DNS, and more)
- Pause/resume — pause and resume individual monitors
- Maintenance windows — create, delete, pause, resume maintenance windows
- Dual auth — API token for reads (Prometheus metrics), username/password for writes (Socket.IO)
Installation
pip install clr-uptime-kuma-mcp
# or
uvx clr-uptime-kuma-mcp
Configuration
Preferred: Configuration file at ~/.config/uptime-kuma/credentials.json (chmod 600):
{
"url": "https://uptime.example.com",
"token": "your-api-token",
"username": "admin",
"password": "your-password"
}
url+token— required for read operations (Prometheus metrics endpoint)username+password— optional, required for write operations (Socket.IO API)
Alternative: Environment variables are also supported:
| Variable | Description | Example |
|---|---|---|
UPTIME_KUMA_URL |
Uptime Kuma URL | https://uptime.example.com |
UPTIME_KUMA_TOKEN |
API key (Prometheus Basic Auth) | uk1_abc123... |
UPTIME_KUMA_USERNAME |
Username for write operations | admin |
UPTIME_KUMA_PASSWORD |
Password for write operations | secretpass |
Optional:
| Variable | Description | Default |
|---|---|---|
KUMA_READ_ONLY |
Run in read-only mode | false |
TRANSPORT |
Transport protocol (stdio or http) |
stdio |
LOG_LEVEL |
Log level | INFO |
Priority: Config file takes priority over environment variables.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"uptime-kuma": {
"command": "uvx",
"args": ["clr-uptime-kuma-mcp"]
}
}
}
Claude Code
Add via CLI:
claude mcp add uptime-kuma -- uvx clr-uptime-kuma-mcp
Or add to your .mcp.json:
{
"uptime-kuma": {
"command": "uvx",
"args": ["clr-uptime-kuma-mcp"]
}
}
VS Code
Add to your VS Code settings or .vscode/mcp.json:
{
"mcp": {
"servers": {
"uptime-kuma": {
"command": "uvx",
"args": ["clr-uptime-kuma-mcp"]
}
}
}
}
Note: Configuration is read from ~/.config/uptime-kuma/credentials.json or environment variables. No need to specify credentials in MCP config files.
HTTP Transport
To run as a standalone HTTP server:
clr-uptime-kuma-mcp --transport http --host 0.0.0.0 --port 8000
Tools
Read Tools
| Tool | Description | Parameters |
|---|---|---|
kuma_status |
Overall status summary (up/down/pending/maintenance counts + down list) | — |
kuma_list_monitors |
All monitors sorted by name with status, response times, cert info | — |
kuma_get_monitor |
Full details for a specific monitor | monitor_id |
kuma_down_monitors |
Only monitors currently down | — |
kuma_cert_expiry |
SSL certificate expiry sorted by urgency | — |
Write Tools (require username/password)
| Tool | Description | Parameters |
|---|---|---|
kuma_add_monitor |
Create a new monitor | name, type, url or hostname, port, interval, keyword |
kuma_edit_monitor |
Edit monitor settings (only provided fields are updated) | monitor_id, optional fields |
kuma_delete_monitor |
Delete a monitor | monitor_id |
kuma_pause_monitor |
Pause a monitor (stop checking) | monitor_id |
kuma_resume_monitor |
Resume a paused monitor | monitor_id |
kuma_list_maintenances |
List all maintenance windows | — |
kuma_add_maintenance |
Create a maintenance window | title, strategy, description, date_range, cron, timezone |
kuma_delete_maintenance |
Delete a maintenance window | maintenance_id |
kuma_pause_maintenance |
Pause a maintenance window | maintenance_id |
kuma_resume_maintenance |
Resume a maintenance window | maintenance_id |
Monitor Types
http, ping, port, dns, keyword, docker, push, mqtt, group, mysql, postgres, redis, mongodb
Maintenance Strategies
manual, single, recurring-interval, recurring-weekday, recurring-day-of-month, cron
Example Usage
Once connected, you can ask your AI assistant things like:
- "Is anything down?"
- "Show all monitors"
- "Any SSL certs expiring soon?"
- "Add an HTTP monitor for https://example.com"
- "Pause monitor 5 for maintenance"
- "Create a maintenance window for tonight"
- "Delete monitor 12"
- "Resume all paused monitors"
Safety
- Read operations use the Prometheus metrics endpoint (GET only, API key auth)
- Write operations use the Socket.IO API (username/password auth)
- Write tools are only available when username/password are configured
- Destructive actions (delete monitor/maintenance) execute immediately — no confirmation
Technical Notes
- Read API: Prometheus
/metricsendpoint with Basic Auth (empty username, API token as password) - Write API: Socket.IO via
uptime-kuma-apilibrary, connects fresh per operation - Auth: Read and write use different auth mechanisms — both can be configured independently
- Lazy writes: Write client is only initialized if username/password are provided
Development
git clone https://github.com/clearminds/clr-uptime-kuma-mcp.git
cd clr-uptime-kuma-mcp
uv sync
uv run clr-uptime-kuma-mcp
License
MIT — see LICENSE for details.
Install Clr Uptime Kuma in Claude Desktop, Claude Code & Cursor
unyly install clr-uptime-kumaInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add clr-uptime-kuma -- uvx clr-uptime-kuma-mcpStep-by-step: how to install Clr Uptime Kuma
FAQ
Is Clr Uptime Kuma MCP free?
Yes, Clr Uptime Kuma MCP is free — one-click install via Unyly at no cost.
Does Clr Uptime Kuma need an API key?
No, Clr Uptime Kuma runs without API keys or environment variables.
Is Clr Uptime Kuma hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Clr Uptime Kuma in Claude Desktop, Claude Code or Cursor?
Open Clr Uptime Kuma on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Clr Uptime Kuma with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
