WatchFor
API

MCP Server

Connect AI agents (Claude, Cursor, VS Code) to WatchFor via the Model Context Protocol — 26 tools over your monitors, incidents and alerting.

WatchFor ships a built-in MCP server, so AI agents can monitor your infrastructure, investigate incidents and manage monitors through natural language. It exposes 26 tools backed by the REST API — the same authentication, permissions and per-plan rate limits apply.

Endpoint: https://watchfor.io/api/mcp (Streamable HTTP)

Authentication uses your API key as a Bearer token. A read-scope key allows only the read tools; write scope enables creating monitors, alert rules, maintenance windows and incident actions.

Connect a client

Claude Code

claude mcp add --transport http watchfor https://watchfor.io/api/mcp \
  --header "Authorization: Bearer wf_live_YOUR_KEY"

Cursor / VS Code / other JSON-config clients

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

Claude Desktop (via mcp-remote)

Claude Desktop's config 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"
      ]
    }
  }
}

Available tools

ToolScopeWhat it does
get_summaryreadOrg snapshot: monitor status counts, active incidents, health score
get_incident_statsreadPeriod stats: severity totals, MTTR, MTBF, most unstable monitors
get_planreadPlan limits and live usage
list_monitors / get_monitorreadBrowse monitors (filter by type/status/tag)
get_monitor_typesreadDiscovery catalog: all 25 types, metrics, config fields
get_monitor_uptime / get_monitor_checksreadUptime % and recent check results
list_locationsreadProbe locations for monitor creation
list_alert_rulesreadA monitor's alert rules
list_contact_groupsreadNotification groups (where alerts go)
list_incidents / get_incidentreadIncident history and full detail
list_maintenance_windowsreadScheduled maintenance
create_monitor / update_monitorwriteCreate or edit monitors
delete_monitorwritePermanently delete a monitor (irreversible)
set_monitor_pausedwritePause / resume
run_check_nowwriteImmediate on-demand check
create_alert_rule / update_alert_rule / delete_alert_rulewriteManage alert rules (catalog-validated)
acknowledge_incident / resolve_incidentwriteIncident actions
create_maintenance_window / delete_maintenance_windowwriteSchedule / cancel maintenance

delete_monitor is irreversible (it also removes the monitor's alert rules and incident history) — the tool description instructs agents to confirm with you first unless you explicitly asked for deletion.

How agents discover your setup

The get_monitor_types tool returns the full monitor-type catalog (target formats, valid alert metrics with operators and example values, config fields), and every validation error names the allowed values — so agents can self-correct instead of guessing. get_summary is the recommended first call: it answers "how is everything right now?" in one round trip.

Notes

  • The server is stateless Streamable HTTP with JSON responses — no SSE stream, no sessions. Works with every current MCP client.
  • Tool calls count toward your plan's API rate limit (X-RateLimit-* semantics as in the REST API).
  • 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".

On this page