Installation Guide¶
Get the Linux MCP Server running quickly with your favorite MCP client.
Architecture Requirement
This setup requires a Control System, where the MCP server and AI assistant run, and a Target System - the Linux system you wish to troubleshoot, which can be the same system or a remote host accessed via SSH.
Local execution (without SSH) is only supported on Linux.
Install with uv (Recommended)¶
uv is a fast Python package manager that handles Python installation automatically.
-
Install
linux-mcp-server: -
Verify installation:
Tip
If the command is not found, run uv tool update-shell to add ~/.local/bin to your PATH, then restart your shell.
Note
It is not necessary to run linux-mcp-server directly for normal use. The MCP client will handle starting and stopping the server.
Optional dependencies
The gssapi package is needed for SSH authentication to Kerberos-registered systems. Install with uv tool install linux-mcp-server[gssapi].
The gcp package is needed for Google Cloud Platform integration with the gatekeeper model. Install with uv tool install linux-mcp-server[gcp].
Install from Fedora packages¶
On Fedora, the server is available as a system package:
Run in a container¶
Instead of installing the Python code for linux-mcp-server directly on your system, you can run the MCP server from a prebuilt container instead. A container runtime such as Podman (recommended) or Docker is required.
Container image:
Container Setup (Podman)¶
Before running linux-mcp-server with podman, we need to create the directory where the logs will be stored:
Container Setup (Docker)¶
When running linux-mcp-server with docker, the container runs as a non-root user (UID 1001). Files mounted from your host must be readable by this user.
The container needs access to your SSH keys for remote connections. You'll need to make a copy that is readable by the container:
# Create directories
mkdir -p ~/.local/share/linux-mcp-server/{logs,ssh}
# Copy your SSH keys/configs and set ownership (exact files will vary)
cp ~/.ssh/config ~/.local/share/linux-mcp-server/ssh/config
cp ~/.ssh/id_ed25519 ~/.local/share/linux-mcp-server/ssh
sudo chown -R 1001:1001 ~/.local/share/linux-mcp-server/
Configuring your client¶
See Client Configuration for specific examples. Make sure to modify the provided podman or docker command lines to have the correct paths.
Next Steps¶
- SSH Configuration: Set up SSH access to remote hosts
- Client Configuration: Configure your MCP client
- Troubleshooting: Solutions for common issues