Linux MCP Server logo

Linux MCP Server

Read-only MCP tools for diagnosing RHEL-based Linux systems, including logs, services, processes, networking, storage, and PCP metrics.

Install Linux MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "linux-mcp-server-2": {
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

linux-mcp-server exposes read-only diagnostics for RHEL-based Linux systems through MCP, covering system information, logs, services, processes, networking, storage, hardware, and performance metrics. It can inspect the local machine or connect to multiple remote hosts over SSH using key-based authentication. PCP tools provide metric discovery, historical queries, and condensed performance summaries when PCP is available. Reach for it when an agent needs to investigate Linux state without making system changes.

Use cases

  • Inspect systemd services and their recent logs
  • Investigate network interfaces, connections, and listening ports
  • Review historical PCP performance metrics
  • Compare diagnostics across multiple remote hosts
  • Read permitted logs and text files without changing the system

Key features

  • Read-only Linux diagnostics
  • SSH access to remote hosts with key-based authentication
  • Multi-host inspection in one session
  • Systemd, process, log, network, storage, and hardware tools
  • PCP metric discovery and historical queries
  • Configurable access to log files

Tools23

What Linux MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~3.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

13/13 checks healthy over the last 60d

What it can do

From the 23 tools this server returned when we ran it; 23 declare their own safety hints.

Read-only tools · 23
Network at startup2 connections
Files written at startup30

Observed 2026-10-20 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · linux-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars317Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed23Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Linux MCP Server works

What linux-mcp-server does

linux-mcp-server gives MCP clients a read-only interface to Linux administration and troubleshooting data, with particular attention to RHEL-based systems and systemd. Its tools cover several layers of a host:

  • Operating system, kernel, uptime, boot history, and PCP availability
  • CPU, memory, disks, block devices, hardware, PCI, USB, and DMI data
  • Running processes and detailed process information
  • Systemd services, service status, and recent service logs
  • Journal entries and selected log files
  • Network interfaces, active connections, and listening ports
  • Directory listings, file listings, and bounded reads from text files

The server is intended for inspection rather than remediation. Its tools do not modify services, files, processes, network configuration, or other system state.

How it works

MCP clients call focused tools and receive structured diagnostic results. A deployment can inspect the local system or use SSH to execute read-only checks on remote hosts. Multiple remote hosts can be used during one session, which suits investigations that compare systems or trace an issue across machines.

PCP support adds access to archived performance data. Start with pcp_guide to learn the available metric names and how returned values should be interpreted. pcp_list_metrics can browse the recorded metric namespace, while pcp_query_metrics returns historical samples as JSON. pcp_performance_summary produces a compact view of CPU, memory, disk, network, and process conditions for the live system or a selected past time. These tools should be used only when the system information reports that PCP is available.

Setup and configuration

Install and configure the server according to the project documentation and connect it to an MCP client. Remote inspection uses SSH with key-based authentication. The server supports connecting to different remote hosts within the same session.

Log access can be restricted through environment-variable configuration, allowing an operator to control which log files the server may read. The project publishes setup documentation for installation, client configuration, SSH use, and log-access settings.

Tools and capabilities

The tool set includes get_system_information, get_cpu_information, get_memory_information, get_disk_usage, and get_hardware_information for host-level inventory. Process and service investigation uses list_processes, get_process_info, list_services, get_service_status, and get_service_logs.

For logs and files, get_journal_logs reads systemd journal data, read_log_file reads a selected log, and list_directories, list_files, and read_file inspect filesystem content within the tools' safety limits. Network inspection is divided among interface details, active connections, and listening ports.

The PCP tools are designed as a sequence: consult the guide, browse the namespace when necessary, then query recorded metrics or request a summary. Metric queries choose reasonable time and sample defaults when their time range or interval is omitted.

Limitations and notes

The server is read-only, so it is suitable for evidence gathering and diagnosis but not for applying fixes. PCP results depend on PCP being installed, active, and recording metrics on the target system. The PCP namespace reflects what that system's pmlogger records, rather than every metric that might exist in a PCP installation.

The project is optimized for RHEL-based Linux and systemd environments. Remote use requires SSH access and key-based authentication. File and log inspection is governed by configured access controls and safe size limits.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Linux MCP Server

linux-mcp-server is an MCP server that connects AI clients to local or remote RHEL-based Linux systems for read-only administration and diagnostics. Its main tools inspect system information, services, processes, logs, networks, storage, hardware, and PCP performance metrics through MCP.

Install and configure linux-mcp-server using the project documentation. The setup covers connecting it to an MCP client, configuring SSH key-based access for remote systems, and controlling permitted log files with environment variables.

Yes, linux-mcp-server can execute read-only checks on remote systems over SSH with key-based authentication. Multiple remote hosts can be connected during the same session for distributed or comparative troubleshooting.

No, linux-mcp-server provides read-only tools. It can inspect services, logs, processes, files, network state, storage, and hardware, but it does not apply configuration changes or other system modifications.

Use the PCP tools when `get_system_information` shows that PCP is available. Call `pcp_guide` first, use `pcp_list_metrics` if you need to browse the recorded namespace, and then call `pcp_query_metrics` for archived samples or `pcp_performance_summary` for a condensed view.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLinux MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/linux-mcp-server-2?style=directory)](https://allmcps.com/mcp/linux-mcp-server-2)
HTML Embed
<a href="https://allmcps.com/mcp/linux-mcp-server-2"><img src="https://allmcps.com/api/badge/linux-mcp-server-2?style=directory" alt="Linux MCP Server on AllMCPs" /></a>