MCP Server Health Monitor
MCP Server Health Monitor
一个 MCP(模型上下文协议)服务器,让 LLM 能够监控服务器基础设施。将其连接到 OpenCode、Claude Code 或任何兼容 MCP 的客户端,即可用自然语言询问服务器的健康状况。
功能
你可以向 LLM 询问以下内容:
"我的 Web 服务器是否在响应?"
"我还剩多少磁盘空间?"
"哪些进程占用的内存最多?"
"3306 端口是否开放?"
Related MCP server: MCP VPS Manager
工具
工具 | 描述 |
| 检查 URL 是否返回 200 OK |
| 获取磁盘空间信息 |
| 获取内存和交换分区使用情况 |
| 获取每个核心的 CPU 使用率 |
| 检查 TCP 端口是否开放 |
| 列出正在运行的进程,支持可选过滤 |
资源
资源 | 描述 |
| 操作系统、主机名、运行时间 |
| 汇总的健康状态 |
技术栈
Python 3.12+
psutil(系统指标)
httpx(HTTP 检查)
设置
安装依赖:
uv sync运行服务器:
uv run mcp-server-monitor或者直接运行:
uv run python -m mcp_server_monitor使用 MCP Inspector 进行测试
uv run mcp dev src/mcp_server_monitor/server.py这将在浏览器中打开 MCP Inspector,你可以在其中交互式地调用工具。
连接到 OpenCode
添加到你的 opencode.json:
{
"mcpServers": {
"server-monitor": {
"command": "uv",
"args": ["run", "--project", "C:\\Users\\nikol\\Documents\\mcp-server-monitor", "mcp-server-monitor"]
}
}
}运行测试
uv run pytest项目结构
src/mcp_server_monitor/
├── __init__.py Package metadata
├── __main__.py Entry point
├── server.py MCP server setup
├── tools/
│ ├── http.py HTTP endpoint checking
│ ├── system.py CPU, memory, disk
│ ├── network.py Port checking
│ └── processes.py Process listing
└── resources/
└── status.py System info and health许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Monitors TLS/SSL certificate expiry, DNS resolution, and TCP port status for AI agents.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
- emisarOAuthdev.emisar
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Agent-native uptime monitoring. Create, inspect, and assert monitor health. Free 50-monitor tier.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides read-only server monitoring and diagnostic tools for AI assistants to manage Linux and Unraid systems via SSH. It enables natural language interactions for container management, storage health checks, and system log analysis while keeping credentials secure.17ISC
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to securely manage Virtual Private Servers via SSH, with features including command execution, file operations, system monitoring, and service management.1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to monitor and manage Linux infrastructure including services, logs, processes, disk, memory, ports, cron, nginx, Docker, and system health checks via the Model Context Protocol.10MIT
- FlicenseNot gradedqualityBmaintenanceLets an LLM client monitor devices, services, disk usage, and uptime in a home network and home lab.-