# phuryn/staygreen [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/phuryn/staygreen  
**GitHub Stars:** 34  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/phuryn-staygreen

## Description
Uptime and incident monitoring for apps built with coding agents: read status, uptime, response times, incident evidence and SSL/domain expiry; scan an app; set up its website check, cron heartbeats and status page in one call; draft incident updates. npx -y staygreen mcp, also hosted at https://staygreen.io/mcp (OAuth).

## Tools
Capabilities this server exposes over MCP:

- **get_status** — Current status of one app or every app: monitors, page components and open incidents
- **list_monitors** — Monitors in your workspace, filtered by app, type or state, with each one's last check
- **get_uptime** — Measured uptime, downtime minutes, incident counts and daily history. Unmeasured time is no data, not 100%
- **get_response_times** — Response-time series for a monitor, by city and country
- **get_incidents** — Incident evidence and timelines: failing assertions, locations and masked snippets
- **get_ssl_and_domain_expiry** — Certificate and domain expiry dates for monitored hosts
- **scan_app** — A one-time scan of a public app URL. Optional keys are used once and never stored. Creates nothing
- **provision_app** — Sets up an app's website check, SSL and domain check, status page and cron heartbeats in one call
- **create_monitor** — Adds one monitor to an app, with the dashboard's own checks and plan limits
- **pause** — Pauses one monitor or one app's monitors for up to 24 hours, then resumes them
- **draft_incident_update** — Saves an incident note as a draft. It appears publicly only once you publish it in the dashboard

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "staygreen": {
    "url": "https://staygreen.io/mcp"
  }
}
```

## Documentation

## What phuryn/staygreen does

phuryn/staygreen exposes Staygreen's monitoring workspace through MCP. It gives agents access to application status, monitor state, uptime measurements, response-time data, incident evidence, and SSL or domain expiry dates. Monitoring results can be examined by app, monitor, location, type, or state depending on the tool.

The server also covers selected operational actions. An agent can scan a public application URL without creating monitoring resources, provision a set of checks and a status page, add an individual monitor, pause monitoring temporarily, or save an incident update as a draft. Draft updates require publication from the Staygreen dashboard before they become public.

## How it works

The hosted service is available at `https://staygreen.io/mcp` over streamable HTTP. Each request is authenticated. OAuth lets an MCP client sign in and select a Staygreen workspace, while API-token authentication supports CI and scripts. The authenticated account must be an administrator of the workspace, and calls can read or change that workspace's monitors according to the token's permissions.

A local installation is provided by the `staygreen` npm package. Running `npx -y staygreen mcp` starts a stdio MCP server that calls Staygreen's REST API with a workspace token. Node.js 22 or later is required for the package. Without a token, the local server can use `scan_app`, but authenticated workspace operations require credentials.

Write operations accept a UUID `request_id`. Reusing the same identifier with the same inputs allows a write to be retried safely. The hosted service and local package expose the same tool set.

## Setup and configuration

For an OAuth connection, add `https://staygreen.io/mcp` to an MCP client that supports sign-in, authenticate with a Staygreen account, and select the target workspace. Creating an account there creates a Free workspace.

For token-based use, create a read-only or read-write workspace token in the Staygreen dashboard under Agents and API. Store it as `STAYGREEN_API_TOKEN`, then start the local server with:

```sh
claude mcp add staygreen -e STAYGREEN_API_TOKEN=… -- npx -y staygreen mcp
```

The same bearer token can be used with the hosted MCP endpoint or Staygreen's REST API. Keep tokens, heartbeat URLs, restricted keys, signing secrets, and header values out of public issue reports.

## Tools and capabilities

- `get_status` reports monitors, page components, and open incidents for one app or the whole workspace.
- `list_monitors` filters workspace monitors by app, type, or state and includes each monitor's latest check.
- `get_uptime` returns measured uptime, downtime minutes, incident counts, and daily history. Unmeasured periods are represented as missing data rather than perfect uptime.
- `get_response_times` provides monitor response-time series grouped by city and country.
- `get_incidents` exposes timelines, failing assertions, locations, and masked evidence snippets.
- `get_ssl_and_domain_expiry` checks certificate and domain expiration dates for monitored hosts.
- `scan_app` performs a one-time scan of a public URL; optional keys are used once and not stored.
- `provision_app` creates an app website check, SSL and domain checks, a status page, and cron heartbeats in one operation.
- `create_monitor` adds a monitor using Staygreen's available checks and plan limits.
- `pause` pauses one monitor or an app's monitors for up to 24 hours, after which monitoring resumes.
- `draft_incident_update` saves an incident note as a dashboard draft.

## Limitations and notes

Workspace calls require authentication and administrator access. Free and Builder workspaces share calls across the workspace with limits of 30 and 120 requests per minute respectively. Agent actions cannot delete resources, manage alert channels or teammates, change billing, or publish incident updates. `scan_app` creates no monitoring resources, while `provision_app` and `create_monitor` change workspace configuration and should use a read-write credential.

_Full upstream README: https://allmcps.com/mcp/phuryn-staygreen/readme_

