🛡️ CloudKeepAlive MCP
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.
⚡ 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
✨ Features & Tools
keepalive_watch: Keep any URL awake with automatic platform detection (10m for Render, 4m for Glitch, 8m for Fly.io), optionalduration_hoursquota 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-pastesites.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.comawake 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-sleepto 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)
- Fork this repo.
- Add your URL(s) to
sites.txt(or set GitHub Repo SecretCLOUDKEEPALIVE_URLS). - Enable
.github/workflows/keep_alive.ymlin the Actions tab (pings every 5 minutes).
Option B: Cloudflare Worker (Zero Cron Jitter, Free)
- Paste
cloudflare-worker.jsinto a free Cloudflare Worker. - Set
TARGET_URLS(orDEFAULT_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
Metadata
Release files for cloud-keepalive-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloud_keepalive_mcp-1.0.0.tar.gz | 13.7 kB | With provenance | Details for cloud_keepalive_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloud_keepalive_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cloud_keepalive_mcp-1.0.0-py3-none-any.whl |
Total release size: 28.0 kB
Release files / cloud_keepalive_mcp-1.0.0.tar.gz
| Download URL | cloud_keepalive_mcp-1.0.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a30b4e0122928d6746c6732158a08d0060460fea57281171afdeefe1e54a5362
|
|
BLAKE2b-256 checksum How to use checksums |
ebb473f428908d25b13cce0d9ac5792127fa5fa3f575ae748173482d980433bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / cloud_keepalive_mcp-1.0.0-py3-none-any.whl
| Download URL | cloud_keepalive_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56f96e309da9325ecc8b367af535e3eafb348bb9a49fc64f5c59cb8a960e5af5
|
|
BLAKE2b-256 checksum How to use checksums |
372b0171c12d4edab351dfc2b1a17f2b21ba86d0b4b85af51b8b7a675bf32e1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for cloud-keepalive-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cloud_keepalive_mcp-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.