tuliof/kuma-mcp
If you are the rightful owner of kuma-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A MCP server for uptime-kuma v2 🐻🤖
kuma-mcp
A Model Context Protocol (MCP) server for Uptime Kuma v2 🐻🤖
This MCP server enables AI assistants to interact with Uptime Kuma, allowing them to manage monitoring services, add/update/remove monitors, and control monitor states.
Features
- 🔐 Authentication: Support for both username/password and API key authentication
- 📊 Monitor Management: Add, update, and remove monitors
- ⏯️ Monitor Control: Pause and resume monitors
- 📋 Monitor Information: Get details of specific monitors or list all monitors
- 🐳 Docker Support: Includes docker-compose.yml for easy Uptime Kuma deployment
- 🏗️ TypeScript: Fully typed with Zod schema validation
- ⚡ Built with Bun: Fast runtime and package manager (requires Node.js v18+ LTS)
Installation
Prerequisites
- Bun installed on your system
- Node.js v18+ LTS
- An Uptime Kuma v2 instance (can be started with included docker-compose.yml)
Install Dependencies
bun install
Build
bun run build
Quick Start
1. Start Uptime Kuma (Optional)
If you don't have an Uptime Kuma instance running, use the included docker-compose:
docker-compose up -d
Uptime Kuma will be available at http://localhost:3001. Go to the URL and finish the uptime-kuma configuration.
2. Configure Environment Variables
Set the credentials in .env:
cp .env.example .env
3. Run the Server
bun run dev
Or use the built version:
bun run build
bun dist/index.js
Testing with MCP Inspector
The MCP Inspector is a visual tool for testing and debugging MCP servers. It provides an interactive interface to explore your server's capabilities, test tools, and inspect responses.
Run with Inspector
Start your MCP server with the Inspector:
bunx @modelcontextprotocol/inspector bun run dev
or the built version
bun run build
bunx @modelcontextprotocol/inspector bun run dist/index.js
The Inspector will:
- Start your MCP server
- Open a web interface (typically at
http://localhost:6274) - Allow you to interactively test all available tools
- Display real-time request/response data
- Help debug issues with your server
Using the Inspector
Once the Inspector is running:
- Connect to Server: The Inspector automatically connects to your MCP server
- Browse Tools: View all available tools (
add_monitor,list_monitors, etc) - Test Tools: Fill in parameters and execute tools to see responses
- Inspect Results: View detailed request/response JSON
- Debug Issues: Check for errors and validation problems
This is especially useful for:
- Testing monitor creation with different configurations
- Verifying authentication is working correctly
- Exploring the response format of each tool
- Debugging issues before integrating with Claude Desktop or other MCP clients
MCP Configuration
To use this server with an MCP client like Claude Desktop, add it to your MCP configuration:
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"kuma-mcp": {
"command": "node",
"args": ["/path/to/kuma-mcp/dist/index.js"],
"env": {
"UPTIME_KUMA_URL": "http://localhost:3001",
"UPTIME_KUMA_USERNAME": "your-username",
"UPTIME_KUMA_PASSWORD": "your-password"
// Alternative: Use API key instead of username/password
// "UPTIME_KUMA_API_KEY": "your-api-key"
}
}
}
}
Available Tools
add_monitorupdate_monitorremove_monitorpause_monitorresume_monitorget_monitorlist_monitors
API Reference
For more information about the Uptime Kuma API, see:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
This project uses Semantic Commit Messages. See for detailed guidelines.
License
MIT