Linux MCP Server
Lets your AI agent inspect Linux systems read-only: system info, services, processes, logs, network and storage.
317 stars on GitHubby RHEL Lightspeed (Red Hat)License Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add linux -- uvx linux-mcp-server
What to fill in
| Name | What it is | Required |
|---|---|---|
LINUX_MCP_USER | Default username for SSH connections | No |
LINUX_MCP_SSH_KEY_PATH | Path to SSH private key | No |
LINUX_MCP_KEY_PASSPHRASE | Passphrase for encrypted SSH key | No |
LINUX_MCP_SEARCH_FOR_SSH_KEY | Auto-discover keys in ~/.ssh | No |
LINUX_MCP_COMMAND_TIMEOUT | SSH command timeout in seconds (default: 30) | No |
LINUX_MCP_VERIFY_HOST_KEYS | Verify remote host identity via known_hosts | No |
LINUX_MCP_KNOWN_HOSTS_PATH | Custom path to known_hosts file | No |
LINUX_MCP_ALLOWED_LOG_PATHS | Comma-separated allowlist of log files | No |
LINUX_MCP_LOG_DIR | Server log directory | No |
LINUX_MCP_LOG_LEVEL | Log verbosity (DEBUG, INFO, WARNING) | No |
LINUX_MCP_LOG_RETENTION_DAYS | Days to keep log files | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Why is the nginx service failing on my web server?
Show the largest processes by memory on this host.
What it is
This server gives an agent safe, read-only access to Linux systems for diagnostics and troubleshooting. It can run on the local machine or connect to remote hosts over SSH, and can work with several hosts in one session. It is aimed at RHEL and systemd systems.
What it can do
- System information
- Services
- Processes
- Logs, with configurable log file access
- Network diagnostics
- Storage diagnostics
When to use
- βΊWhen a server is misbehaving and you want help reading logs and service status
- βΊWhen you need a safe way to let an AI look at a system without changing it
- βΊWhen you check several remote hosts in one session
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
sysadminHelps your agent diagnose and manage Linux, macOS and Windows machines, from CPU, disk and network checks to service logs.centos-linux-triageHas your agent resolve issues on the CentOS Linux system. It uses RHEL-compatible tools and security practices to fix failures.analyzing-linux-audit-logs-for-intrusionHelps your agent find intrusion attempts on Linux systems. It analyzes activity logs to detect unauthorized access and suspicious activities.Frequently asked questions
Can it change my system?
No. The readme says all tools are strictly read-only.
How does it reach remote machines?
Over SSH with key-based authentication.
Which systems does it target?
RHEL-based systems and systemd, as stated in the readme.
Can I limit which logs it reads?
Yes. Log access is configurable with environment variables.
Where are the install steps?
In the documentation at rhel-lightspeed.github.io/linux-mcp-server.
Is it free?
The readme lists no price. It is published on PyPI and the project is on GitHub.
If it does not work
- βΊCheck that your SSH key works by connecting to the host manually first.
- βΊCheck the environment variable that lists allowed log files if a log cannot be read.
- βΊRestart your MCP client after changing its configuration.
5 new skills a week. 1 minute to read.