linux
Tools to allow LLM clients to interact with Linux systems remotely
claude mcp add --transport stdio rhel-lightspeed-linux-mcp-server uvx linux-mcp-server
How to use
The Linux MCP Server provides read-only, remote-diagnostic capabilities tailored for Red Hat Enterprise Linux-based systems. It supports remote SSH execution for safe diagnostics, allows multi-host management within a single session, and exposes a range of system information and troubleshooting tools focused on diagnostics, services, processes, logs, networks, and storage. The server is designed to be read-only by default to minimize risk during investigation and remediation tasks. When connected via an MCP client, you can issue prompts to invoke specific tools or prompts that query system state, pull diagnostics, or analyze configuration and logs. The documentation highlights a cheatsheet and usage guidance to help operators know which prompts to use for different diagnostic tasks.
To use it, install the server via one of the supported deployment methods (UV/uvx for Python, pip for Python, or a container-based approach). Once installed, start the MCP server and connect with an MCP client. Use the provided prompts to perform remote diagnostics, gather system information, or retrieve logs from remote hosts. The multi-host capability enables running commands on several machines in a single session, making it suitable for fleet diagnostics across RHEL-based environments. Follow the official Installation and Usage guides for detailed prompts and troubleshooting steps.
How to install
Prerequisites:
- A host with Python 3.8+ installed (or a container runtime if you plan to deploy via container).
- Internet access to fetch the linux-mcp-server package from PyPI or via UV.
- Optional: SSH access configured for remote hosts if you plan to perform remote diagnostics.
Installation options:
- Install via UV (recommended for Python environments):
# Install and run the MCP server using uvx
uvx linux-mcp-server
- Install via PyPI (pip install):
pip install linux-mcp-server
- Run locally with UV/uvx after installation (example):
uvx linux-mcp-server
- Container-based deployment (Docker):
docker run -i linux-mcp-server
- Refer to the official docs for detailed steps and platform-specific considerations:
- Installation Guide: https://rhel-lightspeed.github.io/linux-mcp-server/install/
- Usage Guide: https://rhel-lightspeed.github.io/linux-mcp-server/usage/
- Cheatsheet: https://rhel-lightspeed.github.io/linux-mcp-server/cheatsheet/
Additional notes
Notes and tips:
- The server is designed for read-only diagnostics to minimize risk on production systems. Ensure appropriate SSH key-based authentication is configured for remote access.
- If you plan to access logs or sensitive data, review environment variable controls that limit which logs/files can be opened.
- When using container deployments, verify that the container has necessary network access and SSH capabilities if remote operations are required.
- Regularly consult the official docs for the latest prompts and recommended workflows, as MCP prompts evolve with features and tooling updates.
- If you encounter compatibility issues with Python versions or package managers, consider using the container deployment as an isolated, consistent environment.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP