linux-mcp-server-administration

Diagnose RHEL-based Linux systems remotely via SSH with read-only MCP tools.

7|2|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/mcp-skills --skill linux-mcp-server-administration-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: linux-mcp-server-administration
Source: https://github.com/reason-machines/mcp-skills/tree/main/skills/linux-mcp-server-administration
Command: npx skills add https://github.com/reason-machines/mcp-skills --skill linux-mcp-server-administration-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires linux-mcp-server.

What problem does it solve? Troubleshooting remote Linux servers requires manual SSH sessions and repetitive diagnostic commands. This Skill lets an AI assistant run read-only diagnostics on local or remote RHEL-based systems, gathering service states, logs, processes, network, and storage information without risking system modifications. ## Core Features & Use Cases - Remote SSH Diagnostics: Execute read-only commands on multiple hosts in a single session using key-based SSH authentication. - Comprehensive System Inspection: Query systemd services, processes, journal logs, network interfaces, listening ports, disk usage, and mount points. - Controlled Log Access: Read and search only whitelisted log files via the LINUX_MCP_ALLOWED_LOGS environment variable. - Use Case: When nginx stops responding on a production web server, ask the assistant to check the service status, read error-level journal entries for the nginx unit, verify listening ports, and test connectivity — all in one guided troubleshooting workflow. ## Quick Start Install the server with pip install linux-mcp-server, configure SSH key access to your hosts, then ask the assistant to run a health check on server01 including failed services, disk usage, and recent error logs.

Frequently Asked Questions about linux-mcp-server-administration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I troubleshoot a Linux service remotely with MCP?▼

Use get_service_status to check the service state, then read_journal filtered by the service unit and error priority, followed by get_listening_ports to verify expected ports are open. All tools accept a host parameter like admin@web01 for remote execution over SSH.

How to check system logs on a remote Linux server?▼

Use read_journal for systemd journal entries with optional line count, unit, and priority filters, or read_log_file for specific files like /var/log/messages. Log files must be listed in the LINUX_MCP_ALLOWED_LOGS environment variable before access is granted.

Does linux-mcp-server support modifying remote systems?▼

No, all tools are strictly read-only by design. The server can inspect services, processes, logs, network, and storage but cannot start, stop, or modify any system resources, making it safe for production diagnostics.

Can I use this with non-RHEL Linux distributions?▼

The server is optimized for RHEL-based systemd systems and relies on commands like systemctl, journalctl, ss, and df. Other systemd distributions may work if these commands are available, but non-systemd systems are not supported.

Why does SSH connection to a remote host fail?▼

Connection failures usually stem from missing key-based authentication or an inactive SSH agent. Verify manual access with ssh user@host, confirm SSH_AUTH_SOCK is set, start the agent with eval $(ssh-agent), and add your key with ssh-add.

Why am I getting log file not in allowed list errors?▼

The server only reads log files explicitly whitelisted in the LINUX_MCP_ALLOWED_LOGS environment variable. Add the desired log path as a comma-separated entry in your MCP client configuration and restart the server.