Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyCloud and servers

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

NameWhat it isRequired
LINUX_MCP_USERDefault username for SSH connectionsNo
LINUX_MCP_SSH_KEY_PATHPath to SSH private keyNo
LINUX_MCP_KEY_PASSPHRASEPassphrase for encrypted SSH keyNo
LINUX_MCP_SEARCH_FOR_SSH_KEYAuto-discover keys in ~/.sshNo
LINUX_MCP_COMMAND_TIMEOUTSSH command timeout in seconds (default: 30)No
LINUX_MCP_VERIFY_HOST_KEYSVerify remote host identity via known_hostsNo
LINUX_MCP_KNOWN_HOSTS_PATHCustom path to known_hosts fileNo
LINUX_MCP_ALLOWED_LOG_PATHSComma-separated allowlist of log filesNo
LINUX_MCP_LOG_DIRServer log directoryNo
LINUX_MCP_LOG_LEVELLog verbosity (DEBUG, INFO, WARNING)No
LINUX_MCP_LOG_RETENTION_DAYSDays to keep log filesNo

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

A Linux system, and SSH key-based authentication for remote hosts. See the documentation site for install steps.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.