SuperAPI AI Directory

cyberrescue

Host-level telemetry gateway letting sandboxed agents fetch container logs and track kernel resource metrics.

Open website

About this tool

Purpose: CyberRescue is a locally hosted Model Context Protocol (MCP) server that provides Claude Desktop with tools for debugging Docker containers, without the need to write separate glue code for each diagnostic interface.

Main capabilities: It exposes three tools to Claude. stream_container_logs retrieves stdout/stderr logs by container ID or name, supports tail, start timestamp, and keyword filtering, with a hard output cap of 50KB and a truncation marker; inspect_memory_dump obtains real-time CPU/memory snapshots via docker stats and uses ps aux --sort=-%mem to list the processes with the highest usage; execute_isolated_script runs shell commands inside the container via docker exec, with input validation, a command blacklist, and a hard asyncio timeout. Read-only telemetry calls (logs, stats) are retried up to 3 times on transient daemon failures, using exponential backoff from 0.5s to 1s; docker exec is deliberately not retried because it is not idempotent. Raw Docker exceptions are logged only on the server side and are not returned to the client.

Usage: Requires macOS (Apple Silicon) or Windows 10/11 + WSL2, a running Docker Desktop, and uv. After cloning the repository, install it and register the MCP server in the Claude Desktop configuration file (on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%\Claude\claude_desktop_config.json, run through WSL). Everything runs locally over stdio, with no network ports, no cloud services, and no additional API keys.

Use cases: Have Claude troubleshoot faulty containers in chat, for example reading the last 150 lines of logs from a container, checking memory and CPU usage, or running printenv DATABASE_URL inside a container. The repository's demo/ provides three intentionally broken images: broken_flask (crashes with a KeyError due to a missing environment variable), leaking_node (leaks about 10MB per second until OOM), crashed_nginx (fails to start due to a configuration syntax error).

Limitations: The public web demo is locked to only the above 3 fixed containers and a fixed menu of diagnostic commands, and does not accept arbitrary containers or free-form shell input; the local MCP path and the public demo share the core logic but have different deployment environments. The current log reading buffers the complete logs before truncating, and there is no streaming reading yet; standalone binary packaging and native non-WSL Windows support are not yet provided.