MCP server
Connect Claude Code, Cursor, VS Code or any MCP client to your UptimeWarden account: with just the URL in connectors, or with an API token in other clients.
UptimeWarden runs an MCP (Model Context Protocol) server, so an AI agent can read and manage your account. Ask "is anything down?", "what happened to the checkout API last night?" or "start a 30-minute maintenance on the shop before I deploy", and the agent calls UptimeWarden for you.
- Endpoint:
https://app.uptimewarden.online/api/mcp - Auth: OAuth sign-in (claude.ai, Claude Desktop and other clients that follow the MCP authorization spec) or an API token, the same kind the CLI and the Terraform provider use
- Plans: every plan that has API access
Every tool is one call to the REST API. The token's permissions, your plan's limits and the API's validation apply exactly as they would to a script, and changes show up in your audit log.
Connect with just the URL (OAuth)
Clients that support MCP OAuth connect with just the URL: claude.ai custom connectors, Claude Desktop, ChatGPT connectors, Cursor, VS Code, and others that follow the MCP authorization spec. There is no token to paste.
- In your client, add
https://app.uptimewarden.online/api/mcpas a connector. - The client opens UptimeWarden's Connect … page. If you are signed out, you sign in first.
- The page lists what the app will be able to do and where the access goes.
- Click Allow or Deny.
Good to know:
- Lifetime. The app gets an API token that works for 1 hour. It is renewed automatically while the app stays connected. The refresh token is valid for 30 days; if the app is unused for 30 days, connect it again.
- Where it shows. The connection is listed on More › Developers › API & Tokens as one token named
MCP: <app name>. For an app at an unknown host, the name includes the host (for exampleMCP: Foo (foo.example.com)). Deleting that token disconnects the app. A password reset, or an admin suspending the account, disconnects it too. - Permissions granted. Read, create and delete monitors (
monitors:read,monitors:create,monitors:delete), read monitor results (monitors:results:read), read and write maintenance windows (monitors:maintenance:read,monitors:maintenance:write), read, update and comment on incidents (incidents:read,incidents:update,incidents:comment), read SSL status (ssl:status:read), read security analysis (security:analysis:read), read health predictions (health:predictions:read), and read and write deploys (deploys:read,deploys:write). Neveradmin, and never the infrastructure-as-code permissions (webhooks, status pages, on-call, API tokens). - Plan and limit. You need a plan with API access. The connection counts toward your plan's API token limit; at the limit, the Connect page says so.
- The consent page. It names the app only when the return address is exactly that app's own callback: Claude's on claude.ai or ChatGPT's on chatgpt.com. Another page on the same site does not count. An app on your own computer (a
localhostaddress, or an app link such ascursor://) is shown under the name it gives itself, as an app on this computer. For any other address, the title readsConnect an app at <host>and says the app is not verified. Only allow apps you started connecting yourself.
For client developers
-
Discovery:
/.well-known/oauth-protected-resource(RFC 9728) and/.well-known/oauth-authorization-server(RFC 8414). A401from/api/mcpcarriesWWW-Authenticate: Bearer resource_metadata="…". -
Client registration:
POST /api/oauth/register(dynamic client registration). A redirect URI is accepted when it is:https;httponlocalhost,127.0.0.1or::1. The port may change between registration and sign-in (RFC 8252 §7.3), but the path must stay the same;- an app's own scheme in reverse-domain form (
com.example.app:/callback, RFC 8252 §7.1), orcursor://.
Other schemes are refused, and so are fragments.
-
Authorization: the authorization code flow with PKCE
S256only. The response carriesiss(RFC 9207, advertised asauthorization_response_iss_parameter_supported). -
Token:
POST /api/oauth/token, with theauthorization_codeandrefresh_tokengrant types. Refresh tokens rotate and work once. -
Revocation:
POST /api/oauth/revoke(RFC 7009).
1. Create a token
For clients that send a header instead of signing in, such as Claude Code, or Cursor and VS Code when set up with a header, use an API token.
In the dashboard go to More › Developers › API & Tokens and create a token on the API tokens tab. Start with read-only permissions (monitors:read, monitors:results:read, incidents:read, ssl:status:read). Add write permissions only when you want the agent to change things. The agent only sees the tools your token allows.
2. Connect your client
Claude Code
claude mcp add --transport http uptimewarden https://app.uptimewarden.online/api/mcp \
--header "Authorization: Bearer uptw_xxx"
Cursor
In ~/.cursor/mcp.json:
{
"mcpServers": {
"uptimewarden": {
"url": "https://app.uptimewarden.online/api/mcp",
"headers": { "Authorization": "Bearer uptw_xxx" }
}
}
}
VS Code
In .vscode/mcp.json:
{
"servers": {
"uptimewarden": {
"type": "http",
"url": "https://app.uptimewarden.online/api/mcp",
"headers": { "Authorization": "Bearer uptw_xxx" }
}
}
}
GitHub Copilot
- Copilot in VS Code uses VS Code's MCP settings above. You can also leave out
headersand add only the URL; VS Code then signs in with OAuth. - Copilot CLI and Copilot in JetBrains, Eclipse and Xcode sign in with OAuth when you add just the URL (see the OAuth section above).
- Copilot cloud agent and Copilot code review (the agents that run on GitHub.com) do not support OAuth for remote servers, so they use a token:
- In the repository, go to Settings › Secrets and variables › Agents and add a secret named
COPILOT_MCP_UPTIMEWARDENwhose value isBearer uptw_xxx, including the wordBearer. - Go to Settings › Copilot › MCP servers and add:
- In the repository, go to Settings › Secrets and variables › Agents and add a secret named
{
"mcpServers": {
"uptimewarden": {
"type": "http",
"url": "https://app.uptimewarden.online/api/mcp",
"headers": { "Authorization": "$COPILOT_MCP_UPTIMEWARDEN" },
"tools": ["*"]
}
}
}
The cloud agent uses these tools without asking for approval, so give the token read-only permissions unless you want the agent to change things. Copilot code review uses only the read-only tools.
Other clients
Any client that speaks Streamable HTTP and can send an Authorization header works. The server supports protocol version 2026-07-28 and the 2025 revisions (2025-03-26, 2025-06-18, 2025-11-25).
For a client that cannot send a header but supports MCP OAuth, see the OAuth section above.
Tools
| Tool | Permission | What it does |
|---|---|---|
get_status_overview | monitors:read | Monitors up, down and paused, open incidents, 24-hour uptime and response time |
list_monitors, get_monitor | monitors:read | Monitors and their settings |
get_monitor_results, get_monitor_stats | monitors:results:read | Check results and uptime, last 7 days |
create_monitor, update_monitor | monitors:create | Create a monitor; change, pause or resume one |
delete_monitor | monitors:delete | Delete a monitor and its history |
list_maintenance_windows | monitors:maintenance:read | Maintenance windows of a monitor |
start_maintenance, end_maintenance | monitors:maintenance:write | Quiet alerts for up to 240 minutes, or end early |
list_regions, list_escalation_policies, list_webhooks | monitors:read | The ids monitor settings take |
list_incidents | incidents:read | Incidents, last 30 days |
update_incident | incidents:update | Acknowledge an incident (acknowledged) or mark it resolved (resolved). It does not reopen a resolved one: an incident opens again when its monitor fails again |
add_incident_comment | incidents:comment | Add a note to an incident's timeline |
get_ssl_status, get_monitor_ssl | ssl:status:read | Certificate expiry and validity |
get_security_analysis | security:analysis:read | Security-header grade and fixes |
get_health_predictions | health:predictions:read | Forecast, anomalies and recommendations |
list_deploys, get_deploy | deploys:read | Recorded deploys |
record_deploy, update_deploy | deploys:write | Record a deploy marker or change its status. The marker is listed by list_deploys, shows on the incident timeline and is added to an alert that fires within 2 hours after the deploy started |
The arguments of the monitor tools are the fields of the REST API, with the same names and limits. Ids are always the publicId a list tool returns.
Good to know
- Agents can change things. Most clients ask for your approval before a tool call, and each tool is marked read-only or destructive so the client can tell them apart. The surest guard is the token: leave write permissions off it when you do not need them.
- Errors come back to the agent. A missing permission, a plan limit or a bad field is returned as the tool's result with the API's message, so the agent can explain it or correct itself.
- Rate limits. Each message to
POST /api/mcpcounts against 120 per minute per token. A tool call also counts in its own tier, the one of the REST call it makes (for example 60 per minute for a tool that writes). A429carriesRetry-After. See API getting started. - Nothing runs on your machine. The server is hosted by UptimeWarden; your client only sends requests.
- Revoking access is deleting the token under More › Developers › API & Tokens. An app connected with OAuth is listed there as an
MCP: <app name>token; deleting it disconnects the app.
Related topics
- API Tokens: permissions and permission groups
- Developer Quickstart: the other ways to automate UptimeWarden
- MCP Monitor: monitoring your own MCP servers