SuperAPIAI Directory

rootpilot-mcp

github.com · AI developer platforms

Read-only SSH diagnostics for Linux and Docker servers using a fixed command allowlist, with secret redaction and per-command timeouts.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

rootpilot-mcp is an open-source MCP server positioned as a "bring your own LLM" RootPilot experience edition, used for secure, read-only SSH diagnostics of servers. It lets any MCP client (Claude Desktop, Claude Code, or a custom client) collect read-only diagnostic evidence from a server over SSH, with reasoning performed by the model running on the client.

Purpose When a server has an issue, it is usually necessary to log in over SSH and repeatedly run commands such as df -h, docker ps, dmesg | grep -i oom, free -m, and then manually inspect the output. This server turns that process into a conversation: the model requests evidence as needed, the server returns structured, redacted output, and the model analyzes the root cause based on it. The server itself does not perform analysis, and does not have built-in LLM calls or multi-turn orchestration; it serves only as a clean, auditable evidence collector.

Main capabilities

  • Read-only whitelist: built in with exactly 38 commands, all of which can be listed via get_whitelist. There is no tool for running arbitrary commands, not even with a confirmation prompt; each command only checks status.
  • Injection protection: the only injectable value is the container name, which is validated against ^[a-zA-Z0-9_.-]+$ before being placed into a command; for example, web; rm -rf / is rejected rather than escaped.
  • Secret redaction: output is redacted before reaching the model, including secrets in KEY=value form, Bearer/Basic tokens, secret forms such as sk- / ghp_ / AKIA..., PEM private key blocks, and credentials embedded in URLs; environment variable values in docker inspect are also sanitized.
  • Timeouts and truncation: a 15-second timeout per command, with output truncation, to prevent hangs and output flooding.
  • Credential localization: host definitions are stored in a user-controlled file, and passwords are not logged.
  • Built-in prompts: includes two prompts, diagnose-host (an evidence-first root cause troubleshooting process) and health-check (a lightweight inspection).

How to use

  1. Add the server to an MCP client. For example, with Claude Desktop, configure claude_desktop_config.json.
  2. Create hosts.json (you can refer to hosts.example.json).
  3. Restart the client, then ask it "Diagnose prod-1", or run the diagnose-host prompt. It is recommended to use a least-privilege account: create a dedicated read-only SSH user for diagnostics instead of reusing root. Although the commands only read status, the account permissions should be consistent with that.

Applicable scenarios Suitable for Linux hosts connected via direct SSH, especially common troubleshooting scenarios involving Docker containers, memory, disk, kernel logs, and so on. Suitable for users who want reasoning performed by their own model while requiring strictly limited command execution, redacted output, and no credential leakage.

Limitations

  • Does not modify the server: all commands are read-only, and there is no arbitrary command tool.
  • Data flow: apart from SSH between the local server and your own host, data is not transmitted externally; command output is sent to the MCP client's model; there is no telemetry.
  • Model: it does not provide an LLM itself and uses your own model; reasoning is handled by the model running in the MCP client.
  • v1 does not support Windows servers or jump hosts, and is intended only for Linux hosts connected via direct SSH.
  • Differences from the full RootPilot version: this open-source version only collects evidence, which is interpreted ad hoc by the user or model; the full product adds calibrated diagnostics (89.7% across 29 standard failure scenarios, zero false positives on healthy hosts), alert-triggered automatic diagnostics, historical records (a "medical record" per host), and multi-host management.

License: MIT, see LICENSE for details.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools