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
linux-mcp-serverEnvironment 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
mcpm.sh
MCPM is a command-line tool for managing Model Context Protocol (MCP) servers, enabling discovery, installation, execution, sharing, and integration with various MCP clients.
ssh-mcp-server
Bridging AI assistants to remote SSH server operations for command execution, file transfer, and server status retrieval via the Model Context Protocol (MCP).
nettune
This server acts as an MCP (Model Context Protocol) stdio client wrapper for the 'nettune' TCP network optimization tool, enabling AI-assisted network diagnostics and configuration on Linux servers.
prometheus-mcp
A Model Context Protocol (MCP) server that enables AI agents and CLI users to query and discover metrics from Prometheus, with built-in features like retries, caching, and an optional metrics exporter.