System Diagnostics
An MCP server for system diagnostics and monitoring on Ubuntu using common command-line tools.
GitHub
1
Try this MCPSponsoredDocumentation
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