
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

A stdio MCP server that executes read-only Linux diagnostic commands on remote hosts over SSH, organized into modules covering files, systemd, networking, processes, disks, kernel, packages, Docker, and triage.
MCP server for read-only Linux diagnostics over SSH is cataloged as an MCP server attributed to ranglust. A stdio MCP server that executes read-only Linux diagnostic commands on remote hosts over SSH, organized into modules covering files, systemd, networking, processes, disks, kernel, packages, Docker, and triage. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for read-only Linux diagnostics over SSH are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It is read-only by construction, with no -exec, -delete, write redirection, or raw find predicate passthrough.
Credential handling is delegated to the user's ssh config or agent; the server never handles credentials itself.
Yes, LINUX_INFO_HOSTS provides a comma-separated allowlist of exact hostnames, and an empty value allows any host.
README.md · 728441143758 · Fetched 2026-11-13 11:20:29 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
MCP server that runs read-only diagnostic commands on remote hosts via SSH. 79 tools across 18 modules:
read_file, find_files, read_binaryarchive_list, archive_readsystemctl_status, systemctl_list, systemctl_list_timers, systemctl_list_socketsjournalctliostat, vmstat, free, df, ps, psi_stats, meminfosar, atop, pmrepss, ip_addr, ip_route, lsof_net, arp_table, tc_qdisc, ethtool, conntrack, net_protocol_stats, nft_list, iptables_list, diglldp_neighbors, lldp_interfaces, lldp_statistics, lldp_chassislsof, pgrep, pidof, top, proc_limits, stracedu, lsblk, blkid, smartctl, blockdevdmesg, uname, sysctl, slabtop, numastat, cgroup_stats, systemd_analyzedpkg_list, rpm_list, apt_list_installed, reboot_requireduptime, who, last, lscpu, lsmem, dmidecode, lspci, lsusb, sensorschronyc, timedatectlmount, findmnt, stat_fs, statdocker_ps, docker_inspect, docker_images, docker_logshost_factstriageAuthoritative spec: SPEC.md.
Agent operating notes (conventions, hard rules, security invariants, test discipline, add-a-tool checklist): AGENTS.md.
Claude Code automatically loads CLAUDE.md, which @-includes AGENTS.md so a single source feeds both Claude Code and any tool that reads AGENTS.md (Cursor, OpenAI Codex, etc.).
uv sync
uv run linux-info-mcp
# or
uv run python server.py
Both start a stdio MCP server.
uv run pytest -q
| Var | Default | Meaning |
|---|---|---|
LINUX_INFO_SSH_CMD | ssh | Command + flags parsed via shlex.split (shell-style: quotes/escapes honored); becomes argv prefix. Example: ssh -F /home/me/.ssh/config -o ConnectTimeout=5. When set, you own the full argv (no mux auto-injected). |
LINUX_INFO_SSH_MUX | on | When LINUX_INFO_SSH_CMD is unset, default ssh gets OpenSSH connection multiplexing (ControlMaster=auto, ControlPath=$TMPDIR/lim-%C, ControlPersist=60s) so repeated calls reuse one connection instead of paying a handshake each time. Set 0/false/no/off to disable. |
LINUX_INFO_SSH_WARMUP | on | Applies to any LINUX_INFO_SSH_CMD. When no connection has succeeded recently, the first connection runs alone and parallel calls wait for it, so an interactive login (SSO, hardware key, passphrase) happens once and the rest reuse its cached credentials. Set 0/false/no/off to disable. |
LINUX_INFO_SSH_WARM_TTL | 60 | Seconds after a successful connection during which calls run fully in parallel without gating. |
LINUX_INFO_HOSTS | `` | Comma-separated allowlist of exact hostnames. Empty = any host. |
LINUX_INFO_TIMEOUT | 30 | Seconds before subprocess kill. On timeout: exit_code=124, [timeout] appended to stderr. |
LINUX_INFO_MAX_BYTES | 1048576 | 1 MiB cap on both stdout and stderr. read_binary length is further capped at floor((MAX_BYTES - 64) * 3 / 4) so its base64 stream fits. |
LINUX_INFO_MAX_HOSTS | 10 | Max hosts per multi-host (hosts) call. Clamped to [1, 25]; 25 is a hard ceiling to prevent an SSH storm. |
LINUX_INFO_PARALLELISM | 4 | Worker threads for multi-host fan-out. Clamped to [1, 25] and never exceeds the host count. |
LINUX_INFO_SUDO | `` (off) | 1/true/yes/on prefixes sudo -n on privilege-prone tools (see Privilege). Off by default. Only as safe as your sudoers. |
LINUX_INFO_OUTPUT_MODE | `` (unset) | Locks response shape to raw/parsed/both, overriding the per-call output_mode arg (see Output modes). Invalid value → validation_error. |
LINUX_INFO_LOG_FILE | `` | Absolute path to JSONL log file. Empty / unset = logging disabled. |
LINUX_INFO_LOG_LEVEL | INFO | TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL. TRACE adds full tool-call I/O and the remote SSH command/output (verbose). |
{
"mcpServers": {
"linux-info": {
"command": "uv",
"args": ["run", "--directory", "/abs/path/to/linux-info-mcp", "python", "server.py"],
"env": {
"LINUX_INFO_SSH_CMD": "ssh",
"LINUX_INFO_SSH_MUX": "on",
"LINUX_INFO_HOSTS": "",
"LINUX_INFO_TIMEOUT": "30",
"LINUX_INFO_MAX_BYTES": "1048576",
"LINUX_INFO_MAX_HOSTS": "10",
"LINUX_INFO_PARALLELISM": "4",
"LINUX_INFO_SUDO": "",
"LINUX_INFO_OUTPUT_MODE": "",
"LINUX_INFO_LOG_FILE": "",
"LINUX_INFO_LOG_LEVEL": "INFO"
}
}
}
}
-exec, -delete, write redirection, or raw passthrough of find predicates.subprocess.run always uses shell=False. The remote command is a single shell-quoted string passed as one ssh argument.shlex.quote. Inputs containing NUL or newline are rejected before quoting.grep_flags are validated against a whitelist (-i, -E, -v, -n, -w, -F, and -C1..-C9).find accepts only named, validated predicates: name, iname, type, maxdepth, mindepth, mtime, size, path_glob.-. If LINUX_INFO_HOSTS is set, hosts must match an entry exactly.LC_ALL=C for stable output.JSONL file logging, off by default. Set LINUX_INFO_LOG_FILE=/path/to/log.jsonl to enable. Each line is one event:
{"ts":"2026-05-30T12:34:56.789+00:00","level":"INFO","logger":"linux_info_mcp.ssh","msg":"ssh_call","host":"h1","exit_code":0,"duration_ms":42.5,"stdout_bytes":1234,"truncated":false,"outcome":"ok","pid":12345,"tool":"read_file","request_id":"a1b2c3d4e5f6"}
INFO level emits server_start, server_stop, tool_call (with tool, host, duration_ms, exit_code, outcome; multi-host calls add host_count, set host to null, and report outcome: partial when any host fails), and ssh_call (with host, exit_code, duration_ms, stdout_bytes, stderr_bytes, truncated; one entry per host in a fan-out, all sharing the call's request_id). TRACE additionally emits the full tool arguments, tool result, remote command string, and remote stdout/stderr. See SPEC.md §Logging for the full table.
run_ssh is the central timing/logging point; it stamps duration_ms onto SshResult and emits one ssh_call log entry per call. _call_tool is the central tool-level timing/logging point covering validation + dispatch.
Every log line during a tool call carries tool (MCP tool name) and request_id (12-hex-char per-call id). Server logs and SSH logs join on request_id; ssh_call shows which tool triggered it. Every log line — including those outside a tool call — also carries pid (process id), so concurrent server processes sharing one log file stay separable.
Tool handlers are sync (they call blocking subprocess.run for ssh). The async MCP entrypoint dispatches each handler via asyncio.to_thread, so concurrent call_tool requests from the agent run on a thread pool instead of serializing on the event loop. Wall time for N parallel tool calls is therefore max(durations) rather than sum(durations) — particularly relevant for teleport-backed SSH where each handshake costs 0.5–2s.
Every tool takes either a single host (string) or a list of hosts (array) — mutually exclusive. With hosts, the tool runs on each host in parallel and returns:
{"multi_host": true, "host_count": 2, "results": [
{"host": "h1", "stdout": "...", "stderr": "", "exit_code": 0, "truncated": false, "stderr_truncated": false},
{"host": "h2", "error": "RuntimeError: ...", "outcome": "handler_error"}
]}
results follows the input order (deduped). Per-host failures are isolated — one bad host does not abort the others; the overall tool_call outcome is then partial. Host count is capped by LINUX_INFO_MAX_HOSTS (default 10, hard max 25); fan-out runs LINUX_INFO_PARALLELISM workers (default 4). A single host returns the normal flat dict, unchanged.
Pass output_mode to control the response shape: raw (default, stdout text), parsed (structured object, stdout dropped), or both. LINUX_INFO_OUTPUT_MODE locks it server-side, overriding the arg. Tools with a parser (currently df, free) populate parsed; others report parse_status: "unsupported" and fall back to raw. Truncated or non-zero output is never parsed.
// df with {"host": "h1", "output_mode": "parsed"}
{"parsed": [
{"fs": "/dev/sda1", "blocks_1k": 41252336, "used_1k": 8765432,
"avail_1k": 30387654, "use_pct": 23, "mount": "/"}
], "stderr": "", "exit_code": 0, "truncated": false,
"stderr_truncated": false, "parse_status": "ok"}
The server runs as your SSH login user and never escalates on its own. Tools that need root (smartctl, dmidecode, nft_list, iptables_list, conntrack, often dmesg, ethtool for some modes, the lldp_* tools) otherwise fail with a permission error.
Detection (always on): a failed command whose stderr looks like a permission error gets privilege_error: true added to its result, so the agent knows to use a privileged path instead of guessing. Every result also carries error_kind (ok/timeout/auth/dns/unreachable/not_found/privilege/nonzero) so the agent can pick retry vs switch-host vs escalate vs give-up.
Escalation (opt-in): set LINUX_INFO_SUDO=1 to prefix sudo -n (non-interactive) on the privilege-prone tools listed above — and only those. The server is just the mechanism; what it can actually do is decided entirely by your sudoers. Scope it tightly:
# /etc/sudoers.d/linux-info — dedicated read-only diag account
diag ALL=(root) NOPASSWD: /usr/sbin/smartctl, /usr/sbin/dmidecode, \
/usr/sbin/nft -nn list *, /usr/sbin/iptables -n -v -L *, /usr/sbin/conntrack
LINUX_INFO_SUDO=1 plus a sloppy sudoers (NOPASSWD: ALL) hands an LLM effective root — the server cannot prevent that. Never use a blanket sudo sh -c; per-tool sudo -n is the only shape a constrained sudoers can lock down. (For Docker, prefer adding the login user to the docker group over sudo.)
LINUX_INFO_MAX_BYTES and truncated: true is set when the cap is hit.See SECURITY.md for the vulnerability reporting policy and threat model.
MIT. See LICENSE.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for read-only Linux diagnostics over SSH from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/linux-info-mcp)Approximate reported site interactions from 2026-10-27 through 2026-11-25 UTC; not unique visitors or installations.
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.