Connect an AI Assistant with MCP
Goal: let an AI assistant such as Claude or GitHub Copilot work with your DownBad account for you: list your monitors and open incidents, report your plan’s usage, check whether DownBad itself is working, and run a domain health check. It can explain who hears about a monitor’s alerts, and dry-run an outage without sending anything. On a paid plan it can also add a monitor for a service it ships, add a heartbeat for a scheduled job, put your monitors into maintenance while it deploys, and set up your alert channels, alert profiles, escalation and quiet hours.
MCP (Model Context Protocol) is the standard way AI assistants connect to other services. DownBad runs an MCP server, a web address your assistant connects to. It has two addresses:
| Address | Tools | Needs |
|---|---|---|
https://mcp.downbad.app/mcp | Every tool below | Sign-in or an API key |
https://mcp.downbad.app/tools | run_health_check and get_downbad_status | Nothing |
Use /mcp if you have a DownBad account. It asks for a sign-in on purpose:
an assistant offers to sign you in only when the server asks for one, so an
address that also answered without an account would never give you the
chance. Use /tools to try DownBad without an account.
Your assistant then gets DownBad’s tools, the actions it can take. Some only read; others change your account, and those work only with a key or sign-in that allows changes, on a paid plan.
What your assistant can do
Section titled “What your assistant can do”Tools that read
Section titled “Tools that read”| Tool | What it does | Needs an account |
|---|---|---|
run_health_check | Checks a domain’s DNS, certificate, website and email setup, with the same findings as the health check on downbad.app | No |
get_downbad_status | Says whether DownBad itself is working, so your assistant doesn’t try to fix your site during an outage on our side | No |
list_monitors | Lists every monitor on your account | Yes |
get_monitor | Reads one monitor’s settings and state | Yes |
list_open_incidents | Lists your open incidents, newest first | Yes |
get_plan_and_usage | Lists each limit of your plan with how much you use and how much is left, and which features your plan includes | Yes |
export_config | Exports your monitors, bundles, groups and alert settings, without any channel secrets | Yes |
list_bundles | Lists your bundles (the monitors DownBad set up for one domain) with their monitors by id | Yes |
list_maintenance | Lists the maintenance windows running now | Yes |
get_incident_dossier | Reads everything DownBad knows about one incident: the cause, how sure it is, each region’s answer, what changed and the fix | Yes |
get_feedback_status | Reads a feedback item’s status by its FB reference | Yes |
list_known_issues | Lists the problems on DownBad’s side that DownBad already knows of and that may affect your monitors | Yes |
list_channels | Lists your alert channels, each webhook by its host only and each email address with its name hidden | Yes |
list_alert_profiles | Lists your alert profiles: which events alert for each kind of monitor, which channels hear first, and the escalation steps | Yes |
get_quiet_hours | Reads your account’s quiet hours and the time zone their times are read in | Yes |
explain_alerting | Says which channels hear about which of a monitor’s events and when, what holds its alerts back now, and any problem found | Yes |
simulate_alert | Dry-runs an event for a monitor at a time you choose and lists every step that would happen. It sends nothing | Yes |
Tools that tell DownBad something
Section titled “Tools that tell DownBad something”These send something to DownBad’s team and change nothing on your monitors or alerts. See Send feedback, check known issues and report a false alarm.
| Tool | What it does |
|---|---|
submit_feedback | Sends DownBad feedback and answers with its FB reference. Any key can send it, a Read key or a Free-plan account included |
report_false_alarm | Tells DownBad an incident was a false alarm, with the evidence your assistant found. Needs a Read and write key on Pro and above |
Tools that change your account
Section titled “Tools that change your account”These need a Read and write key, or a sign-in where you allowed changes, on a paid plan. Each one is the same change the DownBad API makes, with the same plan limits as DownBad itself.
| Tool | What it does |
|---|---|
create_monitor | Adds a monitor, such as a URL check for a new service. Without an interval, it checks at your plan’s default |
create_heartbeat | Adds a heartbeat for a scheduled job, and returns the job’s ping URL, the address the job calls after each run. This is the only time the tool shows that URL |
update_monitor | Changes a monitor’s name, interval, notification profile, settings or bundle. Settings sent replace the old ones |
pause_monitor | Pauses a monitor: it runs no checks until resumed |
resume_monitor | Resumes a paused monitor |
delete_monitor | Deletes a monitor and everything it recorded. This can’t be undone |
start_maintenance | Starts maintenance now on bundles or monitors: they keep being checked, but no alert goes out until it ends |
end_maintenance | Ends a maintenance window. Alerts resume five minutes later |
recheck_monitor | Checks a monitor once, now, from several regions, after a fix. When every region passes, its open incident closes on the next check. Pro plan and above |
add_incident_note | Adds a note to an incident, such as what was fixed. The incident page shows it |
These manage where your alerts go. See Manage alerting from your assistant.
| Tool | What it does |
|---|---|
create_channel | Adds an email or webhook channel. A new email address that isn’t a member’s sign-in address gets no alert until its owner confirms it |
update_channel | Changes a channel. Addresses or webhook settings sent replace the old ones |
delete_channel | Deletes a channel. This can’t be undone |
resend_channel_confirmation | Sends the confirmation message again to an email channel’s addresses still waiting to be confirmed |
test_channel | Sends a real test message through a channel, even one switched off: one to each address on it, or a test request to a webhook |
create_alert_profile | Adds an alert profile, from a recipe or with its rules written out |
update_alert_profile | Changes an alert profile’s name, description or rules. Rules sent replace the old ones |
delete_alert_profile | Deletes an alert profile no monitor, bundle or group uses. This can’t be undone |
set_escalation | Sets the escalation steps of one alert in a profile, such as “page Slack if it’s still down after 10 minutes”, replacing the steps it had |
set_quiet_hours | Sets your account’s quiet hours, replacing the ones you had. Needs a plan that includes quiet hours |
Every tool tells your assistant whether it only reads, changes something, or
removes something, so an assistant that asks before changes can ask you
first. The tools that delete, and the ones that replace settings whole
(update_monitor, update_channel, update_alert_profile,
set_escalation, set_quiet_hours), are marked as tools that remove or
overwrite something. recheck_monitor is marked as reaching outside
DownBad, because it sends checks to your site, and so are test_channel,
create_channel and update_channel, because they send a test message, a
confirmation email or a request to your webhook’s address.
Without an account, a health check is limited to 5 an hour and 20 a day for each address it comes from. The tools that need an account use your API key, and the key’s own limit of 60 requests a minute.
Before you start
Section titled “Before you start”You need an API key, the secret string starting with dbk_ that a
program sends instead of signing in. A Read key is enough for the tools
that read, explaining and dry-running alerts included. For your assistant to
add monitors, start maintenance or change your alerting, make a
Read and write key instead, on a paid plan. A Read key can still
send feedback.
-
Make a key. Follow Create and Revoke API Keys and name the key after the assistant, such as
Claude Code, so you know what stops working if you revoke it. That page shows each screen as you go. -
Copy the key when DownBad shows it. You see it only once.
To use only the health check and DownBad’s status, skip the key: in the
examples below, use https://mcp.downbad.app/tools as the address and
leave the Authorization lines out.
Some assistants can also connect by signing you in to DownBad in your browser, with no key to copy. Where that’s available, choose Sign in when the assistant offers it, then choose what the assistant may do on DownBad’s own page. Connect and Disconnect Apps shows that page, and how to disconnect the assistant later.
Connect your assistant
Section titled “Connect your assistant”Each assistant has its own setup and troubleshooting page, including signing in without a key: Claude Code, Claude on the web, desktop and mobile, ChatGPT, Gemini CLI, Grok Build, including its Agents Window desktop app, where Cursor’s docs now lead, Codex, Devin Desktop (formerly Windsurf), Mistral Vibe (formerly Le Chat), Perplexity and VS Code with GitHub Copilot. Claude Code, Gemini CLI and Grok Build can also install DownBad’s plugin, which adds skills for diagnosing an incident, fixing and rechecking it, wrapping a deploy in maintenance and importing monitors.
In each example, replace dbk_your_key with your key.
Run this in a terminal:
claude mcp add --transport http downbad https://mcp.downbad.app/mcp --header "Authorization: Bearer dbk_your_key"Add --scope user to use DownBad in every project, not only the current
one. Then start Claude Code and type /mcp: downbad is listed as
connected.
Remote servers are added to your Claude account, and then work in Claude Desktop, on claude.ai and in the mobile apps.
- Open Customize › Connectors.
- Choose Add, then Add custom connector.
- Name it
DownBadand enterhttps://mcp.downbad.app/mcpas the URL. - Under Authentication, choose No sign in.
- Under Request headers, add a header named
Authorizationwith the valueBearer dbk_your_key. - Choose Add.
If Claude says the header name needs approval, use Claude Code or the Agents Window, or leave out the header and sign in to DownBad instead, as Connect and Disconnect Apps describes.
On a Team or Enterprise plan, an Owner adds the connector under Organization settings › Connectors, and members then choose Connect.
The Agents Window is Grok Build’s desktop app, where Cursor’s docs now lead. Add
DownBad to ~/.cursor/mcp.json to use it in every project, or to
.cursor/mcp.json inside one project:
{ "mcpServers": { "downbad": { "url": "https://mcp.downbad.app/mcp", "headers": { "Authorization": "Bearer ${env:DOWNBAD_API_KEY}" } } }}${env:DOWNBAD_API_KEY} reads the key from an environment variable of
that name, so the key isn’t saved in a file you might share. Set the
variable before starting the Agents Window, or write the key in its
place. The full guide is
Grok Build.
Add DownBad to ~/.copilot/mcp-config.json to use it in every project,
or to .mcp.json at one project’s root folder:
{ "mcpServers": { "downbad": { "type": "http", "url": "https://mcp.downbad.app/mcp", "headers": { "Authorization": "Bearer ${DOWNBAD_API_KEY}" }, "tools": ["*"] } }}${DOWNBAD_API_KEY} reads the key from an environment variable of that
name. Set the variable before starting VS Code. Choose Copilot in the
Chat view’s Session Target dropdown to use it. The full guide is
VS Code with GitHub Copilot.
Any client that supports Streamable HTTP, the MCP standard for remote servers, can connect:
- URL:
https://mcp.downbad.app/mcp - Header:
Authorization: Bearer dbk_your_key
Expected result: ask your assistant “List my DownBad monitors”. It calls
list_monitors and answers with your monitors. Ask “Run a DownBad health
check on example.com” to try the tool that needs no account.
Add a monitor for a new service
Section titled “Add a monitor for a new service”With a Read and write key on a paid plan, ask your assistant, for example: “Add a DownBad monitor for https://api.example.com/health”.
-
A new monitor needs a notification profile, the rules for who gets its alerts. The assistant picks one from
list_monitors(each monitor’snotificationProfileId), or puts the monitor in a bundle withlist_bundles, and it takes the bundle’s profile. Tell it which to use if you have several. -
The assistant calls
create_monitorwith a name,kindurland the address inconfig.url. Leave the interval out: the monitor checks at your plan’s default.
Expected result: the tool answers with the new monitor, paused false
and nextCheckAt within one interval. It appears under Monitors in
DownBad’s sidebar.
Add a heartbeat for a scheduled job
Section titled “Add a heartbeat for a scheduled job”A heartbeat waits for your job to call it, and alerts you when a run is missed. Ask, for example: “Add a DownBad heartbeat for the nightly backup, which runs at 03:00 UTC”.
-
The assistant calls
create_heartbeatwith a name and the job’s schedule: every so many seconds ({ "type": "interval", "periodSeconds": 3600 }) or a cron expression with its time zone ({ "type": "cron", "expression": "0 3 * * *", "timezone": "UTC" }). -
The answer holds
pingUrl, the address the job calls after each successful run, and a note that this is the only time the tool shows it. Have the assistant put it straight into the job’s settings, such as a secret in your CI, not into code you share. -
The job calls the ping URL at the end of each run:
Terminal window curl -fsS -m 10 --retry 3 "$BACKUP_PING_URL"
If the ping URL is lost, an Owner or Editor can copy it from the heartbeat’s page in DownBad. See Set up a heartbeat.
Wrap a deploy in maintenance
Section titled “Wrap a deploy in maintenance”During a deploy your site may restart and fail a check or two. Maintenance keeps checking your monitors but sends no alert for them until it ends, so a planned restart doesn’t wake anyone. Maintenance needs a plan that includes it.
Ask your assistant, for example: “Put example.com into maintenance in DownBad, run the deploy, then end the maintenance”. It does this:
-
Find the bundle.
list_bundleslists your bundles with theirdomainandid. The assistant picks the one forexample.com. -
Start maintenance.
start_maintenancewith{ "bundleIds": ["<bundle id>"], "durationMinutes": 30 }. The answer is the window, with itsidand the monitors it covers incoveredMonitorIds.durationMinutesends the window on its own if the deploy fails part-way, so maintenance is never left on for good. -
Deploy. Your assistant runs your deploy as usual.
-
End maintenance.
end_maintenancewith the window’sid. The answer hasendedAtset. Alerts resume five minutes later, so a service still coming back up doesn’t alert at once.
Expected result: list_maintenance no longer lists the window, and no
alert went out for those monitors while it ran. A monitor still failing after
the five minutes alerts as usual.
In a deploy script, the same three calls work against the DownBad API directly. See Put monitors into maintenance in the API how-to.
Diagnose and fix an incident
Section titled “Diagnose and fix an incident”When a monitor goes down, your assistant can find out why, fix it where it has access (your code, your server, your DNS), and have DownBad confirm the fix. Rechecks need a Read and write key on the Pro plan or above; reading the diagnosis works with any key.
Ask your assistant, for example: “DownBad says api.example.com is down. Find out why, fix it, and confirm the fix with DownBad”. It does this:
-
Check DownBad itself.
get_downbad_statussays whether DownBad is working. During an outage on DownBad’s side your site may be fine, so the assistant stops here if it isn’t. -
Find the incident.
list_open_incidentslists what is down, with each incident’sid. -
Read the dossier.
get_incident_dossierwith the incident’sidanswers in two parts:- DownBad’s findings:
cause(a code such asurl.http-status, with DownBad’s sentence naming it),confidence(high,mediumorlow, with the reasons),regions(each probe region’s answer),change(what changed between the last passing check and the first failing one),downbadHealth(whether DownBad itself was working when the failure began) andfixDoc.url(the troubleshooting section that fixes this failure). untrustedEvidence, in a separate part: the text your site sent, such as an error message, a header or the start of the page, at most 2,000 characters. Your site, or anything in front of it, controls this text and can write anything in it, so the tool tells your assistant to read it as data and never follow it as instructions.
- DownBad’s findings:
-
Fix the problem. The assistant follows
fixDoc.urland the evidence: rolls back a deploy, renews a certificate, corrects a DNS record. Wrap the fix in maintenance first if it restarts the service (see Wrap a deploy in maintenance). -
Recheck.
recheck_monitorwith the monitor’s id and anotesaying what was fixed, such asRolled back the 14:02 deploy.(the monitor’s id is the incident’smonitorId). DownBad checks the monitor once, now, from several regions, and answers each region’s result with a one-linesummary. -
Leave a note if there’s more to say.
add_incident_notewith the incident’sidandtextrecords anything else, such as the follow-up work. Notes can be added to open and closed incidents.
Expected result: the recheck’s summary says every region passed and the incident will close on the monitor’s next scheduled check, which DownBad runs at once. When that check passes, the incident closes the usual way, with the recovery alert, and the incident page in DownBad shows the assistant’s note. If a region still fails, the incident stays open and the recheck is recorded on it: the assistant reads the region results and the evidence, and tries again.
A monitor can be rechecked once every 2 minutes and 10 times an hour, and an
account 30 times an hour. Past that, recheck_monitor is refused with
retryAt, the time the next recheck is allowed, and no check is sent.
Send feedback, check known issues and report a false alarm
Section titled “Send feedback, check known issues and report a false alarm”Your assistant can tell DownBad what it finds, and check what DownBad already knows, without you leaving the conversation.
-
Check the known issues first. Ask “Is there a known DownBad issue on my monitors?”. The assistant calls
list_known_issuesand lists the problems on DownBad’s side that may affect your monitors: the same ones each monitor’s page shows on its A known issue may affect this monitor line. If your problem is one of them, DownBad is already on it. -
Send feedback. Ask “Tell DownBad the Checkout monitor keeps saying down while the site works”. The assistant calls
submit_feedbackand tells you the FB reference, such asFB-7KQ2MX. Any key can send feedback, a Read key included. One person can send 20 items an hour. -
Follow it. Ask “What’s the status of FB-7KQ2MX?”. The assistant calls
get_feedback_status. A new item isreceived. -
Report a false alarm. When the assistant has checked an incident and found the site was fine, ask it to report the false alarm. It calls
report_false_alarmwith the incident’s id, a short summary and the evidence it gathered, which DownBad’s team reviews. This one needs a Read and write key on the Pro plan or above; on Free, send it as feedback instead.
The evidence is kept as untrusted text, up to 4,000 characters: it may quote your site, so DownBad only ever shows it as data. More detail on each is in Use the DownBad API.
Manage alerting from your assistant
Section titled “Manage alerting from your assistant”Your assistant can set up where your alerts go, tell you who hears about a monitor going down and when, and dry-run an outage without sending anything. Explaining and dry-running work with any key, on any plan. Changing channels, alert profiles, escalation and quiet hours needs a Read and write key on a paid plan; webhooks, alert profiles and quiet hours need a plan that includes them.
Four words used below:
- A channel is somewhere alerts go: one or more email addresses, a webhook (Slack, Discord, Teams, your own endpoint and so on), or the built-in Push channel.
- An alert profile says, for each kind of monitor, which events alert, how severe they are, and which channels hear about them first. Each monitor alerts through one profile.
- An escalation step is a later alert to more channels, sent only if the incident is still open after a delay you choose.
- Quiet hours are times, such as nights, when less severe alerts are held
for one summary afterwards (
digest) or dropped (suppress).
Ask your assistant, for example: “Send DownBad alerts for my URL monitors to [email protected] and our Slack webhook, post to Slack again if a site is still down after 15 minutes, hold warnings overnight, then show me what would happen if the shop went down at 3 am”. It does this:
-
Add the channels.
create_channelwithtypeemailand the addresses inrecipients, ortypewebhookand the webhook’s settings inconfig(urlandprovider, such asslack). The answer shows a webhook by its host only (hooks.slack.com) and an address with its name hidden (o***@example.com). No tool ever returns a webhook’s URL, token or headers, so keep your own copy where you got it. -
Wait for new addresses to be confirmed. An address that isn’t the sign-in address of someone on your account is sent a message titled Confirm this address for DownBad alerts, and gets no alert until its owner clicks the link. The channel’s
recipientsshow it with"confirmed": falseuntil then; the channel’s other addresses get every alert meanwhile. If the message was lost, or the answer hadconfirmationHeldBack(one went less than a minute ago),resend_channel_confirmationsends it again. -
Test them.
test_channelsends a real test message through a channel, even one that is switched off: an email channel sends one to each address on it, and a webhook gets one test request (PagerDuty gets a test alert and then a second request that resolves it).deliveredsays whether it went, anddetailwhat happened. An address still waiting to be confirmed is skipped, and an email channel that isn’t verified yet sends nothing. -
Set the rules.
list_alert_profileslists your profiles with their ids. To make a new one,create_alert_profilefrom a recipe (uptime-critical,status-change,quiet-hours-digestordev-sandbox) or with its rules written out inmonitorSettings.update_alert_profilechanges one; rules sent replace the old ones whole, so the assistant sends every rule the profile should keep. To put a monitor on a profile, it usesupdate_monitorwith the profile’s id asnotificationProfileId. -
Add escalation.
set_escalationwith the profile’s id, the monitor kind (such asurl), the event (such asfirst_failure) and thesteps. Each step has anidof your choosing,delaySecondsafter the first alert, thechannelIdsto tell and theminSeverityit needs. A step withdelaySeconds0 is part of the first alert. The steps replace the ones that alert had; an empty list removes them. -
Set quiet hours.
get_quiet_hoursreads them, withtimeZone, the zone their times are read in (the account owner’s).set_quiet_hoursreplaces them whole:enabled,mode(digestorsuppress),recurringwindows such as{ "dayOfWeek": 6, "startTime": "22:00", "endTime": "08:00" }, anyoneOffwindows, and theaffectedSeveritiesthey hold, such as["info", "warn"]. -
Ask who hears what.
explain_alertingwith a monitor’s id lists, for each event that alerts, the channels told at once, each escalation step with its delay, and whether quiet hours cover it, with a sentence saying it plainly. It also says what holds every alert back right now (paused, muted, in maintenance) and lists each problem found, with its fix. It’s built from the same rules DownBad uses to send. -
Dry-run an outage.
simulate_alertwith the monitor’s id, an event from the explanation (such asfirst_failure) and a time in UTC, such as2026-12-05T03:00:00Z. It lists every step that would happen, in order: who is sent the alert, who is held back by quiet hours, a mute or an unconfirmed address, and when each escalation step comes due. A step held by quiet hours givesholdEndsAt, when the hold ends, in UTC. Nothing is sent, queued or recorded, andsentis alwaysfalse.
Expected result: the explanation lists your new channels for
first_failure. The dry run at 3 am shows a send step for each channel
the first alert goes to, or a quiet_hours step where the quiet hours hold
it back (when the event’s severity is one they cover), and an escalation
step 15 minutes after the event. Your channels and profiles show in DownBad under
Settings › Alerts, the same as ones you make there. Each change your assistant made
is listed in Account › API activity with the key that made it.
The same steps work from a script, with each request written out, in Manage Alerting Through the API.
When a tool is refused
Section titled “When a tool is refused”A refused tool tells your assistant why, in the same words the DownBad API uses: the rule that refused it, what to do, when to try again if waiting helps, and a link to the fix. Your assistant usually passes that on to you. For each rule and its fix, see MCP Connection Problems.
Stop your assistant using DownBad
Section titled “Stop your assistant using DownBad”Revoke its key under Account › API keys. Its next tool call is refused. See Revoke a key.