Sends detailed system monitoring reports to Discord channels through configurable webhooks, with separate reports for hardware metrics and network analysis, formatted as visually optimized embeds
Uses pandas for data manipulation of collected system metrics before analysis and reporting
Built on Python 3.8+ with a CLI interface for running system monitoring, anomaly detection, and reporting commands
Leverages scikit-learn's Isolation Forest algorithm for unsupervised machine learning to detect system anomalies
MCP_AI_Monitor
🔍 Overview
MCP_AI_Monitor is a comprehensive system monitoring solution that uses unsupervised machine learning algorithms to detect abnormal behavior in resource usage. Designed to provide deep visibility into your system's performance in real time, it combines data collection, predictive analysis, and detailed reporting.
✨ Main Features
🤖 AI Anomaly Detection - Uses Isolation Forest to identify unusual system behaviors
📊 Real-time Analysis - Continuous monitoring of CPU, RAM and network metrics
🧠 Adaptive Learning - Adjusts to your system's normal behavior to reduce false positives
📱 Instant Notifications - System alerts when anomalies are detected
📈 Detailed Visualizations - Resource usage graphs with trend identification
⚙️ Process Analysis - Identification of resource-intensive applications
🌐 Network Monitoring - Analyze active connections and network performance
📡 Discord Integration - Detailed reports automatically sent to your Discord channels
🎨 Modern CLI Interface - Colorful and intuitive display in the terminal
🚀 Available orders
Order | Description |
| System data collection (CPU, RAM) |
| Trains AI model for anomaly detection |
| Launches real-time monitoring with anomaly detection |
| Generates usage graphs and statistics |
| Sends detailed reports to Discord |
| Analyzes the network and sends a dedicated report |
| Performs the complete sequence (collection, training, monitoring) |
🛠️ Architecture
MCP_AI_Monitor is composed of several add-ons:
Data collection module (
collect_data.py
)Records system metrics at regular intervals
Stores data in CSV format for later analysis
AI Training Module (
train_model.py
)Pre-processes the collected data
Train an Isolation Forest model for anomaly detection
Save the model for real-time use
Monitoring module (
monitor_ai.py
)Uses the trained model to detect anomalies in real time
Implements a learning phase to adapt to normal behavior
Distinguishes application launches from real anomalies
Discord Integration
Sends separate reports for hardware and network
Uses configurable webhooks for each data category
Optimized visual format with thematic embeds
📊 Discord Reports
MCP_AI_Monitor generates detailed reports and sends them to Discord via dedicated webhooks:
Hardware reports
System Information - Details about CPU, RAM, OS
Usage Graphs - Visualize CPU/RAM Trends
Active Processes - List of the most power-hungry applications
Network reports
Network activity - Upload/download speeds, data volumes
Network Interfaces - Details of active interfaces and their IP addresses
Active Connections - Tracking established connections and associated processes
📋 Prerequisites
Python 3.8+
Python dependencies (installable via
pip install -r requirements.txt
):psutil - System Data Collection
scikit-learn - Machine learning algorithms
pandas - Data Manipulation
matplotlib - Graph generation
colorama - Colorful display in the terminal
discord-webhook - Integration with Discord
🔧 Installation
Clone this repository:
Install the dependencies:
Configure your Discord webhooks (optional):
Change the webhook URLs in the
mcp.py
fileAbility to use separate webhooks for hardware and network reports
📖 User guide
Quick Start
For a first full use:
Automated workflow
To run the entire process in one command:
🔍 Anomaly detection
The system uses an Isolation Forest algorithm to detect abnormal behavior:
Learning Phase - Collecting data to establish a baseline
Dynamic adaptation - Adjusting thresholds based on normal behavior
Smart Filtering - Detect app launches to reduce false positives
Anomaly Scoring - Classifying Events by Level of Abnormality
🌱 Contribution
Contributions are welcome! To contribute:
Fork the project
Create a branch for your feature (
git checkout -b feature/amazing-feature
)Commit your changes (
git commit -m 'Add some amazing feature'
)Push to the branch (
git push origin feature/amazing-feature
)Open a Pull Request
📜 License
This project is licensed under the MIT License. See the LICENSE
file for more information.
👥 Authors
MedusaSH - Initial Development - Github
🙏 Acknowledgments
Forest insulation by scikit-learn
psutil for accessing system metrics
discord-webhook library for Discord integration
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
An advanced system monitoring solution that uses unsupervised machine learning algorithms to detect abnormal resource usage patterns in real-time, with features including anomaly detection, process analysis, and Discord integration.
Related MCP Servers
- AsecurityAlicenseAqualityA JVM monitoring and control platform server based on Arthas that provides a Python interface for monitoring and analyzing Java processes with capabilities for thread analysis, memory monitoring, and performance diagnostics.Last updated -1568MIT License
- -securityAlicense-qualityProvides Claude with real-time system monitoring capabilities, including CPU, memory, disk, network, battery, and internet speed metrics.Last updated -1MIT License
- AsecurityAlicenseAqualityA lightweight server that provides real-time system information including CPU, memory, disk, and GPU statistics for monitoring and diagnostic purposes.Last updated -1MIT License
- -securityFlicense-qualityA natural language-based server analysis and monitoring system that automatically processes user queries about server status and provides detailed responses with visualizations.Last updated -