Used for configuration management through environment variables, allowing users to customize server settings via a .env file
Serves as the web framework for the MCP API, providing the RESTful endpoints for monitor management and other UptimeRobot operations
Enables version control and source code management for the UptimeRobot MCP project
Hosts the repository for the UptimeRobot MCP project, allowing collaboration and code sharing
Synchronizes maintenance windows with calendar events, enabling scheduling and visibility of planned downtime
Visualizes UptimeRobot metrics and uptime data through customizable dashboards
Creates tickets automatically for incidents and downtime events detected by UptimeRobot
Enables workflow automation for UptimeRobot tasks including scheduled maintenance, report generation, and incident response
Powers the natural language processing capabilities of the MCP, enabling conversational interaction with UptimeRobot
Serves as the primary programming language for the MCP server implementation
Delivers notifications and alerts from UptimeRobot, including downtime alerts and automated incident analysis
Click on "Install 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., "@UptimeRobot MCP APIshow me my website uptime for the last 7 days"
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.
UptimeRobot MCP API
API quản lý UptimeRobot với khả năng xử lý ngôn ngữ tự nhiên thông qua Model Context Protocol (MCP).
Tính năng
Quản lý monitors (tạo, cập nhật, xóa, xem)
Quản lý maintenance windows
Tạo báo cáo (uptime, maintenance, performance)
Xử lý ngôn ngữ tự nhiên thông qua MCP
Hệ thống phân quyền người dùng
Cache management
Context management cho MCP
Tích hợp với n8n
Related MCP server: Unitree Go2 MCP Server
Yêu cầu
Python 3.8+
FastAPI
UptimeRobot API Key
Ollama (cho MCP)
n8n (cho workflow automation)
Cài đặt
Clone repository:
Tạo môi trường ảo và cài đặt dependencies:
Cấu hình biến môi trường:
Sử dụng
Khởi động server:
Truy cập API documentation:
Tích hợp với n8n
Cài đặt n8n
Cài đặt n8n:
Khởi động n8n:
Tạo Workflow
Truy cập n8n interface tại
http://localhost:5678Tạo workflow mới và thêm các nodes:
HTTP Request node để gọi API
Function node để xử lý dữ liệu
Schedule Trigger node để tự động hóa
Email node để gửi thông báo
Ví dụ Workflow
Tự động tạo maintenance window:
Tự động tạo báo cáo hàng tuần:
Tự động xử lý sự cố:
Các tính năng n8n có thể tích hợp
Tự động hóa:
Tạo maintenance window định kỳ
Tạo báo cáo tự động
Xử lý sự cố tự động
Thông báo:
Gửi email báo cáo
Gửi thông báo Slack/Discord
Gửi SMS cho sự cố nghiêm trọng
Tích hợp với các dịch vụ khác:
Jira để tạo ticket
Google Calendar để đồng bộ lịch
Grafana để hiển thị metrics
API Endpoints
Authentication
POST /auth/register- Đăng ký người dùng mớiPOST /auth/token- Đăng nhập và lấy token
Monitors
GET /monitors- Lấy danh sách monitorsPOST /monitors- Tạo monitor mớiPUT /monitors/{monitor_id}- Cập nhật monitorDELETE /monitors/{monitor_id}- Xóa monitorGET /monitors/{monitor_id}/uptime- Lấy thông tin uptime
Maintenance Windows
POST /maintenance- Tạo maintenance windowGET /maintenance- Lấy danh sách maintenance windowsDELETE /maintenance/{window_id}- Xóa maintenance window
Reports
POST /reports- Tạo báo cáo mớiGET /reports/{report_id}- Lấy thông tin báo cáo
Cache Management
GET /cache/stats- Lấy thống kê cacheDELETE /cache/{cache_name}- Xóa cache
MCP
POST /mcp/chat- Xử lý yêu cầu ngôn ngữ tự nhiênDELETE /mcp/context/{session_id}- Xóa context
Ví dụ sử dụng
Tạo monitor mới
Tạo maintenance window
Sử dụng MCP
Phân quyền
ADMIN: Toàn quyền truy cập
MANAGER: Quản lý monitors và maintenance windows
VIEWER: Chỉ xem thông tin
Đóng góp
Xem CONTRIBUTING.md để biết thêm chi tiết về cách đóng góp.
License
MIT