host-inspector-mcp
Provides tools to inspect a Linux host's system state, including CPU, memory, disks, processes, network, systemd services, journal logs, package updates, and installed developer CLIs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@host-inspector-mcp what's using the most CPU on this host right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
host-inspector-mcp
An MCP server (stdio) that lets an AI assistant inspect a Linux host safely: what is using the CPU, which disk is filling up, why a service failed, what the journal says. It replaces "run this shell command for me" with a small set of typed, bounded, mostly read-only tools.
Built on the mcp 2.x Python SDK and psutil. Python >= 3.12.
Tools
Tool | What it does | Access |
| OS, kernel, CPU, memory, swap, load, uptime, mounted disks | read-only |
| temperatures, fans, battery where the kernel exposes them | read-only |
| heaviest processes by CPU or memory | read-only |
| one PID: command, parent, children, open files, sockets | read-only |
|
| read-only |
| biggest files under a path (one filesystem, symlinks not followed) | read-only |
| interfaces, default route, DNS, listening ports | read-only |
| DNS + TCP connect latency to host:port | read-only (network) |
| one systemd unit, or all failed and running units | read-only |
|
| read-only |
| pending apt/snap updates and reboot-required | read-only |
| apt policy and description, or a name search | read-only |
| which developer CLIs are installed, with versions | read-only |
| signal a process you own | the only mutating tool; annotated destructive |
Related MCP server: System Control MCP Server
Safety design
The server is the permission boundary between a language model and a machine, so the boundaries are explicit
and tested (tests/test_tools.py):
No shell, ever. Every external command goes through one helper,
_run(argv), which usessubprocess.runwith a list. A test passes"a; echo b"and checks it arrives as a literal argument.Bounded. Every command has a timeout (a test proves a hung command is reported, not waited on). Output lists are capped (
limit,top_n, first 50 files or sockets, and so on) so a call cannot flood the model's context.Unprivileged. It runs as the invoking user. When a process belongs to someone else,
process_detailsreturns a note instead of an error, andkill_processrefuses.One mutating tool, with guard rails.
kill_processrefuses PID 0, PID 1 and the server itself, refuses processes owned by other users, and only acceptsTERM,KILL,INTorHUP(a typedLiteral).Honest MCP annotations. Read-only tools carry
readOnlyHint; onlykill_processcarriesdestructiveHint;check_connectivityis marked open-world because it touches the network. A client can therefore auto-approve the first group and prompt for the last.Robust walkers.
find_large_filesstays on one filesystem, skips symlinked directories (a test proves nothing is counted twice) and ignores unreadable directories rather than failing.Portable. Missing tools (for example no
journalctlin a container) produce a readableerror: ... is not installedstring instead of a stack trace.
Run it
pip install .
# register with your MCP client: command = host-inspector-mcp, transport = stdio
HOST_INSPECTOR_NAME=build-box HOST_INSPECTOR_INSTRUCTIONS="CI runner, Debian 12" host-inspector-mcpThe two environment variables let the same package describe itself correctly when it is launched on
different hosts (for example over ssh host host-inspector-mcp).
Tests
PYTHONPATH=src python -m unittest discover -s tests # 14 tests, including a real MCP handshake over stdioThe last test launches the server as a subprocess, lists its tools through the official MCP client and calls
kill_process on PID 1 to prove the refusal travels over the protocol.
Available Tools
14 toolscheck_connectivityARead-only
Test DNS resolution and a TCP connect to host:port, reporting latency.
Inputs: host, port, timeout_s.
disk_usageARead-only
Size of each immediate child of a directory (like du -d1), largest first.
Inputs: path, top_n.
find_large_filesBRead-only
Find the largest files under a path (stays on one filesystem, skips unreadable dirs).
Inputs: path, limit, min_size_mb. Returns: result
hardware_sensorsARead-only
Temperatures (CPU/NVMe/etc.), fan speeds and battery, where the kernel exposes them.
Inputs: no named parameters.
journal_logsARead-only
Read systemd journal entries, filtered by unit, time window, priority, boot and regex.
Note: system-wide logs need the user to be in the adm group (they are).
Inputs: boot, grep, unit, lines, +2 more. Returns: result
kill_processADestructive
Send a signal to a process owned by the current user (default SIGTERM). Refuses PID 1 and this server.
Inputs: pid (required), signal. Returns: result
network_statusARead-only
Network interfaces with addresses/link state, default route, DNS servers and listening ports.
Inputs: no named parameters.
package_infoARead-only
Whether an apt package is installed, its version, candidate version and description; falls back to searching package names if it isn't an exact match.
Inputs: name (required). Returns: result
package_updatesARead-only
Pending apt and snap updates, and whether a reboot is required. (Does not refresh indexes.)
Inputs: no named parameters.
process_detailsBRead-only
Detailed info on one process: command, parent, status, threads, open files and connections.
Inputs: pid (required).
service_statusARead-only
Status of one systemd unit (e.g. 'ssh', 'docker'), or with no unit, list failed units plus running services. Set user=True for the user's own systemd instance.
Inputs: unit, user. Returns: result
system_overviewARead-only
Snapshot of the machine: OS, kernel, CPU, memory, swap, load, uptime and mounted disks.
Inputs: no named parameters.
tool_inventoryBRead-only
Which common developer/admin CLI tools are on PATH, with versions.
Inputs: no named parameters.
top_processesARead-only
List the heaviest processes by CPU% (sampled over ~0.5s) or resident memory.
Inputs: limit, sort_by. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools map to a distinct inspection target (processes, disk, network, services, logs, packages, hardware), and boundary cases like process_details vs top_processes vs kill_process are clearly differentiated. A couple of pairs are close — disk_usage vs find_large_files and package_info vs package_updates — but the descriptions make the distinction workable.
All names are predictable snake_case with no style mixing. There is a mild split between verb-led action names (kill_process, find_large_files, check_connectivity) and noun-phrase inspection names (system_overview, network_status), but the pattern is readable and arguably intentional.
Fourteen tools is squarely in the sweet spot for a host diagnostics server, and each one covers a distinct slice of system state (CPU, memory, disk, network, services, logs, packages, hardware). No obvious filler tools.
Coverage of the host-inspection domain is broad: process lifecycle, disk usage, connectivity, systemd/journal, packages, hardware sensors, and system snapshot are all present. Minor gaps exist around scheduling/cron inspection, dmesg/kernel messages, and user/group queries, but nothing that blocks core diagnostic workflows.
Maintenance
Related MCP Connectors
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Secure Linux sandboxes for AI agents, as MCP tools.
Linux VMs for AI agents: create VMs, run commands, edit files and open preview URLs.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables natural-language diagnosis of Linux system issues by providing sandboxed, typed tools for system, service, filesystem, and git inspection, with human approval for mutating actions.18-
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to monitor system health, manage processes, execute shell commands, and inspect environment variables and directories.1MIT
- AlicenseAqualityBmaintenanceLets an AI assistant inspect a Linux machine through ten fixed read-only tools covering load, memory, disks, processes, ports, interfaces, systemd units, the journal, and allowlisted log files. All output is size-capped, control-character-stripped and secret-redacted, and nothing in the package can write to the system.10MIT
- AlicenseAqualityBmaintenanceGives AI agents safe, bounded, non-blocking access to Linux sysadmin inspection tasks, including CPU, RAM and disk healthchecks, memory-safe log tailing with regex filtering, and user-level systemd service and timer auditing. All operations run without sudo or unrestricted root shells, avoiding interactive pager hangs and context window flooding.4132 PyPI1MIT