Skip to content

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:

WayAddressGood for
The DownBad pluginhttps://mcp.downbad.app/mcpMost people: the server plus the incident skills
Sign in to DownBadhttps://mcp.downbad.app/mcpYour own machine, no key to keep
An API keyhttps://mcp.downbad.app/mcpCI, scripts and machines where no browser opens
No accounthttps://mcp.downbad.app/toolsTrying 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.

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.

  1. In a terminal, add DownBad’s plugin catalog and install the plugin:

    Terminal window
    claude plugin marketplace add downbadapp/downbad-plugin
    claude plugin install downbad@downbad
  2. 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:downbad does the same.

  3. 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.

  4. Back in Claude Code, /mcp lists 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.

Terminal window
claude mcp add --transport http downbad https://mcp.downbad.app/mcp

Then 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.

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.

Terminal window
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.

Terminal window
claude mcp add --transport http downbad-tools https://mcp.downbad.app/tools

https://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.

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 couldn’t reach the server.

  1. Check the address is exactly https://mcp.downbad.app/mcp (or https://mcp.downbad.app/tools without an account) and the transport is http: claude mcp get downbad shows both.

  2. Check DownBad itself at downbad.app. If it’s down for everyone, wait; your settings are fine.

  3. In /mcp, choose the server and reconnect it, or start a new session.

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.

  1. Run claude mcp logout downbad to clear the old sign-in, then claude mcp login downbad, and approve on DownBad’s page again. For the plugin’s server the name is plugin:downbad:downbad.

  2. 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 add again 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.

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.

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.

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.