arch-mcp-server
v0.8.0MCP server for Linux host administration over SSH, with first-class Arch Linux support
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sys_info Host identity
Host identity: hostname, kernel, distro, arch, uptime, virtualization, CPU cores and memory. Call it first to learn what host you are on.
sys_status Host health snapshot
One call health snapshot: load, memory, disks, failed units, pending updates, reboot flag, max temperature and top processes. Use it to answer "is the server healthy?".
| Parameter | Type | Description |
|---|---|---|
detail | string | detailed adds PIDs and disk free bytes |
proc_list Process list
Processes filtered and sorted by CPU, memory or PID. Use it to find what consumes resources; rss is in bytes.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous call |
detail | string | detailed adds ppid, rss, state and uptime |
filter | string | Case-insensitive substring of the command or user |
limit | integer | Rows per page |
sort | string | Sort field |
svc_list List systemd units
Systemd units filtered by state, name or type. Returns unit, active and sub; detailed adds description and load state.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous call |
detail | string | detailed adds description and load |
limit | integer | Units per page |
pattern | string | Case-insensitive substring of the unit name |
state | string | Unit state filter |
type | string | Unit type (suffix) |
svc_status Unit status
State, main PID, start time, restarts, memory, tasks and last error of one systemd unit. Use it before reading logs.
| Parameter | Type | Description |
|---|---|---|
unit * | string | Unit name, e.g. nginx.service |
detail | string | detailed adds unit file state and fragment path |
svc_failed Failed units
Failed systemd units with their last error lines. Answers "why did it fail?" without pulling the whole journal.
| Parameter | Type | Description |
|---|---|---|
lines | integer | Journal lines per unit |
log_query Journal query
Journal entries filtered by unit, priority, time window or message text. Returns ts, prio and msg only; detailed adds unit, pid and boot.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous call |
detail | string | detailed adds unit, pid and boot id |
grep | string | Case-insensitive substring of the message |
limit | integer | Entries per page |
priority | string | Maximum priority (err includes more severe) |
since | string | Start of the window |
unit | string | Only entries from this unit |
until | string | End of the window |
log_errors Deduplicated errors
Errors and worse from the current boot, deduplicated by unit and message with counts. Use it to spot recurring failures.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Groups per page |
pkg_status Package status
Pending updates, orphans, sync age and cache size. Works without checkupdates; AUR updates are counted when yay or paru exists.
net_ports Listening ports
Listening TCP/UDP ports with the owning process. Answers "is the port up?" and "who holds it?".
| Parameter | Type | Description |
|---|---|---|
limit | integer | Ports per page |
port | integer | Only this port |
proto | string | Protocol filter |
fs_usage Disk usage
Used space and inode usage per real mount. Pseudo filesystems are excluded unless include_pseudo is set.
| Parameter | Type | Description |
|---|---|---|
include_pseudo | boolean | Keep proc, tmpfs, cgroup and similar mounts |
host_capabilities Host capabilities
Which tools and features this host has (pacman, journald, sensors, nftables, AUR...), detected once at startup. Use it before calling a tool that may be unsupported.