sysops-mcp
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., "@sysops-mcp how is this server doing?"
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.
sysops-mcp
An MCP server that gives AI assistants safe, read-only visibility into a host: CPU, memory, disk, processes, network, ports, and logs.
Built for the kind of first-pass triage an on-call engineer does before deciding whether a box needs attention. Ask your assistant "how is this server doing?" and it can actually go look.
You: hey, the app feels slow, can you check the box?
Assistant: [get_host_summary] -> CPU 4%, RAM 91%, swap 88%, fullest disk 62%
"memory is nearly exhausted"
[list_top_processes sort_by=memory] -> postgres using 71% RAM
[tail_log /var/log/postgresql/postgresql.log grep="checkpoint"]
Memory is the pressure point, not CPU. Postgres is holding 71% of
RAM and the logs show frequent checkpoints...Tools
Tool | What it does |
| One-call health snapshot: uptime, CPU, RAM, swap, fullest disk, plain-language assessment. The right first call. |
| Utilization (configurable sample window), core counts, load averages, load-per-core saturation check. |
| RAM and swap usage. |
| Per-partition usage with a configurable warning threshold. Read-only mounts are listed but never flagged. |
| Top N processes by CPU or memory, with name filtering. |
| Interfaces, addresses, I/O totals, optional TCP connection states. |
| TCP connect test with latency, distinguishing refused vs. timed out vs. DNS failure. |
| Last N lines of a system log, with substring filtering. Path-restricted (see below). |
Every tool supports markdown (human-readable) and json (machine-readable) output.
Related MCP server: procmon-mcp
Quickstart
Requires Python 3.10+.
git clone https://github.com/Enrique-S-J/sysops-mcp.git
cd sysops-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .The server speaks stdio and is launched by its client, so running python server.py yourself just blocks waiting for JSON-RPC on stdin. Point a client at it instead.
Claude Code
claude mcp add sysops -- /absolute/path/to/sysops-mcp/.venv/bin/python \
/absolute/path/to/sysops-mcp/server.pyClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"sysops": {
"command": "/absolute/path/to/sysops-mcp/.venv/bin/python",
"args": ["/absolute/path/to/sysops-mcp/server.py"]
}
}
}Both paths must be absolute, and command must be the interpreter inside the virtualenv. A bare python3 will start but fail on import, because the system interpreter has no mcp or psutil.
Works with any MCP client that supports stdio transport.
Design notes
A few deliberate decisions, since diagnostics tooling handed to an LLM deserves some care:
Read-only by design. No kill, no restart, no writes. An assistant can diagnose, a human decides what to do about it. Every tool is annotated
readOnlyHint: trueso clients can reason about safety.tail_logis sandboxed. Reads are restricted to allowed roots (/var/logby default) with symlinks resolved before the check, so a confused or prompt-injected client can't use it as an arbitrary file reader (/var/log/../../etc/passwdis rejected). Both sides of the containment check are resolved, because on macOS the root itself is a symlink.Named arguments, not a wrapper object. Each tool's parameters are individual schema properties carrying their own descriptions, rather than one nested object the model has to unpack. The descriptions are what the model reads to decide how to call a tool, so they belong on the arguments.
Only actionable signals raise alarms. Read-only mounts can't have space reclaimed, and some are full by construction — every Ubuntu host with snaps carries squashfs mounts pinned at 100%. Counting those would report "a disk is nearly full" forever and train the reader to ignore it.
Errors teach the next step. A failed port check tells you whether the connection was refused (host up, nothing listening) or timed out (host down or firewalled), because those imply different follow-ups. A bad disk path suggests calling the tool without arguments to list valid mounts.
Context-efficient responses. Markdown output is trimmed for an LLM's context window: rounded numbers, human-readable timestamps, no metadata dumps. Full fidelity is available via
response_format: "json".Interpretation included.
get_host_summarydoesn't just return numbers; it computes load-per-core and returns an assessment ("memory is nearly exhausted"), so the model spends its reasoning on the problem rather than the arithmetic.
Testing
pip install -e ".[dev]"
pytest37 tests across two suites:
test_server.py— tool output shape, sorting/filtering, port-check outcomes (open, closed, DNS failure, via a real ephemeral listener), the log path sandbox including traversal attempts, and the summary's assessment thresholds against synthetic hosts (swapping, exhausted RAM, full read-only mounts).test_protocol.py— the MCP layer itself: that every parameter is advertised as a named property with its own description, that required arguments and read-only annotations survive serialization, and that the log sandbox and argument bounds hold on the real call path. Direct function calls can't catch a schema that no client can call correctly.
CI runs the suite on Linux and macOS across Python 3.10–3.13. Both operating systems are deliberate: this server has shipped two bugs that were invisible on one platform and broken on the other.
Roadmap
get_service_status(systemd unit states)Docker container visibility (when a socket is present)
Streamable HTTP transport for remote hosts
License
MIT
Available Tools
8 toolscheck_portARead-onlyIdempotent
Test whether a TCP port is accepting connections.
Performs a TCP connect to host:port with a timeout. Useful for verifying a service is listening ("is Postgres up on 5432?") before deeper diagnosis.
Returns: str: One-line result: open, closed/refused, timed out, or DNS resolution failure, with latency when the port is open.
Inputs: port (required), host, timeout_seconds. Returns: result
get_cpu_statusARead-onlyIdempotent
Get CPU utilization, core counts, and load averages.
Samples CPU for sample_seconds and reports utilization percentage,
physical/logical core counts, 1/5/15-minute load averages, and
load-per-core (values >= 1.0 indicate saturation).
Returns: str: Markdown summary or JSON object with keys: percent, sample_seconds, physical_cores, logical_cores, load_avg {1min,5min,15min}, load_per_core_1min, per_core_percent (optional).
Inputs: per_core, sample_seconds, response_format. Returns: result
get_disk_usageARead-onlyIdempotent
Get disk usage per partition, flagging any above a warning threshold.
Read-only mounts are listed but never flagged, since space cannot be reclaimed on them (Linux snap squashfs mounts sit at 100% by design).
Returns: str: Markdown summary or JSON object with keys: partitions (list of {mountpoint,device,fstype,total_gb,used_gb,percent,read_only,warning}), warnings (count), warn_percent.
Inputs: path, warn_percent, response_format. Returns: result
get_host_summaryARead-only
One-call health snapshot: hostname, uptime, CPU, RAM, swap, fullest disk.
The right first tool to call when asked "how is this box doing?" — it aggregates the key signals and gives a plain-language assessment, so follow-up tools only need to be called where something looks off.
Returns: str: Markdown summary or JSON object with keys: hostname, boot_time, uptime_hours, cpu_percent, memory_percent, swap_percent, max_disk_percent, assessment.
Inputs: response_format. Returns: result
get_memory_statusARead-onlyIdempotent
Get RAM and swap utilization.
Returns: str: Markdown summary or JSON object with keys: virtual {total_gb,used_gb,available_gb,percent} and swap {total_gb,used_gb,percent}.
Inputs: response_format. Returns: result
get_network_statusARead-only
Get network interfaces, their addresses, and I/O totals since boot.
Optionally includes TCP connection counts grouped by state, which is useful for spotting connection leaks or unexpected listeners.
Returns: str: Markdown summary or JSON object with keys: interfaces ({name: {is_up, addresses[]}}), io_totals {sent_gb,recv_gb}, tcp_states (optional {state: count}).
Inputs: response_format, include_connections. Returns: result
list_top_processesARead-only
List the top processes by CPU or memory consumption.
Returns: str: Markdown table or JSON object with keys: count, sort_by, processes (list of {pid,name,cpu_percent,memory_percent,username,started}).
Inputs: limit, sort_by, name_filter, response_format. Returns: result
tail_logARead-only
Read the last N lines of a log file, optionally filtered by substring.
For safety, reads are restricted to allowed log roots (default: /var/log) and capped at 500 lines. Symlinks are resolved before the check, so links pointing outside the allowed roots are rejected.
Returns: str: The matching log lines, or an actionable error message.
Inputs: path (required), grep, lines. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a clearly distinct resource and action: CPU, memory, disk, processes, network, port probes, host summary, and logs. Even the aggregate get_host_summary is positioned as a high-level entry point rather than overlapping with the individual status tools.
Tool names consistently follow a verb_noun pattern in snake_case: get_cpu_status, get_memory_status, get_network_status, check_port, tail_log. Minor verb variation (get vs list vs check vs tail) is still predictable and clearly mapped to each tool's function.
Eight tools is a well-scoped size for a sysadmin/health-check server. Each tool covers a meaningful monitoring area without redundancy or feature bloat.
The toolkit covers the core read-only sysadmin surface well: CPU, memory, disk, processes, network, port reachability, host summary, and log inspection. It lacks deeper per-process detail or broader log discovery, but the provided workflows are practical and cover most common health-check scenarios without dead ends.
Maintenance
Related MCP Connectors
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA real-time system diagnostics MCP server that gives AI agents live access to CPU, RAM, disk, network, processes, and hardware health metrics, with zero cloud dependency.7Apache 2.0
- AlicenseBqualityDmaintenanceAn MCP server that provides AI assistants with real-time access to Windows internals including processes, kernel traces, event logs, services, drivers, and PE analysis.1891MIT
- AlicenseNot gradedqualityDmaintenanceA sandboxed, read-only MCP server that safely exposes system metrics, container diagnostics, and logs to AI agents with intelligent context compression and strict security measures.MIT
- AlicenseAqualityDmaintenanceA secure, read-only MCP server for AI-powered system monitoring. It provides real-time OS metrics, config discovery, and safe log tailing to enable autonomous infrastructure audits without shell access risks.42ISC