Skip to main content
Glama
CloudKeepAlive MCP

CloudKeepAlive MCP

πŸ›‘οΈ CloudKeepAlive MCP

PyPI version PyPI Stats Python License GitHub stars

CloudKeepAlive MCP server

Universal Anti-Cold-Start & Keep-Alive Guard for Render, Fly.io, Glitch, Koyeb, Railway, Vercel, and custom cloud deployments β€” straight from your AI editor, terminal, or 24/7 in the cloud.

Install in VS Code Install in VS Code Insiders Add to Cursor

(One-click buttons open VS Code, VS Code Insiders, or Cursor if installed on your device. If you use another editor like Antigravity, Claude, or Windsurf, use the one-line commands or JSON configs below.)


⚑ One-Line Install (No Repo Clone Needed)

Prerequisite: uv installed (powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" on Windows, or curl -LsSf https://astral.sh/uv/install.sh | sh on macOS/Linux).

  • Claude Code:

    claude mcp add cloud-keepalive -- uvx cloud-keepalive-mcp
  • VS Code CLI:

    code --add-mcp '{"name":"cloud-keepalive","command":"uvx","args":["cloud-keepalive-mcp"]}'
  • Run MCP Server directly via uvx:

    uvx cloud-keepalive-mcp
  • Normal Python (pip):

    pip install cloud-keepalive-mcp

Related MCP server: Sentinel Monitoring MCP Server

✨ Features & Tools

  • keepalive_watch: Keep any URL awake with automatic platform detection (10m for Render, 4m for Glitch, 8m for Fly.io), optional duration_hours quota protection, and automatic PC idle-sleep prevention (prevent_pc_sleep).

  • keepalive_status: Live status, HTTP codes, latency (ms), cold-start detections, and countdown timers.

  • keepalive_warmup: Immediately pre-warm one or all watched deployments before demos or testing.

  • keepalive_unwatch: Stop monitoring a deployment URL.

  • detect_platform: Inspect any URL to detect its hosting provider, sleep threshold, and recommended interval.

  • keepalive_cloud_config: Export ready-to-paste sites.txt, GitHub Secrets, and Cloudflare Worker configuration for 24/7 PC-off pinging.


πŸ”§ Configuration (Per AI Client)

VS Code (Copilot Agent Mode)

.vscode/mcp.json (workspace) or Command Palette β†’ MCP: Add Server:

{
  "servers": {
    "cloud-keepalive": {
      "type": "stdio",
      "command": "uvx",
      "args": ["cloud-keepalive-mcp"]
    }
  }
}

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "cloud-keepalive": {
      "command": "uvx",
      "args": ["cloud-keepalive-mcp"]
    }
  }
}

Claude Desktop

claude_desktop_config.json (Settings β†’ Developer β†’ Edit Config):

{
  "mcpServers": {
    "cloud-keepalive": {
      "command": "uvx",
      "args": ["cloud-keepalive-mcp"]
    }
  }
}

Google Antigravity / Windsurf

~/.gemini/config/mcp_config.json (Antigravity) or ~/.codeium/windsurf/mcp_config.json (Windsurf):

{
  "mcpServers": {
    "cloud-keepalive": {
      "command": "uvx",
      "args": ["cloud-keepalive-mcp"]
    }
  }
}

Continue

.continue/mcpServers/cloudkeepalive.yaml:

name: CloudKeepAlive
version: 1.0.0
schema: v1

mcpServers:
  - name: CloudKeepAlive
    command: uvx
    args:
      - cloud-keepalive-mcp

Then ask your AI in chat:

  • "Keep my Render backend https://my-api.onrender.com awake for the next 3 hours."

  • "Pre-warm my deployment before I demo it."

  • "Generate my 24/7 cloud config so it stays awake when my PC is off."


πŸ’» Standalone Mode (No AI Needed)

Don't use an AI assistant? Run CloudKeepAlive directly from your terminal or double-click run.bat:

pip install cloud-keepalive-mcp
cloud-keepalive https://my-backend.onrender.com --duration 4

(Or clone the repo and double-click run.bat on Windows, or run python server.py https://my-backend.onrender.com --duration 0.5.)

  • Auto PC Idle-Sleep Lock: While running locally, CloudKeepAlive automatically prevents Windows, macOS, and Linux from entering idle sleep so pings never stop when you step away (your display can still dim/turn off). Pass --allow-sleep to disable.


☁️ 24/7 Cloud Mode (Runs Even When Your PC Is OFF)

Local stdio/CLI mode stops if your PC shuts down or closes your editor. For 24/7 PC-off pinging:

Option A: GitHub Actions (Included)

  1. Fork this repo.

  2. Add your URL(s) to sites.txt (or set GitHub Repo Secret CLOUDKEEPALIVE_URLS).

  3. Enable .github/workflows/keep_alive.yml in the Actions tab (pings every 5 minutes).

Option B: Cloudflare Worker (Zero Cron Jitter, Free)

  1. Paste cloudflare-worker.js into a free Cloudflare Worker.

  2. Set TARGET_URLS (or DEFAULT_URLS) and add a Cron Trigger */10 * * * *.


πŸ“Š Supported Platforms & Sleep Limits

Platform

Idle Sleep Threshold

Cold-Start Delay

CloudKeepAlive Safe Ping

Render

15 minutes

30s – 75s

Every 10 mins

Glitch

5 minutes

10s – 25s

Every 4 mins

Fly.io

10 minutes (Auto-stop)

5s – 15s

Every 8 mins

Koyeb

15 minutes (Pause)

20s – 40s

Every 10 mins

Vercel

Serverless Cold-Start

1s – 5s

Every 5 mins


⚠️ Limitations & Responsible Use

  • Local stdio / CLI mode: Pings only run while your computer and editor/terminal are powered on (auto wake-lock prevents idle sleep, not manual shutdown or lid-close). Use Cloud Mode (GitHub Actions / Cloudflare Worker) for 24/7 uptime when your PC is off.

  • Responsible use: Only monitor your own or authorized deployments, and respect your hosting provider's monthly free-tier compute limits (e.g., Render's 750 free hours/month) using --duration / duration_hours.


πŸ“„ License

MIT

Available Tools

6 tools
detect_platformA

Inspect any URL to detect its hosting platform (Render, Fly.io, Glitch, etc.), determine its idle sleep threshold, and recommend the safest keep-alive settings.

Inputs: url (required).

keepalive_cloud_configB

Generate ready-to-use 24/7 cloud configuration (GitHub Actions sites.txt, Repo Secret, and Cloudflare Worker snippet) so deployments stay awake even when the user's PC is turned off.

Inputs: urls.

keepalive_statusA

Check real-time health, quota expiration timers, and keep-alive status of all watched deployments, including response times, cold-start metrics, and next scheduled ping.

Inputs: no named parameters.

keepalive_unwatchB

Stop keep-alive monitoring for a specific deployment URL.

Inputs: url (required).

keepalive_warmupA

Immediately send an instant warmup ping to one or all watched deployments before user presentations, testing, or visits to eliminate cold-start delay.

Inputs: url.

keepalive_watchA

Start background keep-alive monitoring for any deployment URL (Render, Fly.io, Glitch, Koyeb, Railway, Vercel, or custom API). Prevents the 15-minute inactivity spin-down while respecting free-tier compute quota rules.

Inputs: url (required), label, duration_hours, interval_minutes, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool maps to a clearly distinct action: start monitoring (watch), stop (unwatch), read state (status), force an immediate ping (warmup), inspect a URL (detect_platform), and emit cloud config (keepalive_cloud_config). The watch/warmup pair comes closest, but the descriptions make the background-vs-instant distinction explicit.

    Naming Consistency4/5

    Five of six tools use a consistent keepalive_<verb> prefix plus a snake_case noun (watch, status, warmup, unwatch, cloud_config). detect_platform breaks the prefix convention, though it still follows a readable verb_noun shape.

    Tool Count5/5

    Six tools is tightly scoped to a single problemβ€”keeping free-tier deployments awakeβ€”and each one earns its place as a distinct lifecycle step. No redundant or filler tools.

    Completeness4/5

    The surface covers the full keep-alive lifecycle: detect, watch, unwatch, check status, force warmup, and deploy cloud config for 24/7 operation. The only gap is the inability to modify settings on an existing watch (e.g. interval/threshold) without unwatching and re-adding.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query and monitor service status, latency, and performance through configurable checks (HTTP, TCP, SSL, keyword, JSON-path) and exposes tools for listing services, retrieving metrics, and running on-demand checks.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Uptime monitoring your AI agent can set up: create HTTP, SSL, ping, TCP and DNS monitors checked from multiple regions, run checks on demand, read and acknowledge incidents, manage cron heartbeats, maintenance windows and status page updates.
      57
      12,803 npm
      MIT