system-monitor
A secure, read-only MCP server for AI-powered system monitoring. It provides real-time OS metrics, config discovery, and safe log tailing to enable autonomous infrastructure audits without shell access risks.
README
🛡️ System Status & Config MCP Server (Agentic AIOps)
The ultimate "eyes and ears" for your AI assistants. Give LLMs (like Claude, Cursor, or your autonomous agents) safe, read-only, and token-optimized access to your server's physical reality.
🌟 Why This Exists?
Large Language Models (LLMs) possess vast knowledge of system administration, architecture, and debugging. However, they suffer from a "reality gap" — they know how to fix an OOM error, but they don't know your server's RAM usage, your active configuration paths, or your current logs.
If you give an AI raw shell access (bash), it is extremely dangerous (e.g., accidental rm -rf or crashing the server by catting a 50GB log file).
This MCP (Model Context Protocol) Server solves this by acting as a Secure, Read-Only Abstraction Layer. It empowers AI to perform sub-second, cross-platform infrastructure audits and root-cause analysis without risking system integrity.
🚀 Core Features
1. 📊 High-Concurrency System Probes (get_system_status)
Gathers real-time OS metrics across 17 distinct categories (CPU, Memory, Docker, Network, Processes, Windows WMI internals, etc.).
- Smart Concurrency: Windows WMI/CIM queries are executed in parallel (
Promise.all), reducing response times from seconds to ~200ms. - Cross-Platform: Normalizes complex metrics across Linux, macOS, and Windows into clean JSON.
2. 🔍 Intelligent Config Radar (discover_configs)
AI doesn't need to guess where your config files are.
- Auto-locates 36+ well-known services (Nginx, Redis, SSH, WSL, VSCode, Git, etc.).
- Directory Sniffing: Point it to a project directory (
directory: "/path/to/project"), and it will automatically detect hidden.files and configuration extensions (.yaml,.ini,.env).
3. 🧠 Token-Optimized Config Reader (read_config)
Reads and parses structured configurations (JSON, YAML, INI, TOML, etc.).
keys-onlyMode: Designed specifically for LLMs. If an AI needs to read a massivepackage-lock.json, this mode strips out heavy values and returns only the structural schema (e.g., replacing arrays with[Array of 8 items]), saving tens of thousands of tokens while preserving context.
4. 🛡️ Safe Log Tailing (read_log)
A purpose-built, high-performance log analyzer.
- Reverse Chunk Reading: Directly reads 64KB chunks from the end of the file backwards. Never loads the entire file into memory (OOM-safe).
- Native Grep: Search for keywords (e.g.,
grep: "ERROR") across massive log files. - Circuit Breakers: Hard-capped at 1000 lines and a 10MB backwards-search limit to protect the Node.js event loop during high CPU loads.
🛠️ Installation & Setup
Prerequisites
- Node.js >= 18.x
- TypeScript installed globally or locally
Build from source
# Clone the repository
git clone https://github.com/yourusername/system-status-mcp.git
cd system-status-mcp
# Install dependencies
npm install
# Build the project
npm run build
Usage with Claude Desktop
Add the following configuration to your Claude Desktop claude_desktop_config.json:
Windows (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"system-monitor": {
"command": "node",
"args": ["D:/Project/MCP/status/dist/index.js"]
}
}
}
macOS/Linux (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"system-monitor": {
"command": "node",
"args": ["/path/to/system-status-mcp/dist/index.js"]
}
}
}
🧰 Available MCP Tools
| Tool Name | Description | Key Arguments |
|---|---|---|
get_system_status |
Retrieve system metrics. | category ("all", "performance", "docker", "windows", etc.) |
discover_configs |
Scan for known configs or project dotfiles. | service (filter by name), directory (scan a specific folder) |
read_config |
Parse a specific config file. | path, service, compactMode ("none", "keys-only") |
read_log |
Safely tail and grep massive log files. | path, lines (default 100), grep (optional filter) |
🏗️ Architecture & Safety Highlights
- Embedded Error Reporting: Instead of failing silently or returning
500 Internal Error, the server captures explicit filesystem errors (EACCES,ENOENT) and PowerShell timeouts, embedding them directly into the JSON response (e.g.,{ "_error": "Permission denied" }). This allows the AI to autonomously adjust its strategy (e.g., asking the user forsudoprivileges). - Graceful Timeouts: All heavy subprocess executions (like Windows WMI) are strictly timed out at 15 seconds. If the CPU is pegged at 99%, the MCP server will gracefully report timeout failures rather than hanging the AI indefinitely.
Built for the Agentic Era. Open-sourced under the ISC License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。