Cronalert

io.github.jaredhobbs由 GitHub 账号 jaredhobbs 发布v1.5.1更新于 Oct 24, 2026

Manage CronAlert uptime monitors, check results, and incidents from any MCP client.

概览

AI 生成的概览

CronAlert MCP 服务器让助手列出、创建、更新和删除可用性监控,并查看检测结果与故障事件。

可以做什么
  • 列出、查看、创建、更新、暂停和删除 HTTP、心跳与 TCP 端口监控
  • 查看带可用率百分比和响应时间的检测历史
  • 列出所有监控或单个监控的进行中故障,并读取故障更新
  • 在故障上发布状态更新,并列出公开状态页
  • 从其他可用性监控服务或 JSON、CSV 导入监控
适用场景
适合已经使用 CronAlert 做可用性监控、希望让助手直接创建监控、检查是否有服务宕机、排查故障,或在维护期间暂停某个监控而无需打开控制台的场景。
运行要求
本地 npm 包需要 Node.js 18+,也可直接连接基于 Streamable HTTP 的远程端点。需要一个 CronAlert 账户(免费套餐即可)以及 Settings 中创建的 API 密钥,通过 CRONALERT_API_KEY 环境变量提供,远程服务器则使用 Authorization 头中的 Bearer 令牌。
安装前请注意
API 密钥会随每次请求发送,且仅限单个团队的资源。写入类工具可创建、更新、暂停、删除和导入监控,并发布故障更新;只读密钥在写入接口会被拒绝,读写密钥可启用删除确认令牌。监控名称、URL 和检测间隔会发送到 CronAlert 的服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cronalert,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cronalert-mcp

MCP server for CronAlert uptime monitoring. Manage your monitors, check results, and incidents from Claude, Cursor, Windsurf, or any MCP-compatible AI client.

Quick Start

1. Get your API key

Sign up at cronalert.com and create an API key in Settings > API Keys.

When creating the key, choose a scope:

  • Read-only — the agent can list and read monitors, check results, and incidents but cannot create, update, or delete anything. Recommended for most agent setups.
  • Read & write — full access, including destructive tools. Optionally enable "require confirmation" so deletes need a server-issued confirmation token (see Security & permissions).

2. Add to your MCP client

Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "cronalert": {      "command": "npx",      "args": ["-y", "cronalert-mcp"],      "env": {        "CRONALERT_API_KEY": "ca_your_api_key_here"      }    }  }}

Claude Code — run:

bash
claude mcp add cronalert -e CRONALERT_API_KEY=ca_your_key -- npx -y cronalert-mcp

Cursor — add to .cursor/mcp.json:

json
{  "mcpServers": {    "cronalert": {      "command": "npx",      "args": ["-y", "cronalert-mcp"],      "env": {        "CRONALERT_API_KEY": "ca_your_api_key_here"      }    }  }}

Remote server (no install needed) — connect any MCP client to:

https://cronalert.com/mcp

Authenticate with Authorization: Bearer ca_your_key header. Supports Streamable HTTP transport.

3. Start using it

Ask your AI assistant to manage your monitors (see examples below).

4. Optional: add the Agent Skill

The server gives your agent the tools; the cronalert-uptime-monitoring skill tells it when and how to use them (monitor-type selection, heartbeat grace periods, outage triage, confirm-before-delete). Copy the folder into .claude/skills/ (Claude Code) or ~/.codex/skills/ (Codex), or install it from Agensi.

Available Tools

ToolDescriptionType
list_monitorsList all monitors with status and response timesRead
create_monitorCreate an HTTP, heartbeat, or TCP port monitor (heartbeats take an expected interval and grace period)Write
get_monitorGet details for a specific monitorRead
update_monitorUpdate settings, heartbeat interval/grace, pause/resumeWrite
delete_monitorPermanently delete a monitorWrite
get_check_resultsCheck history with uptime % and response timesRead
get_monitor_incidentsIncidents for a specific monitorRead
list_incidentsAll active incidents across monitorsRead
list_status_pagesYour public status pagesRead
add_incident_updatePost a status update on an active incidentWrite
get_incident_updatesStatus updates for an incidentRead
import_monitorsImport monitors from UptimeRobot, Pingdom, Better Stack, StatusCake, Checkly, Oh Dear, Cronitor, Healthchecks.io, Dead Man's Snitch, Datadog, CronAlert JSON, or CSVWrite

Security & permissions

Approvals in MCP clients are client-side: write tools carry destructiveHint: true, so Claude Code / Desktop / Cursor prompt before running them. CronAlert adds two server-side boundaries so the client prompt isn't the only gate:

  • Read-only API keys. A read-only key is rejected on every write endpoint (create/update/delete/import) with a 403 — enforced by the server, regardless of the client. Hand agents a read-only key and destructive tools simply cannot succeed. This is the strongest boundary and the recommended default.
  • Confirmation tokens for deletes. If a read-write key has "require confirmation" enabled, delete_monitor first returns a preview plus a short-lived, resource-bound confirmToken instead of deleting. The agent must call delete_monitor again with that token in the confirm argument. This prevents a single stray or prompt-injected call from destroying data and gives the server an auditable, explicit second step.

The API key is scoped to a single team, so the blast radius of any key is that team's resources.

Examples

Example 1: Create a monitor and check its status

User prompt: "Create a monitor for https://api.example.com/health that checks every minute, then show me its details."

What happens:

  1. The AI calls create_monitor with name: "API Health", url: "https://api.example.com/health", checkInterval: 60
  2. CronAlert creates the monitor and returns its ID
  3. The AI calls get_monitor with the new ID to show the details

Expected output:

json
{  "id": "abc123",  "name": "API Health",  "url": "https://api.example.com/health",  "method": "GET",  "checkInterval": 60,  "lastStatus": "unknown",  "createdAt": "2026-03-08T12:00:00Z"}

Example 2: Check uptime and respond to incidents

User prompt: "Are any of my monitors down? If so, show me the error details."

What happens:

  1. The AI calls list_incidents to check for active incidents
  2. If incidents exist, it calls get_monitor for each affected monitor
  3. It calls get_check_results to get the recent error details

Expected output (no incidents):

json
{  "data": [],  "message": "No active incidents"}

Expected output (with incident):

json
{  "data": [    {      "id": "inc_xyz",      "monitorId": "abc123",      "cause": "Expected status 200, got 503",      "startedAt": "2026-03-08T11:45:00Z"    }  ]}

Example 3: List monitors and pause one for maintenance

User prompt: "List all my monitors, then pause the staging one."

What happens:

  1. The AI calls list_monitors to get all monitors
  2. It identifies the staging monitor by name
  3. It calls update_monitor with id: "staging_id" and paused: true

Expected output:

json
{  "id": "staging_id",  "name": "Staging Server",  "isPaused": true,  "lastStatus": "up"}

Example 4: Heartbeat for a nightly backup (v1.5.0+)

User prompt: "Create a heartbeat monitor called Nightly DB backup that expects a ping every 24 hours with a 2-hour grace period, and give me the URL to add to the cron job."

What happens:

  1. The AI calls create_monitor with type: "heartbeat", name: "Nightly DB backup", checkInterval: 86400, gracePeriod: 7200
  2. CronAlert returns the monitor including its unique ping url
  3. The AI shows the URL to append to the job, e.g. pg_dump ... && curl -fsS <url>

checkInterval is the expected seconds between pings (plan minimum, 60 on Pro+, up to 604800). gracePeriod is optional; it defaults to the interval capped at one hour. For http and tcp monitors checkInterval is ignored and set from your plan.

Requirements

Privacy Policy

This MCP server connects to the CronAlert API (cronalert.com/api/v1/) using your API key. It transmits:

  • Monitor configuration (names, URLs, check intervals) when creating or updating monitors
  • API key for authentication on every request

Data is processed by CronAlert's servers on Cloudflare's infrastructure. No data is stored locally by the MCP server itself. See our full Privacy Policy for details on data collection, retention, and your rights.

Support

License

MIT

来源:README.md,提交 ab9fead

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.5.1最新Sep 26, 2026
  2. v1.0.6Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分