Uptime Kuma MCP Server
Provides tools for interacting with an Uptime Kuma monitoring instance, enabling management of monitors, status pages, incidents, tags, notifications, API keys, and heartbeat data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Uptime Kuma MCP Server list all my Uptime Kuma monitors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Uptime Kuma MCP Server
Model Context Protocol (MCP) server and CLI tool for Uptime Kuma - Enables AI assistants and bots to interact with Uptime Kuma monitoring system.
š Features
MCP Server: Integration with AI assistants (Claude, OpenClaw bot) via Model Context Protocol
CLI Tool: Powerful command-line interface to manage Uptime Kuma
Socket.IO Client: Real-time connection with Uptime Kuma server
Full API Coverage: Complete support for Uptime Kuma features
Monitor management (HTTP, ping, port, DNS, etc.)
Status page management
Incident management
Tag and notification management
API key management
Related MCP server: uptime-kuma-rest
š¦ Installation
Requirements
Node.js >= 20.0.0
Running Uptime Kuma server
Install from npm (after publishing)
npm install -g uptime-kuma-mcpInstall from source
git clone https://github.com/yourusername/uptime-kuma-mcp.git
cd uptime-kuma-mcp
npm install
npm linkš Usage
1. CLI Tool
Initial configuration
# Configure server URL
uptime-kuma config
# Login
uptime-kuma login -u admin -p your-password
# Or login with token
uptime-kuma login -t your-jwt-tokenMonitor Management
# List all monitors
uptime-kuma monitor list
# List as JSON
uptime-kuma monitor list --json
# Get monitor details
uptime-kuma monitor get 1
# Add HTTP monitor
uptime-kuma monitor add \
-n "My Website" \
-t http \
-u https://example.com \
-i 60
# Add port monitor
uptime-kuma monitor add \
-n "Database" \
-t port \
-h db.example.com \
-p 5432
# Pause monitor
uptime-kuma monitor pause 1
# Resume monitor
uptime-kuma monitor resume 1
# Delete monitor
uptime-kuma monitor delete 1
# View heartbeats (24h)
uptime-kuma monitor heartbeats 1
# View heartbeats (48h)
uptime-kuma monitor heartbeats 1 -p 48Status Page Management
# List status pages
uptime-kuma statuspage list
# Or use alias
uptime-kuma sp list
# Create new status page
uptime-kuma statuspage add \
-t "Service Status" \
-s service-statusTag Management
# List tags
uptime-kuma tag list
# Add tag
uptime-kuma tag add -n production
# Add tag with color
uptime-kuma tag add -n critical -c "#ff0000"API Key Management
# List API keys
uptime-kuma apikey list
# Create new API key
uptime-kuma apikey add -n "API Integration"
# Create API key with expiration
uptime-kuma apikey add -n "Temp Key" -e 2025-12-312. MCP Server
Configure for Claude Desktop
Add to Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"uptime-kuma": {
"command": "node",
"args": ["/path/to/uptime-kuma-mcp/src/index.js"],
"env": {
"UPTIME_KUMA_URL": "http://localhost:3001",
"UPTIME_KUMA_TOKEN": "your-jwt-token"
}
}
}
}Or use username/password
{
"mcpServers": {
"uptime-kuma": {
"command": "node",
"args": ["/path/to/uptime-kuma-mcp/src/index.js"],
"env": {
"UPTIME_KUMA_URL": "http://localhost:3001",
"UPTIME_KUMA_USERNAME": "admin",
"UPTIME_KUMA_PASSWORD": "your-password"
}
}
}
}Using in Claude
After configuration, you can ask Claude:
"List all monitors in Uptime Kuma"
"Create a new HTTP monitor for website https://example.com"
"Create a new status page named 'Service Status'"
"View heartbeats of monitor ID 1 for the past 24h"3. Integration with OpenClaw Bot
OpenClaw bot can use CLI to automate tasks:
import { exec } from 'child_process';
import { promisify } from 'util';
const execAsync = promisify(exec);
// Create monitor automatically
async function createMonitor(name, url) {
const { stdout } = await execAsync(
`uptime-kuma monitor add -n "${name}" -t http -u ${url}`
);
console.log(stdout);
}
// Check monitor status
async function checkMonitors() {
const { stdout } = await execAsync(
'uptime-kuma monitor list --json'
);
const monitors = JSON.parse(stdout);
return monitors;
}
// Usage
await createMonitor('New Website', 'https://newsite.com');
const monitors = await checkMonitors();
console.log(monitors);š§ MCP Tools
MCP server provides the following tools:
Monitor Management
monitor_list- List all monitorsmonitor_get- Get monitor detailsmonitor_add- Add new monitormonitor_edit- Edit monitormonitor_delete- Delete monitormonitor_pause- Pause monitormonitor_resume- Resume monitormonitor_heartbeats- Get heartbeat data
Status Page Management
statuspage_list- List status pagesstatuspage_add- Create new status pagestatuspage_delete- Delete status pageincident_post- Post incident to status page
Tag Management
tag_list- List tagstag_add- Add new tag
Notification Management
notification_list- List notification endpointsnotification_add- Add notification endpointnotification_test- Test notification
API Key Management
apikey_list- List API keysapikey_add- Create new API key
š Monitor Types
Uptime Kuma supports many monitor types:
http/https - HTTP(s) endpoint monitoring
ping - ICMP ping monitoring
port - TCP port monitoring
dns - DNS resolution monitoring
keyword - HTTP(s) with keyword checking
websocket - WebSocket connection monitoring
mqtt - MQTT broker monitoring
postgres - PostgreSQL database monitoring
mysql - MySQL/MariaDB database monitoring
mongodb - MongoDB database monitoring
redis - Redis server monitoring
docker - Docker container monitoring
grpc-keyword - gRPC service monitoring
š Authentication
JWT Token (Recommended)
# Login to get token
uptime-kuma login -u admin -p password
# Token will be saved automatically in config
# Or use existing token
uptime-kuma login -t eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Username/Password
uptime-kuma login -u admin -p your-passwordEnvironment Variables
export UPTIME_KUMA_URL="http://localhost:3001"
export UPTIME_KUMA_TOKEN="your-jwt-token"
# Or
export UPTIME_KUMA_USERNAME="admin"
export UPTIME_KUMA_PASSWORD="your-password"š ļø Development
Project structure
uptime-kuma-mcp/
āāā src/
ā āāā index.js # MCP server main file
ā āāā uptime-kuma-client.js # Socket.IO client
āāā bin/
ā āāā uptime-kuma.js # CLI tool
āāā skills/
ā āāā SKILL.md # Skill definition (markdown)
ā āāā uptime-kuma.json # Skill metadata
āāā package.json
āāā README.mdRun development mode
# MCP server
npm run dev
# CLI tool (after npm link)
uptime-kuma --helpš Best Practices
Use JWT token instead of storing username/password when possible
Set reasonable interval (60-300 seconds) to avoid high server load
Use tags to organize monitors by environment (production, staging, etc.)
Create status page for customers to view service status
Setup notifications to receive alerts when issues occur
Use API keys with expiration date for external integrations
š Troubleshooting
Connection Failed
Error: Failed to connect after maximum attemptsSolution:
Check if server URL is correct (including
http://orhttps://)Ensure Uptime Kuma server is running
Check if firewall/network is blocking connection
Run
uptime-kuma configto reconfigure
Authentication Failed
Error: Login failedSolution:
Check if username/password is correct
If using token, check if token has expired
Run
uptime-kuma loginto login againCheck 2FA if enabled
Monitor Not Working
Solution:
Check if URL/hostname is correct
Check if port is open (for port monitors)
Check if interval is reasonable
View heartbeat history to debug:
uptime-kuma monitor heartbeats <id>
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
š License
MIT License - see LICENSE file for details
š Links
š” Examples
Example 1: Create monitors for multiple websites
#!/bin/bash
websites=(
"https://example.com|Example Site"
"https://api.example.com|API Server"
"https://blog.example.com|Blog"
)
for site in "${websites[@]}"; do
IFS='|' read -r url name <<< "$site"
uptime-kuma monitor add -n "$name" -t http -u "$url" -i 60
doneExample 2: Export all monitors to JSON
uptime-kuma monitor list --json > monitors.jsonExample 3: Create status page with custom configuration
# Create status page
uptime-kuma statuspage add -t "Production Status" -s production
# Then access at:
# http://your-uptime-kuma-server/status/productionExample 4: Script to auto pause/resume monitors
#!/bin/bash
# Pause all monitors
for id in $(uptime-kuma monitor list --json | jq -r '.[].id'); do
uptime-kuma monitor pause $id
done
# Maintenance work here...
sleep 3600
# Resume all monitors
for id in $(uptime-kuma monitor list --json | jq -r '.[].id'); do
uptime-kuma monitor resume $id
donešÆ Use Cases
1. Automated Monitoring Setup
Automatically create monitors for all services in infrastructure:
const services = [
{ name: 'Web Server', type: 'http', url: 'https://web.example.com' },
{ name: 'API Server', type: 'http', url: 'https://api.example.com' },
{ name: 'Database', type: 'port', hostname: 'db.example.com', port: 5432 },
{ name: 'Redis', type: 'port', hostname: 'redis.example.com', port: 6379 },
];
for (const service of services) {
// Create monitor using CLI or MCP
}2. Status Page for Customers
Create separate status page for each customer:
uptime-kuma statuspage add -t "Customer A Status" -s customer-a
uptime-kuma statuspage add -t "Customer B Status" -s customer-b3. Integration with CI/CD
Auto pause monitors during deploy, resume after completion:
# .github/workflows/deploy.yml
- name: Pause monitors
run: |
uptime-kuma monitor pause 1
uptime-kuma monitor pause 2
- name: Deploy application
run: ./deploy.sh
- name: Resume monitors
run: |
uptime-kuma monitor resume 1
uptime-kuma monitor resume 2š Support
If you encounter issues or have questions, please:
Create an issue on GitHub
Contact via email: support@example.com
Join Discord: discord.gg/example
Available Tools
19 toolsapikey_addC
Add a new API key
Inputs: name (required), active, expires.
apikey_listB
Get list of all API keys
Inputs: no named parameters.
incident_postC
Post an incident to a status page
Inputs: slug (required), title (required), content (required), style.
monitor_addC
Add a new monitor
Inputs: name (required), type (required), url, port, +4 more.
monitor_deleteC
Delete a monitor
Inputs: monitorId (required).
monitor_editC
Edit an existing monitor
Inputs: id (required), url, name, type, +2 more.
monitor_getC
Get details of a specific monitor
Inputs: monitorId (required).
monitor_heartbeatsC
Get heartbeat data for a monitor
Inputs: monitorId (required), period.
monitor_listB
Get list of all monitors
Inputs: no named parameters.
monitor_pauseC
Pause a monitor
Inputs: monitorId (required).
monitor_resumeB
Resume a paused monitor
Inputs: monitorId (required).
notification_addC
Add a new notification endpoint
Inputs: name (required), type (required), isDefault, applyExisting.
notification_listB
Get list of all notification endpoints
Inputs: no named parameters.
notification_testC
Test a notification endpoint
Inputs: notification (required).
statuspage_addC
Add a new status page
Inputs: slug (required), title (required).
statuspage_deleteC
Delete a status page
Inputs: slug (required).
statuspage_listB
Get list of all status pages
Inputs: no named parameters.
tag_addC
Add a new tag
Inputs: name (required), color.
tag_listB
Get list of all tags
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 19 tools
Each tool pairs a distinct resource (monitor, tag, statuspage, notification, apikey, incident) with a distinct action, so an agent can unambiguously map intent to a single tool. The only mild adjacency is monitor_pause/monitor_edit, but the descriptions clearly separate state toggling from field editing.
Every tool follows the same resource_action snake_case convention (monitor_list, statuspage_add, apikey_list, incident_post), including a consistent `_list` verb across all collection reads. No mixed casing or stray verb styles anywhere in the set.
Nineteen tools across five resources is slightly heavy but each one maps to a real Uptime Kuma operation rather than filler. The set is just above the ideal 3-15 band, largely because CRUD is duplicated per resource.
Monitors have full lifecycle coverage (list/get/add/edit/delete/pause/resume/heartbeats), but tags, notifications, and API keys can only be created and listed with no edit or delete/revoke. Status pages lack an edit operation and there is no way to list, resolve, or delete incidents, leaving several dead ends.
Maintenance
Related MCP Connectors
Manage uptime monitors, incidents and status pages from any MCP client.
Manage uptime monitors and incidents and search logs, metrics and traces from an AI assistant.
MCP server for Uptrack uptime monitoring. Manage monitors and incidents from AI agents.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables unified management of maintenance windows and incidents across Atlassian Statuspage and Uptime Kuma. It allows AI assistants to schedule maintenance, update service statuses, and list monitors through a single MCP-compatible interface.9MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM clients to manage Uptime Kuma HTTP(S) monitors, groups, tags, and notifications, and to retrieve heartbeats, stats, and incident history through MCP tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query system health, metrics, service reconnaissance, run multi-node patrols, and send incident alerts across distributed infrastructure through MCP tools.ISC
- AlicenseAqualityBmaintenanceUptime monitoring your AI agent can set up: create HTTP, SSL, ping, TCP and DNS monitors checked from multiple regions, run checks on demand, read and acknowledge incidents, manage cron heartbeats, maintenance windows and status page updates.571,340 npmMIT