WatchFor

Uptime and infrastructure monitoring for AI agents: create monitors, change alert rules, read incidents and run live checks from 20 locations. 64 tools, OAuth sign-in.

Hosted MCP Server

npx add-mcp 'https://watchfor.io/api/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

WatchFor MCP server for AI agents

Connect AI agents (Claude, Cursor, Codex, VS Code, any MCP client) to WatchFor — 64 tools, reference resources and prompt templates over the same API, or install one plugin with eleven agent skills.

WatchFor ships a built-in MCP (Model Context Protocol) server, so AI agents can watch your infrastructure, investigate incidents and manage monitors through natural language. It exposes 64 tools, four read-only resources and three prompt templates, all backed by the REST API — the same credentials, scopes, validation and per-plan rate limits apply, so the MCP surface can never behave differently from the API.

Endpoint: https://watchfor.io/api/mcp — Streamable HTTP Manifest: /.well-known/mcp.json · Server card: /api/mcp/server-card (also at /.well-known/mcp/server-card.json)

Directory listing: Available in the Claude directory (steps)

Authentication

Two ways, both described in Authentication:

  • OAuth 2.1 — clients that implement the MCP authorization spec (claude.ai connectors, Claude Code and most current clients) connect with no key at all: add the server, your browser opens a WatchFor consent screen, approve, done. The scopes you grant (read / write) bound what the AI agent can do. The server advertises its authorization server and the scopes to ask for on every 401 via WWW-Authenticate; they include offline_access, so a client that follows the MCP authorization spec gets a refresh token and stays signed in after the one-hour access token expires. Clients that publish their identity (Claude, Claude Code, ChatGPT, Codex, VS Code) connect with it, without registering first. The consent screen names the application, shows the domain such a client identifies itself with, and says where your browser will be sent after approving; clients WatchFor does not recognise are marked not verified, so only approve a request you started yourself from an app you trust. Everything you have approved is listed under Account settings → Security → Connected apps, where one click revokes an app's access.
  • API key — put Authorization: Bearer wf_live_… in the client's header configuration. A read key allows only the read tools; write enables creating and changing monitors, alert rules, contacts, maintenance windows, report emails and incident actions.

Discovery is anonymous: initialize, ping, tools/list, resources/list, resources/read, prompts/list and prompts/get work without any credential, so a client (or a registry scanner) can inspect the server before you have configured anything. Only tools/call touches your account and needs a credential — an unauthenticated tools/call returns HTTP 401 with the OAuth hint.

Install as a plugin

Claude Code, Cursor and Codex install WatchFor as a plugin: one step adds the MCP server (OAuth, no key to copy) and eleven agent skills that teach the agent how to use it well. The plugin is the open-source agent-toolkit repo (MIT). It runs nothing on your machine — no hooks, scripts or local server; the skills are Markdown instructions — and every tool call goes to https://watchfor.io/api/mcp with your own permissions.

Plugin for Claude Code

/plugin install watchfor --marketplace watchfor-io/agent-toolkit

That needs Claude Code 2.1.275 or later. In two steps (from the shell with claude plugin …):

/plugin marketplace add watchfor-io/agent-toolkit
/plugin install watchfor@watchfor

Then run /mcp, pick watchfor and sign in — the browser opens the WatchFor consent screen. A headless session (claude -p, CI) can't open a browser: sign in once with claude mcp login plugin:watchfor:watchfor, or use an API key.

Plugin for Cursor

Cursor loads local plugins from ~/.cursor/plugins/local:

git clone https://github.com/watchfor-io/agent-toolkit ~/.cursor/plugins/local/watchfor

Run Developer: Reload Window and sign in to the watchfor server from Cursor's MCP settings. Besides the server and the skills, the plugin adds a watchfor rule that Cursor applies while WatchFor tools are in use.

Plugin for Codex

codex plugin marketplace add watchfor-io/agent-toolkit

Open /plugins in the Codex CLI (or the Plugins tab of the ChatGPT desktop app), pick the WatchFor marketplace and install WatchFor. To add only the server, see Codex below.

Agent skills

Each skill is a short SKILL.md with the workflow for one job; details load from its references/ only when the job needs them.

SkillUse it when
watchfor-setupConnecting a client, fixing a 401/403, picking an organization, checking plan limits
watchfor-monitoringCreating and changing monitors and alert rules (with references for every monitor type), hosts
watchfor-incident-responseSomething is down: triage, root cause, acknowledge and resolve, false positives, post-mortems
watchfor-diagnosticsMeasuring a target live from the probe fleet, graded A+ to F where it applies
watchfor-maintenanceDeploys and planned work: maintenance windows, pausing, MCP release markers, page-integrity baselines
watchfor-status-pagesWhat customers see: status pages and incident announcements
watchfor-reliability-reportsUptime and SLA reports, MTTR/MTBF, the flakiest services, report emails
watchfor-bulk-operationsPausing, resuming or deleting many monitors, batch calls, cleanup audits
watchfor-alert-routingWho gets paged, why an alert didn't arrive, contacts, groups and on-call
watchfor-game-serversGame server monitors: query ports, players, latency, packet loss and jitter per region
watchfor-browser-checksWriting, test-running and scheduling Playwright browser checks; Core Web Vitals

For agents that load skills without a plugin: npx skills add watchfor-io/agent-toolkit, or the discovery index at /.well-known/agent-skills/index.json (Agent Skills discovery 0.2.0 — a skill with references is a .tar.gz archive; every SKILL.md and reference file is also served on its own, so relative links resolve).

Connect a client

Claude (claude.ai connectors)

WatchFor is available in the Claude directory. In Claude, open Customize → Connectors (the Connectors directory), search for WatchFor and select Connect to Claude. Claude opens the WatchFor consent screen; approve the scopes you want and the connector works in claude.ai, Claude Desktop and the mobile apps — no API key needed. On a Claude Team or Enterprise plan, an Owner adds the connector for the Claude organization first.

Or add it by URL as a custom connector: Settings → Connectors → Add custom connector → https://watchfor.io/api/mcp. Claude discovers the OAuth server and walks you through the consent screen — no API key needed.

Claude Code

Signed in with your Claude account, Claude Code also offers the WatchFor connector you added in claude.ai. To add the server to Claude Code directly:

# OAuth (no key) — run /mcp afterwards and authenticate in the browser:
claude mcp add --transport http watchfor https://watchfor.io/api/mcp

# or with an API key:
claude mcp add --transport http watchfor https://watchfor.io/api/mcp \
  --header "Authorization: Bearer wf_live_YOUR_KEY"

Codex

codex mcp add watchfor --url https://watchfor.io/api/mcp
codex mcp login watchfor --scopes read,write,offline_access

offline_access asks for a refresh token, so the sign-in outlasts the one-hour access token. With an API key instead, set bearer_token_env_var = "WATCHFOR_API_KEY" under [mcp_servers.watchfor] in ~/.codex/config.toml.

Cursor, VS Code and other JSON-config clients

{
  "mcpServers": {
    "watchfor": {
      "url": "https://watchfor.io/api/mcp",
      "headers": {
        "Authorization": "Bearer wf_live_YOUR_KEY"
      }
    }
  }
}

Clients that support remote OAuth can omit headers and authorize interactively instead.

Claude Desktop (via mcp-remote)

Claude Desktop's config file takes stdio servers — bridge with mcp-remote:

{
  "mcpServers": {
    "watchfor": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://watchfor.io/api/mcp",
        "--header",
        "Authorization: Bearer wf_live_YOUR_KEY"
      ]
    }
  }
}

Tools

The tools cover less than the REST API. REST-only today: creating, editing and deleting status pages and announcements (the tools read them), editing a maintenance window or reading one by id, org variables and secrets, an alert rule by id, bulk actions and batch, marking a resolved incident as maintenance, and browser-check script versions. What neither offers is listed under dashboard-only.

Every tool wraps one or two REST calls with the same names and semantics; validation errors return the allowed values so AI agents can self-correct. Tool annotations mark get_*/list_* as read-only, delete_* and reset_* as destructive, and get_/list_/set_/update_/delete_ as idempotent (except set_expected_change_window: each call records a new release marker). run_diagnostic and diagnose_target are not read-only — they send real probe traffic, spend a metered allowance and need the write scope — so a client asks before running them. openWorldHint is true only for the tools that reach the open internet (run_diagnostic, diagnose_target, run_check_now, test_playwright_script) and false for everything that acts on your WatchFor data. Each tool also has a human-readable name, sent as title and as annotations.title (for example get_monitor is "Get monitor"), which client tool pickers and connector directories show; the documentation server's tools have one too.

Tool and parameter descriptions state facts only: what a tool does, takes and returns, its limits, scope and side effects. They name no other tool and give the model no instructions; how to combine the tools is taught by the agent skills and the server's instructions.

Organization

ToolScopeWhat it does
get_summaryreadOne-call organization snapshot: monitor status counts (up/degraded/down/paused/unknown + health score), hosts running the agent (online/stale/offline/never), the combined fleet health, active incident counts, open maintenance windows, attention items (monitors with no notification route) and certificate / domain expiry with the ten soonest. Start here for "how is my infrastructure right now?"
get_incident_statsreadAggregate incident statistics over 24h, 7d, 30d or 90d: totals by severity, MTTR, MTBF and the five most unstable monitors
get_reportreadOrg report for a period vs the previous equal-length period: uptime, incidents, MTTR/MTBF, downtime, response-time trend, per-monitor rows, type-aware sections and plain-language insights — the same engine as the dashboard Reports page
get_report_schedulesreadThe two report-email cadences (weekly + monthly): enabled state, recipients and any who unsubscribed
set_report_schedulewriteEnable/disable the weekly or monthly report email and/or replace its recipients (up to 5)
get_planreadCurrent plan with limits (-1 unlimited, 0 off) and live usage counts

Monitors

ToolScopeWhat it does
list_monitorsreadList monitors (cursor-paginated, slim items); filter by type, status (up, degraded, down, paused, unknown), tag or search name/target with q
get_monitorreadOne monitor by id, including config, available_metrics (the alert metrics valid for its type), last_check and the type-aware latest block
get_monitor_typesreadDiscovery catalog of all 31 monitor types: target format, default rules, exact alert-metric strings, operators, config fields. Consult before creating monitors or rules. Type playwright = browser checks (Playwright journeys); type browser = Core Web Vitals (Lighthouse)
create_monitorwriteCreate a monitor; location ids from list_locations, target/config per get_monitor_types; interval validated against the plan minimum; config validated per type (400 names the key). Name up to 50 characters, up to 10 tags, optional description. locations is optional: heartbeat monitors take none, and cloneFromMonitorId copies an existing monitor of the same type (rules + config; omitted fields default to the source's; the clone is validated like a new monitor). is_paused: true creates it paused; scheduling_strategy is roundrobin (default), random or parallel
update_monitorwriteUpdate fields; send only what changes. config is a true partial: omitted keys are kept, null removes a key, arrays and objects you send replace the stored value whole; description: null clears it; scheduling_strategy switches roundrobin / random / parallel
set_monitor_pausedwritePause (paused: true) or resume a monitor; idempotent. A resume starts one immediate check (check_queued; at most one per monitor per 10 minutes) or says by when the scheduled one runs (next_check_at)
delete_monitorwritePermanently delete a monitor with its alert rules and open incidents. Marked destructive, so clients ask you before running it
run_check_nowwriteDispatch an immediate check (plan-limited per hour); the result lands in get_monitor_checks shortly
reset_monitor_historywriteIrreversible. Delete everything a monitor recorded — every check, every incident with its notes, post-mortems and status-page copies, and the alerting counters — and start uptime over ("since reset"). The monitor keeps its configuration, alert rules, tags and locations. Marked destructive, so clients ask you before running it
get_integrity_baselinereadPage integrity monitors: the accepted baseline of every watched page — whether it has one, when and how it was captured (first check, dashboard, API or auto-accept timer), trusted sources and the text-change threshold
accept_integrity_baselinewritePage integrity monitors: accept what the newest check saw as the new baseline — all pages or only pages — after an intended change such as a deploy; fresh: true checks the pages first and accepts that check; open integrity incidents resolve at once when nothing else differs; pages a check could not fetch come back in skipped
set_expected_change_windowwriteMCP monitors: release marker — for the next window_minutes (1–60, default 15) tool-inventory drift doesn't open an incident; the change is recorded in the drift timeline as Expected — release marker (only the Tool Inventory Changed rule is covered; downtime still alerts). Call it before a deploy; 12 per hour per monitor
get_monitor_uptimereadUptime percentage and check totals over 1h–90d, maintenance excluded
get_suggested_thresholdsreadGame server monitors: latency thresholds suggested from the monitor's own checks — per-region p95, warning and critical, which regions need their own
get_monitor_checksreadRecent check results with per-location performance; success=false fetches only failed checks; hours up to 720; pages with cursor (next_cursor of the previous answer)
list_locationsreadProbe locations — the ids for create_monitor

Alert rules

ToolScopeWhat it does
list_alert_rulesreadA monitor's alert rules (system defaults + custom)
create_alert_rulewriteCreate a rule; metric must come from the type catalog, value is a string; one rule per metric per severity (a duplicate is refused — change it with update_alert_rule); duration_window and contact_group_id as in REST; warnings says when it can't fire as the monitor is set up
update_alert_rulewriteFix a noisy threshold, change severity, or enable/disable; fields are validated against the catalog
delete_alert_rulewriteDelete a custom rule (system rules cannot be deleted — disable them instead)

Incidents

ToolScopeWhat it does
list_incidentsreadIncidents newest first; filter by status, severity, monitor and a since/until range; each carries the rule that fired and duration_seconds
get_incidentreadFull detail of one incident
acknowledge_incidentwriteAcknowledge a firing incident — pauses repeat notifications while someone investigates
resolve_incidentwriteManually resolve; accepted asynchronously, re-fires if the problem persists
accept_expected_changewriteDrift incidents (MCP Tool Inventory Changed): mark the change as intended — resolves an open incident and records it on the incident and the drift timeline (Accepted as expected by …), optional note; other incidents → 400
set_incident_uptime_exclusionwriteMark a resolved incident as a false positive (excluded: true, optional reason) or undo it (excluded: false). Excluded incidents stay on record but are left out of uptime, SLA, reports and the public status page; excluding an open incident fails with 409
get_postmortemreadThe incident's post-mortem — title, status, severity, root-cause category, each section's text, timeline entries and action items; postmortem: null when there is none yet
update_postmortemwriteCreate or fill the post-mortem draft: only the sections you pass change; title, severity, root-cause category, status; timeline entries and action items are appended (repeats skipped). Publishing and deleting stay in the dashboard

Contacts & groups

ToolScopeWhat it does
list_contactsreadAlert recipients with their group memberships ("who gets notified?")
get_contactreadOne contact: name, email, phone, groups
create_contactwriteCreate a recipient, optionally straight into groups
update_contactwriteUpdate a contact; group_ids replaces all memberships
delete_contactwriteDelete a contact (irreversible)
list_contact_groupsreadNotification groups — where alerts are delivered
get_contact_groupreadOne group including its member list
create_contact_groupwriteCreate a group, optionally with initial members
update_contact_groupwriteUpdate a group; contact_ids replaces the full member list
delete_contact_groupwriteDelete a group (the default group cannot be deleted; a group still used by alert rules, monitors or channels is refused — remove the references first, or use DELETE /v1/contact-groups/{id}?force=true)

Maintenance, notifications & audit

ToolScopeWhat it does
get_check_detailsreadEverything the probe saw on one check run (headers, timings, TLS, DNS answers, assertions), redacted like the dashboard's probe-result view
list_status_pagesreadThe org's status pages with what each says right now
get_status_pagereadOne page: overall_status, components with status and the monitors and hosts behind them, third-party mirrors
list_announcementsreadAnnouncements on a page with their update timeline and schedule
get_on_callreadWho is on call, until when, who is next, layers, overrides, reachability
list_notification_channelsreadAlert delivery channels with type, routes and a redacted config
list_hostsreadServers running watchfor-agent: liveness (online / stale / offline / never) and current CPU, memory, disk; status filter
get_hostreadOne host — OS, agent version, hardware, addresses, gauges, monitor_id
get_host_metricsreadMetric time series for a host over 1h–30d (cpu.usage_pct, mem.used_pct, disk.used_pct, …)
list_maintenance_windowsreadScheduled maintenance windows, most recent first
create_maintenance_windowwriteSchedule a window — alerts suppressed and downtime excluded for the covered monitors; ISO 8601 start, duration in minutes, monitors by id or tag
delete_maintenance_windowwriteCancel a window — removes future occurrences and lifts active silences
list_notificationsreadAlerting delivery history — every notification attempt with channel, status (sent/failed/silenced), severity, incident and monitor
list_activityreadThe organization audit trail — who changed what and when, with free-text search and entity/time filters

Live diagnostics

Three tools that measure right now from the probe fleet instead of reading what WatchFor already recorded — and they work on targets you do not monitor. Full reference: Live diagnostics.

ToolScopeWhat it does
list_diagnosticsreadCatalog of the 27 live checks, the question each answers, its exact option names, and this organization's remaining allowance for each. Call it before a long investigation to see the budget
run_diagnosticwriteRun one check (tool + target + optional options and location_id): DNS, DNS propagation, whois/RDAP, ping, traceroute, TCP port, blacklists, SSL, TLS grade, MCP handshake, HTTP headers, PHP version, software exposure, API request, CDN, sitemap, Brotli, email policy, DNS health, mail servers, Core Web Vitals or a full site audit. Graded checks return a grade (the dashboard's A+ to F letter, its rules version (rubric) and the findings that cap it, with fixes). The tool description enumerates every slug with its question, so no discovery round-trip is needed
diagnose_targetwriteInvestigate a host or URL in ONE call — DNS, propagation, TLS grade, HTTP headers and ping from up to 3 regions in parallel — returned as one verdict with a status per check, a machine-readable findings list and the TLS and security headers grades. Needs a plan with location selection

A check that ran and found a problem (closed port, NXDOMAIN, expired certificate, a host that doesn't resolve, failed handshake) returns normally with success: false and the reason in error — that is the answer, not an error. Each run spends the same per-plan allowance the dashboard Toolbox uses, and every response carries remaining so a model can pace itself.

Browser checks

Three tools for browser checks — Playwright scripts run in a sandboxed browser. The agent recipe is on Browser checks with an agent.

ToolScopeWhat it does
test_playwright_scriptwriteRun a Playwright Test script once without saving it (script, target, optional location_id and timeout_seconds). A script error returns 400 naming the line. Waits up to about 60 s and returns the run — status, failed step with its error and code frame, console errors, failed requests, Web Vitals — plus missing_variables (the process.env names the organization has not set). Counts against the plan's test runs per hour
get_playwright_runreadOne run in detail: monitor_id + run_id for a scheduled or Run-now run, or test_run_id for a test run. Steps, failure, console and page errors, failed requests, Web Vitals per page, runtime versions, signed screenshot URLs (15 min) and the trace-viewer link
list_playwright_runsreadA browser check's runs, newest first — status, duration, failed step, error counts; filter status=failed or flaky

To keep a script that passed as a scheduled check, call create_monitor with type: "playwright" and config.script.

Resources

Read-only reference documents an AI agent can pull over the same protocol (resources/list, then resources/read with the uri). Anonymous.

ResourceURIContent
monitor-typeshttps://watchfor.io/api/v1/meta/monitor-typesThe monitor type catalog with exact alert-metric strings and config fields (application/json)
agents-quickstarthttps://watchfor.io/agents.mdWhen to use WatchFor, how to authenticate, the first calls to make (text/markdown)
llms-overviewhttps://watchfor.io/llms.txtStructured overview of the platform, monitor types and key pages (text/plain)
openapihttps://watchfor.io/openapi.jsonThe OpenAPI 3.1 spec of the REST API (application/json)

Only these URIs are readable; resources/templates/list is empty and subscriptions are not offered.

Prompts

Reusable, parameterized starting points (prompts/list, prompts/get) that compose the tools above. Anonymous to list and fetch.

PromptArgumentsWhat it asks the AI agent to do
diagnose-incidents—Call get_summary, then list firing incidents; for each report the monitor, the rule that fired, its duration, the likely cause and a next step
setup-monitortarget (required), type (optional)Confirm the right type and config via get_monitor_types, create the monitor with sensible defaults, then propose fitting alert rules and ask before creating them
reliability-reportperiod (optional, default 7d)Combine get_summary and get_incident_stats into a short reliability assessment with one improvement suggestion

Documentation MCP server

Beyond the product server, WatchFor runs a second, read-only documentation MCP server so an AI agent can browse and read these docs, and the blog, over the same protocol it uses to act:

Endpoint: https://watchfor.io/api/docs-mcp — anonymous, no key. · Server card: /api/docs-mcp/server-card

A POST to https://watchfor.io/docs/api/mcp (this page's URL) is served by the same server, so a client that guesses the docs URL as an MCP endpoint also works.

ToolWhat it does
list_docsEvery documentation page with path, title and description; optional section filter (api, monitors, alerting, …)
search_docsSearch by keywords or a plain-language question (English works best); returns the best-matching sections — page, section heading, a /docs/…#anchor deep link and a short excerpt. Optional limit (default 8)
search_blogSearch the blog for deeper reading: how WatchFor is built, monitoring and SRE practice, incident write-ups. Returns ranked post sections, one per post: title, post path, section heading, date, category, a /blog/…#anchor deep link and an excerpt. Optional limit (default 5, max 10)
read_docThe markdown of one page by path (e.g. /docs/api/mcp), or of one section with a #anchor in the path or a section argument (e.g. /docs/monitors/maintenance#recurring-examples). Also reads a blog post or one of its sections by its /blog/… url from search_blog

Use the product server at /api/mcp to act on an account and this one to learn. Blog posts are dated and go deeper than the docs; for product facts and limits the docs are the source of truth. Tool-execution errors carry a structured { "error": { "code", "message" } } in the text content.

Transport details

  • Streamable HTTP, stateless, JSON responses. POST a JSON-RPC 2.0 message (or a batch array) and get JSON back; notifications are acknowledged with 202 and no body.
  • Protocol versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 are accepted; an unknown requested version negotiates to the latest. The handshake-less 2026-07-28 revision is not supported yet.
  • initialize returns an Mcp-Session-Id header for clients that expect one; the server is stateless, so any replica accepts any request and the id is never validated. DELETE (session end) returns 200.
  • GET opens a keep-alive text/event-stream (comments only — the server never pushes messages) so strict clients complete the transport handshake.
  • Tool results are content: [{ type: "text", text: }] and the same object as structuredContent; failures set isError: true with the API's error message (including the HTTP status), REST paths in it written as the tool that does that call (see get_monitor_types). Unknown tools and invalid arguments are reported the same way, naming the available tools or the offending argument — including an argument the tool doesn't take (paused on create_monitor answers Unknown field: paused. create_monitor accepts name, type, …), never dropped. Another spelling of an argument it takes is accepted: isPaused works as is_paused (see Naming).
  • Browser clients: the endpoint answers CORS preflights for any origin (OPTIONS, Access-Control-Allow-Origin: *) — it is authenticated by the bearer key, never a cookie, like the REST API.
  • Each authenticated MCP request counts once toward your plan's API rate limit — a tool call is one request, however many API calls it makes internally. Anonymous discovery is bounded per IP. Both advertise X-RateLimit-* headers.
  • A request refused before any method runs is still a JSON-RPC error with your request's id, keeping the HTTP status and headers: 401 → code -32040, 403 → -32043, 429 → -32029 (with Retry-After). error.data carries the REST error code, http_status and, on a 429, retry_after_seconds.

Notes

  • get_summary is the recommended first call; get_monitor_types before creating anything. The server's instructions say the same to the model.
  • Example prompts: "Any incidents in the last 24 hours? What caused them?", "Create an HTTP monitor for shop.example.com checked every minute from two EU locations", "Schedule maintenance for all monitors tagged backend on Saturday 22:00–24:00 UTC", "Who got paged for incident 19351 and did the Slack message go out?".
  • WatchFor can also monitor MCP servers (handshake, tool inventory, drift) — see MCP monitoring.
  • For AI agents that delegate whole tasks rather than call tools, see the A2A agent.

Canonical page: https://watchfor.io/docs/api/mcp · All docs: https://watchfor.io/docs · Site guide: https://watchfor.io/llms.txt