arch-mcp-server

v0.8.0
arch-mcp-server Checked 39 minutes ago Published 17 days ago

MCP 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?".

ParameterTypeDescription
detailstringdetailed 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.

ParameterTypeDescription
cursorstringCursor from a previous call
detailstringdetailed adds ppid, rss, state and uptime
filterstringCase-insensitive substring of the command or user
limitintegerRows per page
sortstringSort 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.

ParameterTypeDescription
cursorstringCursor from a previous call
detailstringdetailed adds description and load
limitintegerUnits per page
patternstringCase-insensitive substring of the unit name
statestringUnit state filter
typestringUnit 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.

ParameterTypeDescription
unit *stringUnit name, e.g. nginx.service
detailstringdetailed 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.

ParameterTypeDescription
linesintegerJournal 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.

ParameterTypeDescription
cursorstringCursor from a previous call
detailstringdetailed adds unit, pid and boot id
grepstringCase-insensitive substring of the message
limitintegerEntries per page
prioritystringMaximum priority (err includes more severe)
sincestringStart of the window
unitstringOnly entries from this unit
untilstringEnd 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.

ParameterTypeDescription
limitintegerGroups 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?".

ParameterTypeDescription
limitintegerPorts per page
portintegerOnly this port
protostringProtocol filter

fs_usage Disk usage

Used space and inode usage per real mount. Pseudo filesystems are excluded unless include_pseudo is set.

ParameterTypeDescription
include_pseudobooleanKeep 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.