Documentation menu

MCP server

Keybeat runs a remote Model Context Protocol server so AI agents can manage monitors and investigate failures directly.

  • URL: https://mcp.keybeat.dev/mcp
  • Transport: streamable HTTP
  • Auth: OAuth 2.1, approved once by a human in the browser

Add it to Claude Code

Shell
claude mcp add --transport http keybeat https://mcp.keybeat.dev/mcp

The first time Claude Code uses a Keybeat tool, it opens your browser at app.keybeat.dev. Log in, check the app name and where the access will be sent, pick the organization the agent should work in and approve. The approval gives full API access to that organization, including billing. Claude Code stores the OAuth token, and from then on the tools work without prompting. You can check the connection with /mcp inside Claude Code. The Claude Code plugin installs the server together with the Keybeat skill.

To make the server available in every project rather than only the current one, add --scope user:

Shell
claude mcp add --transport http --scope user keybeat https://mcp.keybeat.dev/mcp

Other MCP clients

Any client that supports remote MCP servers over HTTP with OAuth can connect with the URL https://mcp.keybeat.dev/mcp. The server supports dynamic client registration and PKCE, so no client id needs to be configured.

If your client cannot do OAuth, it can send an API key instead:

Text
Authorization: Bearer kb_...

For example, in Claude Code:

Shell
claude mcp add --transport http keybeat https://mcp.keybeat.dev/mcp \
  --header "Authorization: Bearer $KEYBEAT_API_KEY"

Tools

The tools are thin wrappers over the REST API, so they follow the same rules, limits and billing behavior.

ToolWhat it does
whoamiThe current identity, organization, plan, limits and usage.
list_monitorsAll monitors with state and last run summary.
get_monitorOne monitor by id or slug.
upsert_monitorCreate or update a monitor by slug, with name, script and interval. enabled, alert_channel_ids and on_status_page keep their current values when left out (new monitors start enabled).
delete_monitorDelete a monitor and its history.
pause_monitorPause scheduled runs.
resume_monitorResume a paused monitor.
set_monitor_envSet or unset encrypted environment variables on a monitor.
validate_scriptStatic checks of a spec: parses, has a test, within size limit, imports only @playwright/test, otpauth and Node built-ins.
run_monitorStart an on-demand run of a saved monitor and wait for the result.
list_runsRun history for a monitor, optionally filtered by status.
get_runFull run detail: steps, error, logs and artifact URLs.
get_monitor_statsUptime and p50 and p95 durations per day and per region.
list_incidentsIncidents, optionally only open ones or for one monitor.
list_alert_channelsThe organization's alert channels.
create_alert_channelAdd an email, webhook or SMS channel.
get_billingPlan, subscription items, next invoice estimate and limits.
get_status_pageThe organization's status page settings, or not_found when there is none yet.
update_status_pageChange the status page slug, title, enabled flag and monitors.

Things to ask your agent

  • "Which Keybeat monitors are down right now?"
  • "Why did the checkout monitor fail last night? Show me the failing step."
  • "Is login getting slower in Asia?"
  • "Add the signup and checkout monitors to our status page."
  • "Pause the staging monitors until Monday."

Limits worth knowing

  • run_monitor only runs saved monitors and counts towards the monthly on-demand cap. Test new specs locally with npx keybeat test, which the MCP server cannot do.
  • upsert_monitor can add paid add-ons. On a subscribed organization this changes the bill at once. On the free plan it returns a checkout URL for a human. See Billing.
  • Secrets can be written with set_monitor_env but never read back.