Healthchecks

io.github.ni-c由 GitHub 帳號 ni-c 發布v0.3.0更新於 Oct 24, 2026

Inspect, create and adjust Healthchecks cron and uptime checks, and read why one failed

已驗證STDIO僅桌面效率與工作流安全與監控

概覽

AI 產生的概覽

針對 Healthchecks 的 MCP 伺服器,讓助理檢視排程工作與可用性檢查、讀取工作失敗原因,並建立或調整檢查。

可以做什麼
  • 列出並檢視檢查項目,可依標籤、slug 與狀態篩選,並以 UUID 或 unique_key 定位
  • 讀取最近的 ping、工作隨 ping 送出的輸出內容,以及檢查的上下線轉換紀錄
  • 列出通知整合與狀態徽章網址,並回報執行個體是否可連線與金鑰類型
  • 建立、修改、暫停、恢復與刪除檢查,刪除需確認權杖
適用情境
當你用 Healthchecks 監控排程工作與備份,並希望助理直接告訴你哪些檢查已中斷、工作為何回報失敗,或代為建立與調整檢查而不必開網頁介面時適用。
執行需求
透過 npx 或 Docker 映像以 stdio 在本機執行;npm 套件需要 Node.js 24 以上版本。需要 Healthchecks 專案 API 金鑰,放在 HEALTHCHECKS_API_KEY 中(32 個字元,依專案而非依帳號)。HEALTHCHECKS_URL 可指向自架執行個體而非 healthchecks.io。需要以 HTTPS 連線該執行個體的網路存取。
安裝前請注意
API 金鑰是專案憑證;唯讀金鑰仍無法使用 list_pings、get_ping_body、list_integrations 及所有寫入工具。寫入工具會建立、修改、暫停與刪除檢查,delete_check 無法復原且需人工確認。create_check 預設通知所有整合,除非指定 channels;unique 選項會把建立變成更新既有檢查。ping 內容與檢查文字屬於不可信資料。HEALTHCHECKS_INSECURE_TLS 會放寬憑證檢查。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Healthchecks,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

healthchecks-mcp

[CI] [OpenSSF Scorecard] [Socket Badge] [Glama score]
[npm version] [container image] [HTTP via mcp-hub]
[docs] [sponsor]

A Model Context Protocol (MCP) server for Healthchecks, the dead man's switch for cron jobs and scheduled tasks — it alerts you when a job stops checking in. Works against the hosted service and against a self-hosted instance alike.

Lets MCP clients like Claude Code, Claude Desktop or Codex see which scheduled jobs are healthy, read the output the failing one reported, and create or adjust checks — with the irreversible operations behind a confirmation token and the write tools switchable off entirely.

Fourteen tools is the ceiling, not the floor: HEALTHCHECKS_ALLOW_TOOLS=essential registers a curated seven instead, and a model picks the right tool far more reliably from seven than from fourteen — see choosing which tools load.

[An MCP client talks to healthchecks-mcp over stdio; the server calls the Healthchecks Management API v3 over HTTPS.]

[Listing the tools, narrowing them to the essential preset, and the startup abort a mistyped tool name produces]

What makes it different

It reads the ping bodies. get_ping_body returns what a job actually printed when it reported failure. Every other question — which check is down, since when, how often — is one step away from that one, and it is the endpoint the other Healthchecks MCP servers leave out.

Read-only API keys work properly. Healthchecks hands a read-only key a different object: no uuid, no ping_url, no channels — a 40-character unique_key instead. This server addresses checks by either, and get_api_key_info tells you up front which kind of key you configured and which tools it cannot reach, rather than leaving you with a 401 missing api key for a key that was sent.

It never pings a check. Pinging is how a job reports that it ran. A tool that could ping would let a model make a dead job look alive, which is the one thing monitoring must not allow — see Not exposed, on purpose.

It knows where this API is sharp. timeout and schedule cannot be combined because the upstream silently discards one of them; tags are validated against their space separator and keywords against their comma; a new check is given every integration unless you say otherwise, because the API's own default is a check that alerts nobody.

Requirements

  • Node.js ≥ 24
  • A Healthchecks project API key — Project Settings → API Access. Keys are per project, not per account, and are exactly 32 characters long.

Configuration

VariableRequiredDescription
HEALTHCHECKS_API_KEYyesProject API key. A read-only key works for part of the tool surface — see below
HEALTHCHECKS_URLnoSite root of a self-hosted instance, e.g. https://hc.example.net. Default https://healthchecks.io
HEALTHCHECKS_READ_ONLYnotrue registers only the read tools
HEALTHCHECKS_ALLOW_TOOLSnoComma-separated tool names, list_* prefixes, or essential for a curated preset
HEALTHCHECKS_DENY_TOOLSnoSame syntax; removed from whatever HEALTHCHECKS_ALLOW_TOOLS left
HEALTHCHECKS_INSECURE_TLSnotrue accepts self-signed certificates (scoped to this connection)
ELICITATIONnofalse replaces the approval dialog with the two-call token. Not prefixed

HEALTHCHECKS_URL is the site root, not the API root: https://hc.example.net, not https://hc.example.net/api/v3. Both are accepted — the suffix is trimmed — because the API documentation spells every example the long way.

Use https://. Over plain http the API key travels unencrypted; the server prints a warning unless the host is local. For self-signed certificates prefer a proper internal CA over HEALTHCHECKS_INSECURE_TLS.

Without an API key the server still starts and lists its tools (so registries and inspectors can introspect it), but every call except get_status fails with setup instructions instead of reaching the API.

Read-only keys. Healthchecks gates three tools that only read — list_pings, get_ping_body and list_integrations — behind a read-write key anyway. With a read-only key those fail, along with all five write tools.

The failure does not look like a permission problem: the API answers 401 {"error": "wrong api key"}, which reads as if the key were wrong or missing. It is not — those three tools translate it into what actually happened. get_api_key_info reports which kind of key is configured, and HEALTHCHECKS_DENY_TOOLS is the tidy way to stop offering them at all.

Choosing which tools load

HEALTHCHECKS_ALLOW_TOOLS and HEALTHCHECKS_DENY_TOOLS take comma-separated tool names; a trailing * matches a whole family. essential is a curated preset — list_checks, get_check, list_pings, list_flips, create_check, update_check and resume_check — marked as such in the tool reference.

sh
HEALTHCHECKS_ALLOW_TOOLS=essentialHEALTHCHECKS_ALLOW_TOOLS=list_*,get_checkHEALTHCHECKS_DENY_TOOLS=delete_check,pause_check

An entry that matches no tool aborts startup and names it, so a typo cannot silently hide a tool — an absent tool is not something anyone traces back to an environment variable. A filtered tool is never registered, so it is absent from tools/list and unknown to tools/call alike, exactly like a write tool under HEALTHCHECKS_READ_ONLY.

If you run several of these servers at once, mcp-hub is the other answer — its /hub endpoint replaces every server's tools with six meta-tools.

Installation

Claude Code

sh
claude mcp add healthchecks-mcp -- npx -y healthchecks-mcp

Claude Desktop

json
{  "mcpServers": {    "healthchecks-mcp": {      "command": "npx",      "args": ["-y", "healthchecks-mcp"],      "env": {        "HEALTHCHECKS_API_KEY": "…"      }    }  }}

Codex

toml
[mcp_servers.healthchecks-mcp]command = "npx"args = ["-y", "healthchecks-mcp"]env = { HEALTHCHECKS_API_KEY = "…" }

Docker

sh
docker run --rm -i \  -e HEALTHCHECKS_API_KEY=… \  ghcr.io/ni-c/healthchecks-mcp

Add -e HEALTHCHECKS_URL=https://hc.example.net for a self-hosted instance.

Through mcp-hub

A client that cannot spawn a local process — ChatGPT connectors, Claude on the web, Cursor, LibreChat — reaches healthchecks-mcp through mcp-hub: one container serves many stdio MCP servers over Streamable HTTP, with an OAuth 2.1 login behind a single password and long-lived tokens for the clients that cannot do OAuth. Its /hub endpoint puts every server behind six meta-tools, so one connector reaches all of them without N×tool schemas in the model's context, and it speaks both protocol revisions — a question this server asks travels through it to the person at the far end.

Its /config/mcp.json uses Claude Code's format, so the entry is the one you already have:

json
{  "mcpServers": {    "healthchecks-mcp": {      "command": "npx",      "args": ["-y", "healthchecks-mcp"],      "env": {        "HEALTHCHECKS_URL": "https://hc.example.net",        "HEALTHCHECKS_API_KEY": "…",        "HEALTHCHECKS_ALLOW_TOOLS": "essential"      },      "denyTools": ["delete_check,pause_check"]    }  }}

allowTools and denyTools there are the hub's own per-server filter, which is not the same thing as *_ALLOW_TOOLS in env — the difference, and the mistake it invites, are in the client guide.

Tools

Read tools are always registered. 🔑 marks the ones Healthchecks requires a read-write key for even though they only read; 👤 marks the ones that ask for a confirmation token before acting.

ToolDescription
list_checksChecks in the project, with tag, slug and status filters
get_checkOne check with every field, by UUID or unique_key
list_pings 🔑Recent pings of a check, newest first
get_ping_body 🔑The body a job POSTed with one ping — its output
list_flipsUp/down transitions of a check, with a time window
list_integrations 🔑Notification integrations and the UUIDs the write tools accept
list_badgesStatus badge URLs, per tag and for the project
get_statusWhether the instance is reachable — needs no API key at all
get_api_key_infoWhich instance, which kind of key, and what that key cannot do

Write tools are registered unless HEALTHCHECKS_READ_ONLY=true.

ToolDescription
create_checkCreates a check. Notifies every integration unless channels says otherwise
update_checkChanges the given fields. channels replaces the list rather than adding to it; an empty list is refused
pause_checkStops the check expecting pings — and alerting. resume_check puts it back
resume_checkPuts a paused check back into the new state
delete_check 👤Deletes a check. The UUID is not recoverable

Structured output

Every tool declares an outputSchema and answers with structuredContent alongside the text block, so a client can use the result without parsing prose:

jsonc
{  "untrusted": true,  "source": "healthchecks",  "checks": [{ "id": "…", "name": "Nightly Backup", "status": "up" }],  "total_in_project": 12,}

Every tool that reports anything from the instance carries untrusted: true and source: "healthchecks" as fields — a check name, a description and above all a logged ping body are written by whoever pinged, and a ping URL sits in a cron job on every monitored host. get_api_key_info is without it, and get_status carries it only when the instance answered something other than OK: a plain OK is this server's own sentence, and a marker on everything is a marker that means nothing.

Fields this server builds are described exactly; a check record is left open, because normalizeCheck passes through whatever a self-hosted release chose to add and the SDK validates every result against its schema before it goes out.

Not exposed, on purpose

  • Pinging. The server never calls a ping URL. Pinging is how a job says it ran; a tool that could ping would let a model — or text a model read — report success for a job that never executed, and a monitoring system that can be talked into a green status is worse than none.
  • Ping keys. They are not readable through the Management API, and this server does not ask for one.
  • Creating integrations. The API has no endpoint for it; they are configured in the web UI. list_integrations reads them.
  • The unique upsert as a default. create_check accepts it and says loudly in its result when it was used, because it turns a create into a silent update of a check that already exists.

Safety

  • delete_check asks a person. Where the client supports MCP elicitation it raises a real dialog that the model cannot answer on its behalf; where it does not, it falls back to a short-lived token bound to that exact check and that exact operation, and says so rather than implying somebody approved. pause_check is deliberately not asked about — resume_check puts it back and nothing is lost in between, and a dialog in front of a reversible change is how people learn to tick without reading. See Asking a person.
  • Confirmation prompts never quote content from Healthchecks — a check's name and description are free text this server does not control, and that text is read by a model.
  • Ping bodies and check descriptions are marked as untrusted data, because anything that can ping a check can write into them.
  • Error bodies are truncated, HTML error pages are dropped, and every response has a byte ceiling enforced while it streams — the Management API paginates nothing.
  • HEALTHCHECKS_READ_ONLY=true does not register the write tools at all, and HEALTHCHECKS_DENY_TOOLS cuts finer along the same line — a filtered tool is never built, not refused at call time.
  • The API key is deleted from process.env once it has been read, and never travels in a request body.

Documentation

The full guide, tool reference and security notes live at healthchecks-mcp.ni-c.de (source in docs/).

Development

sh
npm installnpm run lint && npm run build && npm run test:coverage

Releasing

  1. Add the CHANGELOG entry and bump package.json.
  2. npm run lint && npm run build && npm run test:coverage
  3. Commit, then push a signed tag: git tag -s vX.Y.Z -m "vX.Y.Z" && git push origin main vX.Y.Z

The release workflow publishes to npm (Trusted Publishing, with provenance), creates the GitHub release from the CHANGELOG section and updates the MCP Registry entry.

Contributing

Issues, discussions and pull requests are welcome — see CONTRIBUTING.md. For vulnerabilities please use private reporting rather than a public issue; the policy is in SECURITY.md.

License

MIT © Willi Thiel

來源:README.md,提交 f324166

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分