Skip to main content

MCP server for Ubuntu system diagnostics and monitoring

Project description

System Diagnostics MCP Server

A Model Context Protocol (MCP) server that provides comprehensive system diagnostics and monitoring capabilities for Ubuntu systems.

Features

🧠 Core Diagnostics

  • check_port – Test if a TCP port is open
  • ping_host – ICMP ping to a remote host
  • dns_lookup – Resolve DNS records for a domain
  • http_check – HTTP status check for a URL
  • traceroute_host – Trace network path to host
  • get_uptime – Return system uptime
  • get_sys_info – Basic system info (CPU, memory, disk)
  • get_hostname – Retrieve machine hostname

⚙️ Service & Process Monitoring

  • list_processes – List running processes (like ps)
  • list_services – List systemd or init services
  • service_status – Status of a specific service
  • read_journal – Fetch latest logs for a unit or tag
  • cron_list – Show cron jobs for current user

📦 Disk & Memory

  • check_disk_usage – Disk usage summary (like df)
  • check_memory – RAM/Swap usage (like free)
  • check_inode_usage – Filesystem inode stats
  • list_mounts – Mounted volumes

🔌 Network & Ports

  • list_open_ports – Show open TCP/UDP ports
  • check_firewall_status – UFW/iptables summary
  • list_network_interfaces – IP, MAC, link state
  • check_bandwidth_usage – Network traffic stats
  • resolve_host – Reverse DNS for IP address
  • curl_url – GET request with curl, full headers

🔒 Security & Access

  • list_users – Local users
  • last_logins – Last login attempts
  • check_sudoers – Who can sudo
  • who_is_logged_in – Current sessions

Installation

Using uv (recommended)

# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install the package
uv pip install system-diag-mcp

Using pip

pip install system-diag-mcp

Usage

As a standalone server

system-diag-mcp

With Claude Desktop

Add this to your Claude Desktop configuration:

{
  "mcpServers": {
    "system-diag": {
      "command": "system-diag-mcp"
    }
  }
}

With other MCP clients

The server runs on stdio and implements the full MCP protocol.

Development

# Clone the repository
git clone <repository-url>
cd system-diag-mcp

# Install development dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

# Format code
black .
ruff check .

Requirements

  • Python 3.8+
  • Ubuntu/Debian-based system
  • Required system tools: ping, dig, traceroute, systemctl, ps, df, free, curl

License

MIT License

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

system_diag_mcp-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

system_diag_mcp-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: system_diag_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for system_diag_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b313e069eb35c61e26b7f84efe4c1cbccbc9c75a8b74cc4f22d929e75eed4e4
MD5 0c2d755b42b2354468706c3599ead880
BLAKE2b-256 a3352905d1ebff4eeed6225b45e9325d45911415e949a0a4db8d91479c41f489

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for system_diag_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d088187888544e6fb6b908d76d84dae9b0e5c894abbd9cefb36d8a73a03907
MD5 bda1f244a0db1c3a0e8be6cc8a765541
BLAKE2b-256 d2dd6acf712b5a117e431a48c63f9db7f8b05b1cb557fc6b149db2d463bdbb9e

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