Back to Browse

Uptime Kuma MCP Server

Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Manage your Uptime Kuma 2 instance from an LLM: monitors, status pages, notifications, maintenance

About

Manage your Uptime Kuma 2 instance from an LLM: monitors, status pages, notifications, maintenance

Security Report

5.2
Moderate5.2Moderate Risk

The mcp-uptime-kuma server is a legitimate Uptime Kuma management tool that authenticates via username/password, JWT, or optional bearer token for HTTP transport, and reads credentials from environment variables. The main concerns are that the HTTP transport is unauthenticated unless MCP_AUTH_TOKEN is set and ALLOWED_ORIGIN defaults to '*', and that read tools can expose secrets when UPTIME_KUMA_INCLUDE_SECRETS is enabled; these are warned about at startup and are reasonable for its purpose. Permissions (network to the configured Uptime Kuma instance, env vars, optional HTTP listener) match the stated purpose, and no exfiltration or malicious patterns were observed in the provided code. Supply chain analysis found 6 known vulnerabilities in dependencies (0 critical, 4 high severity). Package verification found 1 issue.

6 files analyzed · 11 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

system_info

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

The URL of your Uptime Kuma instanceOptional

Environment variable: UPTIME_KUMA_URL

Your Uptime Kuma username (not required if using JWT token authentication or if authentication is disabled)Optional

Environment variable: UPTIME_KUMA_USERNAME

Your Uptime Kuma password (not required if using JWT token authentication or if authentication is disabled)Required

Environment variable: UPTIME_KUMA_PASSWORD

Your 2FA token (only required if two-factor authentication is enabled on your account)Required

Environment variable: UPTIME_KUMA_2FA_TOKEN

Your JWT token for authentication (takes precedence over username/password if provided)Required

Environment variable: UPTIME_KUMA_JWT_TOKEN

JSON object of extra HTTP headers sent on every request to Uptime Kuma, for reaching it through an authenticating proxy such as Cloudflare Access (e.g. {"CF-Access-Client-Id":"...","CF-Access-Client-Secret":"..."})Required

Environment variable: UPTIME_KUMA_HEADERS

Set to true to return credentials (passwords, tokens, auth headers) unredacted in tool output; by default they read "***"Optional

Environment variable: UPTIME_KUMA_INCLUDE_SECRETS

Set to true to expose only the tools that report, and none that create, change, pause or deleteOptional

Environment variable: UPTIME_KUMA_READ_ONLY

Comma-separated tool sets to register (monitors, heartbeats, notifications, tags, maintenance, status-pages, docker-hosts, settings); unset registers allOptional

Environment variable: UPTIME_KUMA_TOOLSETS

Set to true to start with the monitors tools and let the assistant load the other tool sets when it needs them; the client must refresh its tool list on notifications/tools/list_changedOptional

Environment variable: UPTIME_KUMA_DYNAMIC_TOOLSETS

Shared secret clients must send as "Authorization: Bearer <token>"; requests without it are rejectedRequired

Environment variable: MCP_AUTH_TOKEN

Port the HTTP server listens onOptional

Environment variable: PORT

Address to bind. Default 0.0.0.0; use 127.0.0.1 to accept local connections onlyOptional

Environment variable: HOST

Comma-separated origins allowed to call /mcp. Default * (no Origin validation)Optional

Environment variable: ALLOWED_ORIGIN

Requests allowed per client IP every 15 minutes. 0 turns the limit offOptional

Environment variable: RATE_LIMIT_MAX

Trust reverse-proxy X-Forwarded-For headers for rate limiting: a hop count (1), true/false, or an IP/subnet list. Unset = no trustOptional

Environment variable: TRUST_PROXY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "mcp-uptime-kuma": {
      "command": "npx",
      "args": [
        "-y",
        "@davidfuchs/mcp-uptime-kuma@0.17.0"
      ],
      "env": {
        "HOST": "your-host-here",
        "PORT": "your-port-here",
        "TRUST_PROXY": "your-trust-proxy-here",
        "ALLOWED_ORIGIN": "your-allowed-origin-here",
        "MCP_AUTH_TOKEN": "your-mcp-auth-token-here",
        "RATE_LIMIT_MAX": "your-rate-limit-max-here",
        "UPTIME_KUMA_URL": "your-uptime-kuma-url-here",
        "UPTIME_KUMA_HEADERS": "your-uptime-kuma-headers-here",
        "UPTIME_KUMA_PASSWORD": "your-uptime-kuma-password-here",
        "UPTIME_KUMA_TOOLSETS": "your-uptime-kuma-toolsets-here",
        "UPTIME_KUMA_USERNAME": "your-uptime-kuma-username-here",
        "UPTIME_KUMA_2FA_TOKEN": "your-uptime-kuma-2fa-token-here",
        "UPTIME_KUMA_JWT_TOKEN": "your-uptime-kuma-jwt-token-here",
        "UPTIME_KUMA_READ_ONLY": "your-uptime-kuma-read-only-here",
        "UPTIME_KUMA_INCLUDE_SECRETS": "your-uptime-kuma-include-secrets-here",
        "UPTIME_KUMA_DYNAMIC_TOOLSETS": "your-uptime-kuma-dynamic-toolsets-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

mcp-uptime-kuma

A Model Context Protocol (MCP) server for Uptime Kuma version 2. It supports both the stdio and streamable HTTP transports.

npm version npm downloads Docker pulls Release build License: MIT

Contents: What You Can Ask · Features · Setup · Available Tools · Configuration · Authentication · Read-Only Mode · Tool Sets · Securing HTTP · Credential Redaction · Troubleshooting

What You Can Ask

Once it's connected, you manage Uptime Kuma by asking your AI assistant in plain language:

  • "What's down right now, and since when?"
  • "Which monitors have been flapping this week?"
  • "Add an HTTP monitor for https://example.com/health that checks every 60 seconds and alerts the Discord channel."
  • "Put the NAS monitors in maintenance tonight from 10 to 11pm."
  • "Build a public status page with a group for each of my web services."
  • "Pause everything tagged staging."

Features

  • Manage everything, not just read it. 67 tools cover monitors of any type, notification channels, tags, maintenance windows, status pages and their incidents, proxies, remote browsers, API keys, Docker hosts, server settings and the database. See Available Tools.
  • Live data. The server keeps a Socket.IO connection open to Uptime Kuma, so status and heartbeats are current without polling.
  • Easy on context. Tools return summaries by default and full detail only when asked. The roughly 85 type-specific monitor fields are looked up when needed instead of being loaded into every conversation.
  • Credentials stay out of transcripts. Read tools return *** for passwords, tokens and API keys, and if the assistant sends *** back, the stored value is left alone. See Credential Redaction.
  • Read-only mode. One setting removes every tool that can create, change or delete anything. See Read-Only Mode.
  • Load only what you use. Pick the tool sets you need (monitors, maintenance, …) to keep the tool list short. See Choosing Tool Sets.
  • Annotated tools. Every tool declares whether it only reads data and whether it can delete or overwrite anything, so your client can run reads automatically and ask you before the rest.
  • Run it locally or share it. Use stdio through npx, or streamable HTTP in Docker with bearer-token auth, Origin checks and rate limiting.

Example Conversation

MCP server answering questions about Uptime Kuma monitors A conversation in LibreChat, with mcp-uptime-kuma providing live information from Uptime Kuma.

Setup

Setup takes two steps: pick how the server runs, then point your AI client at it.

1. Choose how to run it

Local (stdio)Shared server (Docker, streamable HTTP)
How it runsYour AI client starts it on your machine with npx and talks to it over stdin/stdoutOne long-running container, usually next to Uptime Kuma, that clients reach at http://<host>:3000/mcp
NeedsNode.js 22+ on each machine that uses itDocker on one host
Where Uptime Kuma credentials are storedIn each client's configOnly in the container
Best forOne person, one or two machines. The quickest way to try it.Several machines or people, a homelab, or web clients such as claude.ai

If you're not sure, start with local. Every client below supports it, and you can switch later.

Either way you need:

  • Uptime Kuma 2.0 or later. The server uses Uptime Kuma 2's Socket.IO API, so 1.x isn't supported.
  • Your Uptime Kuma URL and a way to log in to it. A username and password will do. If you use 2FA, use a JWT instead, and if authentication is turned off, you don't need anything. See Authentication Methods.

Trying it out for the first time? Add UPTIME_KUMA_READ_ONLY=true to the environment in any of the examples below. The assistant will be able to see everything but won't be able to change anything. Remove it once you're comfortable. See Read-Only Mode.

2. Start the shared server (Docker only)

Skip this step if you chose local.

Generate a secret for clients to send as a bearer token:

openssl rand -base64 32

Then start the container:

docker run -d \
  --name mcp-uptime-kuma \
  --restart unless-stopped \
  -p 3000:3000 \
  -e UPTIME_KUMA_URL=http://your-uptime-kuma-instance:3001 \
  -e UPTIME_KUMA_USERNAME=your_username \
  -e UPTIME_KUMA_PASSWORD=your_password \
  -e MCP_AUTH_TOKEN=your_generated_secret \
  davidfuchs/mcp-uptime-kuma:latest \
  -t streamable-http

Prefer Compose? Download the provided docker-compose.yml, fill in the same variables, and run docker compose up -d.

To check that it's running, use curl http://your-docker-host:3000/health.

Don't skip MCP_AUTH_TOKEN. Without it, anyone who can reach port 3000 gets full read/write control of your Uptime Kuma instance. Plain http:// also sends the token unencrypted, so put the server behind a TLS reverse proxy before it leaves your LAN. See Securing the HTTP Endpoint.

In the client examples below, UPTIME_KUMA_MCP_TOKEN is an environment variable, set on the machine running the client, that holds the same value as MCP_AUTH_TOKEN. For clients that can't read environment variables, the examples put the token in the config directly.

3. Connect your client

Jump to your client:

The server is also listed in the official MCP Registry as io.github.DavidFuchs/mcp-uptime-kuma. Clients and directories that read the registry can find it and show its settings for you to fill in.

Every local example runs @davidfuchs/mcp-uptime-kuma@latest. Keep the @latest suffix. Without it, npx keeps using whichever version it cached the first time it ran, and never picks up new releases.

Once you're connected, ask something like "How are my monitors doing?" to check that it's working. If it isn't, see Troubleshooting.

Claude Code

Local:

claude mcp add --scope user \
  --env UPTIME_KUMA_URL=http://your-uptime-kuma-instance:3001 \
  --env UPTIME_KUMA_USERNAME=your_username \
  --env UPTIME_KUMA_PASSWORD=your_password \
  --transport stdio uptime-kuma \
  -- npx -y @davidfuchs/mcp-uptime-kuma@latest

Shared server:

claude mcp add --scope user --transport http uptime-kuma \
  http://your-docker-host:3000/mcp \
  --header "Authorization: Bearer your_generated_secret"

--scope user makes the server available in every project. Leave it off to add the server to the current project only, or use --scope project to write it to a .mcp.json you can commit. A committed file should reference the token as "Bearer ${UPTIME_KUMA_MCP_TOKEN}" rather than contain it. Run /mcp inside Claude Code to check the connection.

Claude Desktop and claude.ai

Local (Claude Desktop only): go to Settings → Developer → Edit Config to open claude_desktop_config.json, add the server, then restart Claude Desktop:

{
  "mcpServers": {
    "uptime-kuma": {
      "command": "npx",
      "args": ["-y", "@davidfuchs/mcp-uptime-kuma@latest"],
      "env": {
        "UPTIME_KUMA_URL": "http://your-uptime-kuma-instance:3001",
        "UPTIME_KUMA_USERNAME": "your_username",
        "UPTIME_KUMA_PASSWORD": "your_password"
      }
    }
  }
}

Shared server, reachable from the internet (claude.ai, Claude Desktop, mobile): go to Customize → Connectors, click + Add, then Add custom connector. Give it a name and enter https://your-public-host/mcp. Under Authentication choose No sign in, and under Request headers add Authorization: Bearer your_generated_secret. On a Team or Enterprise plan, an owner adds it for everyone under Organization settings → Connectors. Because Claude connects from Anthropic's cloud rather than from your computer, the server has to be reachable over public HTTPS, for example through a reverse proxy or Cloudflare Tunnel. A localhost or LAN address won't work.

Shared server on your LAN (Claude Desktop): connectors can't reach private addresses, so use mcp-remote in claude_desktop_config.json to bridge to the server. You only need --allow-http for a plain http:// URL that isn't localhost.

{
  "mcpServers": {
    "uptime-kuma": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "http://your-docker-host:3000/mcp",
        "--allow-http",
        "--header", "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer your_generated_secret"
      }
    }
  }
}
GitHub Copilot (VS Code and Copilot CLI)

Copilot reads ~/.copilot/mcp-config.json, which VS Code's Copilot Chat and the copilot CLI share. You can also use a .mcp.json at the root of a workspace. Values written as ${NAME} are read from the environment on the machine running the server.

Local:

{
  "mcpServers": {
    "uptime-kuma": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@davidfuchs/mcp-uptime-kuma@latest"],
      "env": {
        "UPTIME_KUMA_URL": "http://your-uptime-kuma-instance:3001",
        "UPTIME_KUMA_USERNAME": "your_username",
        "UPTIME_KUMA_PASSWORD": "${UPTIME_KUMA_PASSWORD}"
      },
      "tools": ["*"]
    }
  }
}

Shared server:

{
  "mcpServers": {
    "uptime-kuma": {
      "type": "http",
      "url": "http://your-docker-host:3000/mcp",
      "headers": {
        "Authorization": "Bearer ${UPTIME_KUMA_MCP_TOKEN}"
      },
      "tools": ["*"]
    }
  }
}

Older VS Code setups keep servers in .vscode/mcp.json or the profile mcp.json instead. Those files use a top-level "servers" key rather than "mcpServers", and VS Code is phasing them out. On a Business or Enterprise plan, an admin may need to turn on the MCP servers in Copilot policy first.

Codex and ChatGPT

The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share one configuration file, ~/.codex/config.toml.

Local:

codex mcp add uptime-kuma \
  --env UPTIME_KUMA_URL=http://your-uptime-kuma-instance:3001 \
  --env UPTIME_KUMA_USERNAME=your_username \
  --env UPTIME_KUMA_PASSWORD=your_password \
  -- npx -y @davidfuchs/mcp-uptime-kuma@latest

That command writes this to config.toml, which you can also edit by hand:

[mcp_servers.uptime-kuma]
command = "npx"
args = ["-y", "@davidfuchs/mcp-uptime-kuma@latest"]

[mcp_servers.uptime-kuma.env]
UPTIME_KUMA_URL = "http://your-uptime-kuma-instance:3001"
UPTIME_KUMA_USERNAME = "your_username"
UPTIME_KUMA_PASSWORD = "your_password"

Shared server: add this to config.toml, and make sure UPTIME_KUMA_MCP_TOKEN is set in the environment Codex is launched from:

[mcp_servers.uptime-kuma]
url = "http://your-docker-host:3000/mcp"
bearer_token_env_var = "UPTIME_KUMA_MCP_TOKEN"

With either setup, you can add default_tools_approval_mode = "writes" to the server's table. Codex will then use this server's tool annotations to run read-only tools without asking, and check with you before anything that changes your instance.

ChatGPT on the web isn't supported. Its custom connectors call the server from OpenAI's cloud and only support OAuth or no authentication, so they can't send the bearer token this server requires. Use the ChatGPT desktop app or Codex instead.

Cursor

Add this to ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one project.

Local:

{
  "mcpServers": {
    "uptime-kuma": {
      "command": "npx",
      "args": ["-y", "@davidfuchs/mcp-uptime-kuma@latest"],
      "env": {
        "UPTIME_KUMA_URL": "http://your-uptime-kuma-instance:3001",
        "UPTIME_KUMA_USERNAME": "your_username",
        "UPTIME_KUMA_PASSWORD": "your_password"
      }
    }
  }
}

Shared server:

{
  "mcpServers": {
    "uptime-kuma": {
      "url": "http://your-docker-host:3000/mcp",
      "headers": {
        "Authorization": "Bearer ${env:UPTIME_KUMA_MCP_TOKEN}"
      }
    }
  }
}
LibreChat

Add this to librechat.yaml.

Local:

mcpServers:
  uptime-kuma:
    command: npx
    args: ["-y", "@davidfuchs/mcp-uptime-kuma@latest"]
    env:
      UPTIME_KUMA_URL: "http://your-instance:3001"
      UPTIME_KUMA_USERNAME: "your_username"
      UPTIME_KUMA_PASSWORD: "your_password"
    serverInstructions: true

Shared server: by default, LibreChat blocks MCP connections to private addresses, including localhost, LAN IPs and container names on a Docker network. To allow the server, add the host from its URL to allowedDomains. Once allowedDomains is set, it's a strict allowlist, so add your other MCP servers' hosts too, or they'll stop connecting.

mcpServers:
  uptime-kuma:
    type: streamable-http
    url: "http://mcp-uptime-kuma:3000/mcp"
    headers:
      Authorization: "Bearer ${UPTIME_KUMA_MCP_TOKEN}"
    serverInstructions: true

mcpSettings:
  allowedDomains:
    - 'mcp-uptime-kuma'

LibreChat runs in a browser, so if you set ALLOWED_ORIGIN on the server, include your LibreChat origin in it.

Other clients

Most other clients, including Windsurf, Cline, Zed and Gemini CLI, accept some variation of the standard mcpServers block. Check your client's docs to find where the file goes and which key it uses for HTTP servers (url, serverUrl or httpUrl).

{
  "mcpServers": {
    "uptime-kuma": {
      "command": "npx",
      "args": ["-y", "@davidfuchs/mcp-uptime-kuma@latest"],
      "env": { "UPTIME_KUMA_URL": "http://your-uptime-kuma-instance:3001" }
    }
  }
}

For a shared server, use "url": "http://your-docker-host:3000/mcp" and "headers": { "Authorization": "Bearer your_generated_secret" } instead of command/args/env.

No Node.js on the machine? The Docker image uses stdio by default, so clients can run the server locally with Docker instead of npx:

{
  "mcpServers": {
    "uptime-kuma": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "UPTIME_KUMA_URL", "-e", "UPTIME_KUMA_USERNAME", "-e", "UPTIME_KUMA_PASSWORD",
        "davidfuchs/mcp-uptime-kuma:latest"
      ],
      "env": {
        "UPTIME_KUMA_URL": "http://your-uptime-kuma-instance:3001",
        "UPTIME_KUMA_USERNAME": "your_username",
        "UPTIME_KUMA_PASSWORD": "your_password"
      }
    }
  }
}

Available Tools

Monitors

ToolPurpose
getMonitorSummaryGet a quick overview of all monitors with their current status. Supports filtering.
listMonitorsGet the full list of all monitors with configurations. Supports filtering.
listMonitorTypesGet all available monitor types supported by Uptime Kuma.
getMonitorTypeFieldsGet the required and optional fields for a monitor type: what each one means, the values it accepts, its default, and whether it goes at the top level or in typeFields.
getMonitorGet detailed configuration for a specific monitor by ID.
createMonitorCreate a monitor of any type. It needs a name, a type, and whatever that type checks, such as url for http or hostname for ping. Type-specific fields, including HTTP authentication, go in typeFields.
updateMonitorUpdate an existing monitor's configuration, including changing its type in place (keeps the ID and history).
deleteMonitorPermanently delete a monitor and all its heartbeat history.
setMonitorActivePause a monitor to stop its checks, or resume a paused one.
listGamesLook up a game's GameDig ID by name, for a game server (gamedig) monitor.
listPM2ProcessesList the PM2 processes on the Uptime Kuma host, for a pm2 monitor.
testChromeCheck that real-browser monitors can start Chrome on the Uptime Kuma host. If no Chrome path is set, Uptime Kuma's Docker image installs Chromium first, which can take a few minutes.
getPushExampleGet sample code (bash, Python, PowerShell, Go and more) for reporting to a push monitor, with its URL and interval already filled in. The token is hidden unless includeSecrets is set.
checkDomainExpirySupportCheck whether Uptime Kuma can track domain expiry for an address, and if it can't, why not.

Heartbeats

ToolPurpose
listHeartbeatsGet status check history for one monitor or for all of them.
getMonitorUptimeGet a monitor's uptime percentage and ping over the last N hours (up to a year), plus when its checks failed.
clearMonitorEventsClear a monitor's event list (its status changes). Its heartbeats and uptime data are kept.
clearMonitorHeartbeatsDelete one monitor's heartbeats and uptime statistics, so its history starts from scratch.
clearAllStatisticsDelete every monitor's heartbeats and uptime statistics. Requires confirm: true.

Notifications

ToolPurpose
listNotificationsList all configured notification channels (Slack, Discord, email, webhooks, etc.).
listNotificationTypesList every notification type Uptime Kuma supports, with the exact type string to use.
getNotificationTypeFieldsGet the required and optional config fields for a notification type. Covers the most common types.
createNotificationCreate a new notification channel.
updateNotificationUpdate a notification channel. Only the fields you pass are changed.
deleteNotificationPermanently delete a notification channel.
testNotificationSend a test message through a saved channel to check that its settings work.

Tags

ToolPurpose
listTagsList all tags defined in Uptime Kuma.
createTagCreate a new tag that can be assigned to monitors.
updateTagRename or recolor an existing tag.
deleteTagPermanently delete a tag (removes it from all monitors).

Maintenance

ToolPurpose
listMaintenanceWindowsList all maintenance windows, with the monitors each one covers and the status pages that announce it.
createMaintenanceWindowSchedule a new maintenance window, attach the monitors it suppresses, and optionally show it on status pages.
updateMaintenanceWindowChange a maintenance window's schedule, details, monitor list, or the status pages it appears on.
setMaintenanceWindowActiveTurn a maintenance window off (which ends a manual window) or back on (which starts one).
deleteMaintenanceWindowPermanently delete a maintenance window.

Status Pages

ToolPurpose
listStatusPagesList all configured status pages with their slug, title, visibility, and custom domains.
getStatusPageGet one status page by slug, including its groups, the monitors in each group, and active incidents. Works for unpublished pages too.
createStatusPageCreate a new, empty status page with a title and slug. Follow up with updateStatusPage to add groups and monitors.
updateStatusPageChange a status page's settings (description, theme, published, custom domains, CSS, …) and, optionally, replace its groups and their monitors.
deleteStatusPagePermanently delete a status page. Its URL will stop working.
listIncidentsList a status page's incidents, including resolved ones, newest first and ten at a time.
createIncidentPost an incident banner (title, Markdown body, color) on a status page. It appears immediately.
updateIncidentChange an incident's title, body or color, or take it off the page without resolving it. Fields you don't pass keep their values.
resolveIncidentMark an incident as resolved. It comes off the page but stays in the history.
deleteIncidentPermanently delete an incident, including from the history.

Docker Hosts

ToolPurpose
listDockerHostsList the Docker daemon connections used by Docker container monitors.
testDockerHostCheck that a Docker daemon is reachable, without saving it. If it is, reports how many containers it has.
createDockerHostAdd a Docker daemon connection over a Unix socket or TCP (for example, through a Docker socket proxy).
updateDockerHostChange a Docker daemon connection. Fields you don't pass keep their values.
deleteDockerHostPermanently delete a Docker daemon connection. Monitors that used it are kept, but no longer have a Docker host.

Proxies

ToolPurpose
listProxiesList the HTTP and SOCKS proxies that monitors can send requests through. A monitor picks one by setting its ID in proxyId.
createProxyAdd a proxy, optionally with a login. It can be made the default, or applied to every monitor at once.
updateProxyChange a proxy. Fields you don't pass keep their values, and "***" keeps the password.
deleteProxyPermanently delete a proxy. Monitors that used it connect directly instead.

Remote Browsers

ToolPurpose
listRemoteBrowsersList the remote Chrome instances (such as browserless) that real-browser monitors can run in. Tokens in URLs are hidden.
testRemoteBrowserCheck that Uptime Kuma can control a browser at a given URL, or a saved remote browser, without saving anything.
createRemoteBrowserAdd a remote browser by name and ws:// / wss:// URL.
updateRemoteBrowserChange a remote browser's name or URL.
deleteRemoteBrowserPermanently delete a remote browser. Monitors that used it fall back to the built-in Chromium.

API Keys

ToolPurpose
listAPIKeysList API keys with their status and expiry. The keys themselves can't be retrieved.
createAPIKeyCreate an API key, with an optional expiry date. The key is only shown once, in the response. Once any API key exists, /metrics requires an API key instead of the admin login.
setAPIKeyActiveTurn an API key off or back on.
deleteAPIKeyPermanently delete an API key.

Database

ToolPurpose
getDatabaseInfoGet which database Uptime Kuma uses, the size of its SQLite file, and how many days of history it keeps.
shrinkDatabaseReclaim the disk space left behind by cleared history (SQLite VACUUM). Checks aren't recorded while it runs, and it needs about as much free disk space as the database takes up.

Settings

ToolPurpose
getSettingsGet Uptime Kuma server settings, such as timezone, primary base URL, and data retention.
updateSettingsChange server settings: timezone, primary base URL, entry page, data retention, expiry warning days, search engine indexing, update checks, reverse-proxy trust, NSCD, the Chrome path, API and Prometheus access, the Steam and Globalping credentials, and whether login is required. Settings you don't pass are left unchanged, and sending "***" for a credential keeps the stored one. Turning off login requires the admin password.

Type-specific monitor fields

createMonitor and updateMonitor take the fields most monitors use (url, hostname, port, keyword, interval, …) as regular arguments. Anything specific to one kind of monitor goes in a single typeFields object:

createMonitor({ name: "API", type: "http", url: "https://api.example.com/health",
                typeFields: { bearer_token: "…" } })
createMonitor({ name: "Broker", type: "mqtt", hostname: "mqtt://broker.example.com", port: 1883,
                typeFields: { mqttTopic: "sensors/#" } })

Call getMonitorTypeFields({ type }) to see what a type requires and accepts. These fields are deliberately left out of the tool definitions: there are about 85 of them, and tool definitions are loaded into every conversation, whether or not you ever create a monitor. typeFields is still validated. An unknown field name or an invalid value is rejected, and the error suggests the correct spelling.

getMonitor returns these fields at the top level of the monitor, the way Uptime Kuma stores them. To change one, you still pass it inside typeFields.

Filtering

getMonitorSummary and listMonitors can filter by:

  • keywords: space-separated keywords, fuzzy-matched against each monitor's pathName
  • type: one or more monitor types, comma-separated (e.g. "http", "http,ping,dns")
  • active: true for active monitors, false for paused ones
  • maintenance: whether the monitor is in maintenance
  • tags: tag names with optional values, comma-separated (e.g. "production", "env=staging")
  • parentId: a group monitor's ID, to get that group's direct children. Pass null for top-level monitors (those without a parent). This isn't recursive; to go deeper, use each child group's childrenIDs.
  • status (getMonitorSummary only): the current heartbeat status ("0"=DOWN, "1"=UP, "2"=PENDING, "3"=MAINTENANCE)

Examples:

getMonitorSummary({ status: "0" })                     // All DOWN monitors
getMonitorSummary({ type: "http", maintenance: true }) // HTTP monitors in maintenance
getMonitorSummary({ parentId: 12, status: "0" })       // What's down inside group 12
listMonitors({ tags: "production,region=us-east" })    // Monitors with specific tags
listMonitors({ parentId: 12 })                         // Direct children of group 12
listMonitors({ parentId: null })                       // Top-level monitors only

Configuration Reference

All settings are environment variables. The ones that need more than a line of explanation are covered in the sections after these tables.

Connecting to Uptime Kuma (both transports)

VariableDefaultPurpose
UPTIME_KUMA_URLrequiredThe address of your Uptime Kuma 2 instance, e.g. http://192.168.1.10:3001.
UPTIME_KUMA_USERNAMEunsetThe username to log in with. See Authentication Methods.
UPTIME_KUMA_PASSWORDunsetThe password to log in with.
UPTIME_KUMA_2FA_TOKENunsetA current 2FA code. These expire within seconds, so use UPTIME_KUMA_JWT_TOKEN instead if you have 2FA turned on.
UPTIME_KUMA_JWT_TOKENunsetA JWT to log in with. If set, it's used instead of the username and password.
UPTIME_KUMA_HEADERSunsetA JSON object of extra headers to send with every request, for an authenticating proxy in front of Uptime Kuma.

What the server exposes (both transports)

VariableDefaultPurpose
UPTIME_KUMA_READ_ONLYfalsetrue registers only read-only tools. See Read-Only Mode.
UPTIME_KUMA_TOOLSETSallA comma-separated list of tool sets to register, e.g. monitors,heartbeats. See Choosing Tool Sets.
UPTIME_KUMA_DYNAMIC_TOOLSETSfalsetrue starts with only the monitors tools and lets the assistant load other tool sets as it needs them. stdio only. See Loading Tool Sets on Demand.
UPTIME_KUMA_INCLUDE_SECRETSfalsetrue returns passwords, tokens and API keys in tool output instead of ***. See Credential Redaction.

HTTP endpoint (-t streamable-http only)

VariableDefaultPurpose
MCP_AUTH_TOKENunset (no auth)A shared secret that clients must send as Authorization: Bearer <token>. See Securing the HTTP Endpoint.
ALLOWED_ORIGIN* (no check)A comma-separated list of browser origins allowed to call /mcp.
HOST0.0.0.0The address to bind to.
PORT3000The port to listen on.
TRUST_PROXYunset (no trust)Whether to trust X-Forwarded-For from a reverse proxy: a hop count, true/false, or a list of IPs or subnets.
RATE_LIMIT_MAX1000The maximum number of requests per client IP in each 15-minute window. 0 turns off the limit.

The transport is set with a command-line option rather than a variable: -t stdio (the default) or -t streamable-http.

Authentication Methods

Anonymous Authentication

If authentication is turned off in Uptime Kuma, you only need UPTIME_KUMA_URL.

Username/Password Authentication

UPTIME_KUMA_URL=http://your-instance:3001
UPTIME_KUMA_USERNAME=your_username
UPTIME_KUMA_PASSWORD=your_password
UPTIME_KUMA_2FA_TOKEN=123456  # Optional, only if 2FA is enabled

JWT Token Authentication

Recommended if you use 2FA. If you set both, the JWT is used instead of the username and password.

UPTIME_KUMA_URL=http://your-instance:3001
UPTIME_KUMA_JWT_TOKEN=your_jwt_token
Obtaining Your JWT Token

Using the CLI utility (recommended):

npx -p @davidfuchs/mcp-uptime-kuma@latest mcp-uptime-kuma-get-jwt http://localhost:3001 admin mypassword

Using Docker:

docker run --rm davidfuchs/mcp-uptime-kuma:latest get-jwt http://host.docker.internal:3001 admin mypassword

From your browser: while logged in to Uptime Kuma, open Developer Tools → Storage/Application → Local Storage and copy the value of the token key.

Behind an Authenticating Proxy (Cloudflare Access, etc.)

If Uptime Kuma is behind a proxy that requires its own credentials, such as a Cloudflare Zero Trust Access application, oauth2-proxy or an API gateway, set UPTIME_KUMA_HEADERS to a JSON object of headers to send with every request. You still use one of the methods above to log in to Uptime Kuma itself.

For Cloudflare Access, create a service token, add a Service Auth policy to the application that allows it, and then set:

UPTIME_KUMA_URL=https://uptime.example.com
UPTIME_KUMA_HEADERS={"CF-Access-Client-Id":"<client-id>.access","CF-Access-Client-Secret":"<client-secret>"}
UPTIME_KUMA_USERNAME=your_username
UPTIME_KUMA_PASSWORD=your_password

In an MCP client's JSON config, the value has to be a string, so escape the inner quotes:

"UPTIME_KUMA_HEADERS": "{\"CF-Access-Client-Id\":\"<client-id>.access\",\"CF-Access-Client-Secret\":\"<client-secret>\"}"

mcp-uptime-kuma-get-jwt reads the same variable. If the value is malformed, the server won't start, and the error names the header that caused it. Header values are never logged.

Read-Only Mode

To expose only tools that read data, and none that create, change, pause or delete anything, set:

UPTIME_KUMA_READ_ONLY=true

The write tools aren't registered at all, so they can't be called and don't take up any space in the conversation. That leaves 18 tools: the get… and list… tools, except getMonitorTypeFields, listNotificationTypes and getNotificationTypeFields, which are only useful when writing. This only limits what the MCP server offers. It doesn't change what the Uptime Kuma account is allowed to do.

Choosing Tool Sets

The definition of every registered tool is sent to the model at the start of each conversation, so all 67 tools use about 19k tokens before you've asked anything. To register only the parts you use, set UPTIME_KUMA_TOOLSETS to a comma-separated list:

UPTIME_KUMA_TOOLSETS=monitors,heartbeats
Tool setTools
monitorsgetMonitorSummary, getMonitor, listMonitors, listMonitorTypes, getMonitorTypeFields, createMonitor, updateMonitor, deleteMonitor, setMonitorActive, listGames, listPM2Processes, testChrome, getPushExample, checkDomainExpirySupport
heartbeatslistHeartbeats, getMonitorUptime, clearMonitorEvents, clearMonitorHeartbeats, clearAllStatistics
notificationslistNotifications, listNotificationTypes, getNotificationTypeFields, createNotification, updateNotification, deleteNotification, testNotification
tagslistTags, createTag, updateTag, deleteTag
maintenancelistMaintenanceWindows, createMaintenanceWindow, updateMaintenanceWindow, deleteMaintenanceWindow, setMaintenanceWindowActive
status-pageslistStatusPages, getStatusPage, createStatusPage, updateStatusPage, deleteStatusPage, listIncidents, createIncident, updateIncident, resolveIncident, deleteIncident
docker-hostslistDockerHosts, createDockerHost, updateDockerHost, deleteDockerHost, testDockerHost
settingsgetSettings, updateSettings
proxieslistProxies, createProxy, updateProxy, deleteProxy
remote-browserslistRemoteBrowsers, testRemoteBrowser, createRemoteBrowser, updateRemoteBrowser, deleteRemoteBrowser
api-keyslistAPIKeys, createAPIKey, setAPIKeyActive, deleteAPIKey
databasegetDatabaseInfo, shrinkDatabase

If it's unset, empty or all, every tool set is registered. If it contains an unknown name, the server won't start and lists the valid ones, rather than silently running with fewer tools.

It works together with read-only mode: setting UPTIME_KUMA_READ_ONLY=true and UPTIME_KUMA_TOOLSETS=monitors,heartbeats leaves just six tools (about 2.3k tokens), which is enough for questions like "what's down?" and "how has this been doing?".

Most other tool sets refer to monitors by ID (maintenance windows, status pages, tags and notifications are all attached to monitors), so include monitors unless you already know the IDs.

Loading Tool Sets on Demand

With UPTIME_KUMA_DYNAMIC_TOOLSETS=true, the server starts with just the monitors tool set plus one extra tool, enableToolsets, whose description lists the other tool sets. When a task needs one of them (maintenance to schedule a maintenance window, for example), the assistant calls enableToolsets, and the server notifies the client that its tool list has changed. The new tools stay loaded for the rest of the session.

That means a session starts with 15 tools (about 7k tokens) instead of 67 (about 19k). A conversation that only deals with monitors saves those tokens on every turn, and one that needs another tool set costs just one extra call to load it.

UPTIME_KUMA_DYNAMIC_TOOLSETS=true
  • stdio only. The HTTP transport doesn't keep sessions and can't send the change notification, so the server won't start if you combine the two. With HTTP, use UPTIME_KUMA_TOOLSETS instead.
  • Your client has to refresh its tool list when the server sends notifications/tools/list_changed. Claude Code does this. If your client doesn't, the assistant can load a tool set but will never see the new tools, so leave this setting off.
  • It doesn't work behind mcpjungle or any other gateway that caches the tool list. mcpjungle fetches the list once, when you register the server, and ignores the change notification. The assistant can call enableToolsets, but the new tools never show up, and mcpjungle rejects any call to them. Switching mcpjungle to stateful sessions doesn't help, since that keeps the process running but never refreshes the list. Instead, remove this setting from the env in your mcpjungle config, use UPTIME_KUMA_TOOLSETS (or an mcpjungle tool group) to choose the tools, and re-register with mcpjungle register --force so mcpjungle picks up the full list.
  • It works alongside the other settings. UPTIME_KUMA_TOOLSETS still limits which tool sets can be loaded, and read-only mode still leaves out all the write tools.

Securing the HTTP Endpoint

This section only applies to -t streamable-http. Anyone who can reach /mcp has full read/write control of your Uptime Kuma instance. The defaults are permissive so that upgrading doesn't break existing deployments, but the server logs a warning at startup if the endpoint is unprotected. If the server can be reached from anywhere other than your own machine:

  • Set MCP_AUTH_TOKEN to a long random secret (openssl rand -base64 32). Clients then send it as Authorization: Bearer <token>.
  • Set ALLOWED_ORIGIN if you use a browser-based client. This blocks DNS rebinding attacks, which a token alone doesn't stop.
  • Put it behind a TLS reverse proxy before exposing it outside your LAN, and set TRUST_PROXY so rate limiting sees the real client IPs.

/health doesn't require authentication, so container health checks keep working, and it only reports whether the server is up. The image's built-in health check uses it when the container runs the HTTP transport, so docker ps shows whether the container is healthy. With stdio there's nothing to check, so the health check always passes.

For more detail, including why Origin validation matters even with a token and how TRUST_PROXY can be abused, see docs/http-security.md.

Credential Redaction

Read tools return *** in place of passwords, tokens, API keys and HTTP headers. Tool output ends up in your conversation transcript, and asking "what am I monitoring?" shouldn't put a live SMTP password in it.

  • Sending *** back is safe. When a field comes in as ***, updateMonitor and updateNotification keep the stored value, so the assistant can read a configuration, edit it and save it without wiping its credentials.
  • Push tokens are shown when they're created, either by createMonitor or by switching a monitor to the push type, because you need the token to set up whatever sends the pushes.
  • To see the real values, pass includeSecrets: true on a single call, or set UPTIME_KUMA_INCLUDE_SECRETS=true to show them on every call.

docs/credential-redaction.md lists exactly what each tool hides and how credentials inside URLs are handled.

Troubleshooting

Documentation truncated — see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!