Use DownBad in Claude Code
Goal: Claude Code reads your DownBad monitors and incidents, works out why an incident happened, fixes it where it has access, and has DownBad confirm the fix.
Claude Code connects to DownBad’s MCP server, the address an AI assistant uses to reach DownBad (MCP, the Model Context Protocol, is the standard for that). Pick one way to connect:
| Way | Address | Good for |
|---|---|---|
| The DownBad plugin | https://mcp.downbad.app/mcp | Most people: the server plus the incident skills |
| Sign in to DownBad | https://mcp.downbad.app/mcp | Your own machine, no key to keep |
| An API key | https://mcp.downbad.app/mcp | CI, scripts and machines where no browser opens |
| No account | https://mcp.downbad.app/tools | Trying the health check and DownBad’s status only |
The tools themselves, and which need a paid plan, are listed in Connect an AI Assistant with MCP.
Install the DownBad plugin
Section titled “Install the DownBad plugin”The plugin adds DownBad’s MCP server and four skills, written instructions Claude Code follows for a job: diagnose an incident, fix it and recheck, wrap a deploy in maintenance, and import monitors from another service.
-
In a terminal, add DownBad’s plugin catalog and install the plugin:
Terminal window claude plugin marketplace add downbadapp/downbad-pluginclaude plugin install downbad@downbad -
Start Claude Code and type
/mcp. Choose plugin:downbad:downbad and start its sign-in. Your browser opens DownBad. From a terminal,claude mcp login plugin:downbad:downbaddoes the same. -
Sign in to DownBad if you aren’t already. On DownBad’s Connect an app page, check the app’s name and the address it sends you back to, choose Read only or Read and write, and choose Approve. That page, and what each choice allows, is shown in Connect and Disconnect Apps.
-
Back in Claude Code,
/mcplists plugin:downbad:downbad as connected.
Expected result: claude plugin details downbad lists the four skills
(deploy-maintenance, diagnose-incident, fix-and-recheck,
import-monitors) and one server, downbad. Ask “Why is my DownBad
monitor for example.com down?” and Claude Code uses the diagnose-incident
skill.
The plugin adds only the server you sign in to. To try the health check before you sign in, add the no-account address by hand, as in No account below.
Connect without the plugin
Section titled “Connect without the plugin”Sign in
Section titled “Sign in”claude mcp add --transport http downbad https://mcp.downbad.app/mcpThen type /mcp in Claude Code, choose downbad and start its sign-in,
and approve on DownBad’s page as in step 3 above. From a terminal,
claude mcp login downbad does the same.
Use an API key
Section titled “Use an API key”Make a key first: Create and Revoke API Keys.
A Read key is enough to read; a Read and write key, on a paid plan,
lets Claude Code make changes. Name the key Claude Code, so you know what
stops working if you revoke it.
claude mcp add --transport http downbad https://mcp.downbad.app/mcp --header "Authorization: Bearer $DOWNBAD_API_KEY"$DOWNBAD_API_KEY is an environment variable holding your key, so the key
isn’t typed where your shell history keeps it. Add --scope user to use
DownBad in every project, not only the current one.
No account
Section titled “No account”claude mcp add --transport http downbad-tools https://mcp.downbad.app/toolshttps://mcp.downbad.app/tools is for trying the health check and DownBad’s
status without an account. It gives run_health_check and
get_downbad_status, and nothing that reads an account. The DownBad server
already has both, so you don’t need this one once you’ve signed in.
Expected result: ask “List my DownBad monitors”. Claude Code calls
list_monitors and answers with your monitors.
Have DownBad start your agent
Section titled “Have DownBad start your agent”The steps above have you ask your assistant. An agent webhook works the other way round: when DownBad confirms an incident, it sends the details to your agent and starts it, and again when the incident recovers. It’s a webhook channel on a paid plan, with one of three destinations:
- Claude Code Routine: starts a Claude Code routine, which can then use this connection to read the incident and recheck.
- GitHub repository_dispatch: starts whichever workflow or agent runs in your repository.
- Agent Webhook: the signed incident payload for any other agent.
Troubleshooting
Section titled “Troubleshooting”/mcp shows downbad as failed
Section titled “/mcp shows downbad as failed”Claude Code couldn’t reach the server.
-
Check the address is exactly
https://mcp.downbad.app/mcp(orhttps://mcp.downbad.app/toolswithout an account) and the transport ishttp:claude mcp get downbadshows both. -
Check DownBad itself at downbad.app. If it’s down for everyone, wait; your settings are fine.
-
In
/mcp, choose the server and reconnect it, or start a new session.
downbad says it needs authentication
Section titled “downbad says it needs authentication”You haven’t signed in yet, or the sign-in or key stopped working: it was revoked, it expired, or the person who made it left the account.
-
Run
claude mcp logout downbadto clear the old sign-in, thenclaude mcp login downbad, and approve on DownBad’s page again. For the plugin’s server the name isplugin:downbad:downbad. -
If you use a key, check it under Account › API keys in DownBad. A revoked key shows Revoked; make a new one and run
claude mcp addagain with it.
Each reason DownBad gives is explained in MCP Connection Problems.
The browser doesn’t open, or claude -p can’t sign in
Section titled “The browser doesn’t open, or claude -p can’t sign in”Signing in needs an interactive Claude Code session: claude -p and the
Agent SDK can’t complete it. Sign in once from an interactive session, or use
an API key on machines with no browser, such as CI.
DownBad’s page refuses to connect the app
Section titled “DownBad’s page refuses to connect the app”The Connect an app page says why: a Viewer can approve Read only, the request expired, or your sign-in has no DownBad account. Each case and its fix is in Connected App Refused.
A tool is refused
Section titled “A tool is refused”Claude Code passes on DownBad’s reason: the rule that refused it, what to do, and when to try again. A tool that changes your account needs Read and write access on a paid plan; a recheck needs the Pro plan or above. Find the rule in MCP Connection Problems.
The skills don’t appear
Section titled “The skills don’t appear”Run claude plugin list. If downbad@downbad is missing or disabled, run
claude plugin install downbad@downbad again, or
claude plugin enable downbad@downbad, then start a new session.
Still stuck
Section titled “Still stuck”Collect the output of claude mcp list, the tool that failed and its error
word for word, and when it happened. Never include a whole key. Then send it
to us through Contact Us.