← Back to Linux MCP Server
Install Linux MCP Server
Pick your client, copy the command, done.
1
Add it to Claude Code
claude mcp add -e "SSH_HOST=${SSH_HOST}" -e "SSH_USER=${SSH_USER}" linux-mcp-server -- uvx linux-mcp-serverRequired:
SSH_HOSTSSH_USER+ 1 optionalEnvironment Variables
Set these before running Linux MCP Server.
VariableDescriptionRequired
SSH_HOSTThe hostname or IP address of the remote RHEL server.YesSSH_USERThe username for SSH authentication.YesALLOWED_LOGSA comma-separated list of log files accessible by the server.NoAvailable Tools (4)
Once configured, Linux MCP Server gives your AI agent access to:
execute_commandExecutes a read-only command on the remote Linux host via SSH.commandget_system_infoRetrieves general system information from the remote host.list_servicesLists the status of systemd services on the remote host.read_logReads a specific log file from the remote host.log_pathTry It Out
After setup, try these prompts with your AI agent:
→Check the status of the httpd service on the remote server.
→What is the current system load and memory usage on the RHEL host?
→Read the last 50 lines of the /var/log/messages file.
→List all currently running processes on the remote system.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Python 3.8+ with pip installed
SSH_HOST— The hostname or IP address of the remote RHEL server.SSH_USER— The username for SSH authentication.
Alternative installation methods
pip
pip install linux-mcp-serverKeep this setup from going cold
Save the docs, env vars, and workflow around Linux MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.