Back to Home
rhel-lightspeed icon

linux-mcp-server

by rhel-lightspeed

Overview

This server provides read-only Linux system administration, diagnostics, and troubleshooting capabilities for AI agents using the Model Context Protocol (MCP).

Installation

Run Command
linux-mcp-server

Environment Variables

  • LINUX_MCP_USER
  • LINUX_MCP_LOG_DIR
  • LINUX_MCP_LOG_LEVEL
  • LINUX_MCP_LOG_RETENTION_DAYS
  • LINUX_MCP_ALLOWED_LOG_PATHS
  • LINUX_MCP_SSH_KEY_PATH
  • LINUX_MCP_KEY_PASSPHRASE
  • LINUX_MCP_SEARCH_FOR_SSH_KEY
  • LINUX_MCP_VERIFY_HOST_KEYS
  • LINUX_MCP_KNOWN_HOSTS_PATH
  • LINUX_MCP_COMMAND_TIMEOUT

Security Notes

The server explicitly states all operations are read-only, includes robust path validation to prevent injection/traversal attacks, and sanitizes sensitive parameters from logs. However, a critical security risk exists because `LINUX_MCP_VERIFY_HOST_KEYS` defaults to `False`, making remote SSH connections vulnerable to Man-in-the-Middle (MITM) attacks. This default configuration makes the server unsafe for production use without manual intervention to enable host key verification.

Similar Servers

Stats

Interest Score75
Security Score3
Cost ClassMedium
Avg Tokens500
Stars123
Forks28
Last Update2026-01-19

Tags

system administrationdiagnosticstroubleshootingLinuxRHELsystemd