mcp-linux-tools
Verified Safeby gerard-kanters
Overview
Provides an LLM agent with limited and whitelisted Linux server management capabilities, including file operations, service control, cron management, WordPress interaction, and shell command execution.
Installation
/opt/mcp/venv/bin/python /opt/mcp/server.pySecurity Notes
The server runs as root, granting high privileges. While most functions employ strict whitelisting (directories, services, WordPress sites) and input sanitization (`shlex.split`, regex validation), certain tools inherently carry elevated risks. The `cron_add` tool allows direct insertion of a command string into the root crontab, which, if containing shell metacharacters, could lead to shell injection when cron executes the job. The `execute_shell_command` is explicitly designed for arbitrary shell command execution (though `shlex.split` mitigates *unintended* shell injection) and runs as root by default, allowing potentially destructive commands. The `mysql_query` tool blocks major destructive SQL commands but permits `UPDATE` queries, which could lead to data corruption. Strong systemd service hardening (`NoNewPrivileges`, `ProtectSystem`, `ProtectHome`, `PrivateTmp`, `ReadWritePaths`) and Python sandbox restrictions (PATH, no network) provide good host-level and runtime isolation. The documentation clearly flags dangerous tools with explicit warnings for LLMs.
Similar Servers
1Panel
1Panel is a web-based Linux server management tool for efficient host monitoring, file management, database administration, container orchestration, and rapid website deployment, including AI tools and backup/restore functionality.
linux-mcp-server
This server provides read-only Linux system administration, diagnostics, and troubleshooting capabilities for AI agents using the Model Context Protocol (MCP).
mcp-ssh-orchestrator
Provides secure, policy-driven SSH orchestration for AI agents to manage server infrastructure with audit logging, enforcing zero-trust principles.
shell-exec-mcp
Provides a Model Context Protocol (MCP) server for executing arbitrary bash commands, supporting both foreground execution with timeouts and background job management.