Agent for interacting with Uptime Kuma API
Project description
Uptime Kuma Agent - A2A | AG-UI | MCP
Version: 0.11.1
Overview
Uptime Kuma Agent MCP Server + A2A Agent
Agent for interacting with Uptime Kuma API
This repository is actively maintained - Contributions are welcome!
MCP
Using as an MCP Server
The MCP Server can be run in two modes: stdio (for local testing) or http (for networked access).
Environment Variables
UPTIME_KUMA_URL: The URL of the target service.UPTIME_KUMA_TOKEN: The API token or access token.
Run in stdio mode (default):
export UPTIME_KUMA_URL="http://localhost:8080"
export UPTIME_KUMA_TOKEN="your_token"
uptime-kuma-mcp --transport "stdio"
Run in HTTP mode:
export UPTIME_KUMA_URL="http://localhost:8080"
export UPTIME_KUMA_TOKEN="your_token"
uptime-kuma-mcp --transport "http" --host "0.0.0.0" --port "8000"
A2A Agent
Run A2A Server
export UPTIME_KUMA_URL="http://localhost:8080"
export UPTIME_KUMA_TOKEN="your_token"
uptime-kuma-agent --provider openai --model-id gpt-4o --api-key sk-...
Security & Governance
This project is built on agent-utilities, inheriting enterprise-grade security and governance features.
Authentication & Authorization
| Feature | Description |
|---|---|
| OIDC Token Delegation | RFC 8693 token exchange for user-context propagation from A2A → MCP |
| Eunomia Policies | Fine-grained, policy-driven tool authorization (none, embedded, remote) |
| Scoped Credentials | Tools execute with the caller's scoped identity where possible |
| 3LO / OAuth / API Token | Multiple auth strategies with graceful fallback |
Eunomia Policy Enforcement
Eunomia provides a policy enforcement point for all tool calls:
- Embedded mode: Load local
mcp_policies.jsonfor role-based access, sensitivity gating, and audit logging - Remote mode: Forward authorization decisions to a central Eunomia policy server for multi-agent governance
- Enable via CLI:
--eunomia-type embedded --eunomia-policy-file mcp_policies.json
Runtime Protections
| Protection | Description |
|---|---|
| Tool Guard | Sensitivity detection with human-in-the-loop approval gating |
| Prompt Injection Defense | Input scanning and repetition/loop guards |
| Content Filtering | Output schema enforcement and cost budget controls |
| Stuck Loop Detection | Automatic detection and recovery from agent loops |
| Context Limit Warnings | Proactive alerts before context window exhaustion |
Graph Agent Architecture
The A2A agent uses pydantic-graph orchestration with:
- RouterNode: Lightweight classifier that routes queries to specialized domains
- DomainNode: Focused executor with only relevant tools loaded, preventing tool hallucination
- Approval Gates: Policy-driven approval workflows before sensitive operations
- Usage Guards: Budget and rate limiting enforcement
Production Recommendation: Enable
--eunomia-type embedded(orremote) + OIDC delegation + containerized deployment. Seeagent-utilitiesdocumentation for full policy configuration.
Docker
Build
docker build -t uptime-kuma-agent .
Run MCP Server
docker run -d \
--name uptime-kuma-agent \
-p 8000:8000 \
-e TRANSPORT=http \
-e UPTIME_KUMA_URL="http://your-service:8080" \
-e UPTIME_KUMA_TOKEN="your_token" \
knucklessg1/uptime-kuma-agent:latest
Deploy with Docker Compose
services:
uptime-kuma-agent:
image: knucklessg1/uptime-kuma-agent:latest
environment:
- HOST=0.0.0.0
- PORT=8000
- TRANSPORT=http
- UPTIME_KUMA_URL=http://your-service:8080
- UPTIME_KUMA_TOKEN=your_token
ports:
- 8000:8000
Configure mcp.json for AI Integration (e.g. Claude Desktop)
{
"mcpServers": {
"uptime-kuma": {
"command": "uv",
"args": [
"run",
"--with",
"uptime-kuma-agent",
"uptime-kuma-mcp"
],
"env": {
"UPTIME_KUMA_URL": "http://your-service:8080",
"UPTIME_KUMA_TOKEN": "your_token"
}
}
}
}
Install Python Package
python -m pip install uptime-kuma-agent
uv pip install uptime-kuma-agent
Repository Owners
MCP Configuration Examples
stdio (recommended for local development)
{
"mcpServers": {
"uptime": {
"command": ".venv/bin/uptime-mcp",
"args": [],
"env": {
"UPTIME_KUMA_URL": "",
"UPTIME_KUMA_TOKEN": ""
}
}
}
}
Streamable HTTP (recommended for production)
{
"mcpServers": {
"uptime": {
"url": "http://localhost:8080/uptime-mcp/mcp"
}
}
}
Available MCP Tools
This server utilizes dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
| Tool Name | Description |
|---|---|
uptime_kuma_monitors |
Consolidated Action-Routed tool for monitors. Methods: get_monitors, get_monitor, add_monitor, edit_monitor, delete_monitor, pause_monitor, resume_monitor |
uptime_kuma_status |
Consolidated Action-Routed tool for status. Methods: get_heartbeats, info |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uptime_kuma_agent-0.11.1.tar.gz.
File metadata
- Download URL: uptime_kuma_agent-0.11.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ce68da14b049a3ae185921f905a7c927153b63444590ce1efd81cd290089452
|
|
| MD5 |
3adad3922ad6b8c5fe77f69ed74e07f6
|
|
| BLAKE2b-256 |
cfd2d379af46a8ae810a9924674b8272422c4aae3e6d6f3138fdd41dcc6071d2
|
File details
Details for the file uptime_kuma_agent-0.11.1-py3-none-any.whl.
File metadata
- Download URL: uptime_kuma_agent-0.11.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba56971c45bb3d8fb063e9bdadd901cfcac54f9f964d07d6e24844ece1a65bce
|
|
| MD5 |
4072a2fe02a6012232fb318fc545cfd4
|
|
| BLAKE2b-256 |
1ff39a0207e084e50612fb162faf97eb5cfcf2f6e9216bc5274f22cc82322893
|