Skip to main content

MCP server for Linux system administration — manage services, processes, disk, network and logs via AI agents

Project description

linux-admin-mcp-server

Linux system administration via AI agents — MCP server for managing services, processes, disk, network and logs on Linux systems.

Features

  • 14 tools for complete Linux system management
  • System info: CPU, RAM, Uptime, Kernel, OS-Release
  • Disk & Memory: Usage statistics with warnings for high utilization
  • Health Check: Automated system health assessment (OK/WARNING)
  • Systemd Services: List, status, start/stop/restart, enable/disable, logs
  • Process Management: List processes sorted by CPU/memory, search by name
  • Network: Interfaces, open ports, active connections, DNS lookup
  • Safety: Only predefined commands, no arbitrary shell execution

Installation

pip install linux-admin-mcp-server

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "linux-admin": {
      "command": "linux-admin-mcp-server"
    }
  }
}

Note: Run Claude Desktop on your Linux machine, or use this server on a Linux system where you want AI-assisted administration.

Available Tools

Tool Description Sudo Required
system_info Hostname, kernel, CPU, RAM, uptime No
disk_usage Disk usage for all mounted filesystems No
memory_usage RAM and swap usage details No
health_check Full system health assessment No
services_list List systemd services (all/running/failed) No
service_status Detailed status of a specific service No
service_manage Start/stop/restart/enable/disable a service Yes
service_logs Last N log lines via journalctl No
processes_list Running processes sorted by CPU/memory No
process_find Find processes by name No
top_consumers Top 5 CPU and memory consumers No
network_interfaces Network interfaces and IP addresses No
open_ports Listening ports (LISTEN state) No
active_connections Established network connections No
dns_lookup Resolve hostname to IP address No

Example Prompts

  • "Show me the system health status"
  • "What services are currently failing?"
  • "Restart the nginx service"
  • "Show the last 100 lines of the postgres logs"
  • "Which processes are consuming the most memory?"
  • "What ports is this server listening on?"
  • "What's the disk usage on this machine?"

Requirements

  • Linux operating system (Ubuntu, Debian, CentOS, Fedora, etc.)
  • Python 3.10+
  • systemd (for service management tools)
  • ss or netstat (for network tools)
  • sudo access (only for service start/stop/enable/disable)

Compared to ssh-mcp-server

Feature linux-admin-mcp-server ssh-mcp-server
Use case Local Linux admin Remote via SSH
SSH required No Yes
systemd support Full (14 tools) Basic
Health check Yes No
Network tools 4 tools Limited

License

MIT License — AiAgentKarl 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linux_admin_mcp_server-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linux_admin_mcp_server-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file linux_admin_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: linux_admin_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for linux_admin_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d4b95ee29591f1c38d5fc57da4f03e7856314aacdc0f137ecdaab6404fb78d8
MD5 2bd0adeb088f0ad04975008563ad9d8d
BLAKE2b-256 c194785cdf69420c226e293037e5d1b8159a8cb9890b9d573cd74f52d89b8ed9

See more details on using hashes here.

File details

Details for the file linux_admin_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for linux_admin_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fba0376d46b57b9296a5ce9a548f6b3528479e58b5790fe5c4d5eac1938cd64f
MD5 c868a074490be64e62a7b656f7c9a9cf
BLAKE2b-256 0782ab5abad0d5bd54910f691b22fe6d88eb11306eb927594f6a88815af9c4c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page