by thanhtung0201
Collects real-time health and performance metrics from remote Linux servers via SSH, exposing them through MCP for AI assistants.
MCP Remote System Health provides real-time health and performance data for remote Linux servers. It connects to each server over SSH, gathers metrics such as CPU load, memory usage, disk space, network statistics, and security‑related information, and makes these metrics available through the MCP protocol for AI‑driven clients.
pip install -r requirements.txt
../mcp_launcher.py --username=admin --key-path=~/.ssh/id_rsa --servers=192.168.1.100,192.168.1.101
system_status
, cpu_metrics
, memory_metrics
, disk_metrics
, network_metrics
, security_metrics
, process_list
, system_alerts
, and health_summary
.Q: Which operating systems are supported? A: Currently only Linux servers are supported.
Q: Do I need to store historical data? A: The server provides real‑time metrics only; historical storage must be added externally if required.
Q: Can I receive alerts via email or Slack? A: Alerts are returned through MCP tool calls. Integration with external notification services can be built on top of the API.
Q: Is password authentication safe? A: Key‑based authentication is recommended. If passwords are used, ensure they are stored securely and the monitoring account has limited privileges.
Q: How are alert thresholds configured? A: Default thresholds are built‑in (e.g., CPU ≥ 90% critical). Custom thresholds are not yet configurable via the current version.
A robust server monitoring system built on the Multi-Channel Protocol (MCP) framework, designed for seamless integration with Claude and other AI assistants.
MCP System Health Monitoring provides real-time health and performance metrics for remote Linux servers. It establishes SSH connections to collect system metrics including CPU usage, memory utilization, disk space, network statistics, security metrics, and more.
Clone the repository:
git clone https://github.com/yourusername/mcp-system-health.git
cd mcp-system-health
Create a virtual environment:
python -m venv venv
Activate the virtual environment
source venv/bin/activate
venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Create a configuration file for each server you want to monitor:
{
"hostname": "server1",
"ip": "192.168.1.100",
"ssh_port": 22,
"username": "admin",
"key_path": "~/.ssh/id_rsa"
}
Alternatively, you can use the command-line launcher to dynamically create configurations.
./mcp_launcher.py --username=admin --key-path=~/.ssh/id_rsa --servers=192.168.1.100,192.168.1.101
--username
: SSH username (required)--password
: SSH password (either this or key-path required)--key-path
: Path to SSH private key (either this or password required)--ssh-port
: SSH port (default: 22)--servers
: Comma-separated list of server IPs (required)--repository
: Path to existing server repository--log-level
: Logging level (debug, info, warning, error)To use the MCP System Health server with MCP clients like Claude, you'll need to add the server configuration to your client's MCP settings.
Add this configuration to Claude's MCP settings and restart for changes to take effect: You can use either password or key_path
{
"mcpServers": {
"system-health": {
"command": "/path/to/your/venv/bin/python3",
"args": [
"/path/to/your/system-health-mcp-server/src/mcp_launcher.py",
"--username=your_ssh_username",
"--password=your_ssh_password",
"--key-path=~/.ssh/id_rsa",
"--servers=server1.example.com,server2.example.com",
"--log-level=debug"
],
"description": "System Health MCP Server for monitoring remote servers"
}
}
}
#Using as a Library
#Configure your servers, you can use either password or key_path
from src.server import serve
server_configs = [
{
"hostname": "server1",
"ip": "192.168.1.100",
"ssh_port": 22,
"username": "admin",
"password": "password",
"key_path": "~/.ssh/id_rsa"
}
]
#Start the MCP server
await serve(server_configs)
The MCP server exposes the following tools:
The system provides automatic alerts based on these default thresholds:
CPU:
Memory:
Disk:
Security:
Contributions are welcome! Please feel free to submit a Pull Request.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by Arize-ai
Open-source AI observability platform enabling tracing, evaluation, dataset versioning, experiment tracking, prompt management, and interactive playground for LLM applications.
by grafana
Provides programmatic access to a Grafana instance and its surrounding ecosystem through the Model Context Protocol, enabling AI assistants and other clients to query and manipulate dashboards, datasources, alerts, incidents, on‑call schedules, and more.
by dynatrace-oss
Provides a local server that enables real‑time interaction with the Dynatrace observability platform, exposing tools for querying data, retrieving problems, sending Slack notifications, and integrating AI assistance.
by VictoriaMetrics-Community
Provides a Model Context Protocol server exposing read‑only VictoriaMetrics APIs, enabling seamless monitoring, observability, and automation through AI‑driven assistants.
by GeLi2001
Enables interaction with the Datadog API through a Model Context Protocol server, providing access to monitors, dashboards, metrics, logs, events, and incident data.
by QAInsights
Execute JMeter test plans through Model Context Protocol clients, capture console output, generate HTML dashboards, and automatically analyze JTL results to surface performance metrics, bottlenecks, and actionable recommendations.
by grafana
Provides a Model Context Protocol (MCP) server that enables AI agents to query Grafana Loki log data via stdin/stdout or Server‑Sent Events, supporting both local binary execution and containerized deployment.
by TocharianOU
Provides a Model Context Protocol (MCP) server that enables MCP‑compatible clients to access, search, and manage Kibana APIs using natural language or programmatic requests.
by MindscapeHQ
Provides comprehensive access to Raygun's API V3 endpoints for crash reporting and real user monitoring via the Model Context Protocol.