---
title: "Connect Claude Code"
description: "Add the UptimeMonitoring MCP server to Claude Code with one shell command."
doc_version: "1"
last_updated: "2026-06-02"
---

<!-- Cross-link contract: every "See also" block on all connect pages links to each other + /docs/mcp. Update in lock-step when adding a new connect page. -->

## Prerequisites

- Claude Code installed (current stable)
- An `umk_live_` API key from [app.uptimemonitoring.com](https://app.uptimemonitoring.com) — see [Authentication](/docs/authentication/)

## Connect

Add the UptimeMonitoring remote HTTP MCP server with your API key as a Bearer header:

```bash
claude mcp add --transport http uptimemonitoring https://api.uptimemonitoring.com/mcp \
  --header "Authorization: Bearer umk_live_..."
```

Replace `umk_live_...` with your actual API key.

### OAuth alternative

Omit the `--header` flag and run `/mcp` inside Claude Code — Claude Code will open your browser to authenticate via OAuth and store the access token automatically.

## Verify

In Claude Code, type `/mcp` and confirm `uptimemonitoring` appears with status **connected**. Then ask:

> list my monitors

You should see a tool call to `list_monitors` and a list of your monitors (or an empty result if you don't have any yet).

## Common errors

| Symptom | Cause | Fix |
|---------|-------|-----|
| `401 Unauthorized` | Key is wrong, missing, or not `umk_live_`-prefixed | Confirm the key from [Authentication](/docs/authentication/#api-key-format) starts with `umk_live_` and is pasted in full |
| Tools missing after `/mcp` | MCP server registered but Claude Code hasn't reloaded | Restart Claude Code fully |
| Connection refused / DNS error | Wrong host in the server URL | The endpoint is `https://api.uptimemonitoring.com/mcp`, not the marketing host |

## See also

- [MCP reference and host compatibility matrix](/docs/mcp/)
- [Connect ChatGPT](/docs/connect-chatgpt/)
- [Connect Cursor](/docs/connect-cursor/)
- [Connect via OpenAI API](/docs/connect-openai-api/)
- [Connect via REST API](/docs/connect-rest-api/)