
mcp-monitor
by seekrays·★ 82·综合分 43
基于Go的MCP服务器,可监控CPU、内存、磁盘、网络和进程等系统指标。
monitoringdeveloper-toolsops-infra
16
Forks
0
活跃 Issue
10 个月前
最近提交
2 天前
收录于
概述
MCP系统监控器是一个全面的监控解决方案,通过模型上下文协议(MCP)暴露系统指标。它允许大型语言模型检索关于CPU使用率、内存消耗、磁盘I/O、网络流量和运行进程的实时信息。该服务器使用Go编写,提供与MCP兼容的无缝集成的stdio接口。每个工具都有清晰的参数描述和返回值规范。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:LLM助手在不切换到终端的情况下监控系统健康
你:通过对话式AI环境进行服务器指标的自动报告
你:DevOps集成,通过AI接口进行实时系统诊断
你:支持哪些操作系统?
你:如何访问系统指标?
什么时候选它
当你需要通过MCP接口获取基础系统指标监控,且不希望复杂设置时,特别是用于服务器管理任务。
什么时候不要选它
如果你需要具有历史数据、告警功能的高级监控,或需要认证/授权功能,则不应选择此工具,因为它缺乏这些功能。
此 server 暴露的工具
从 README 抽取出 6 个工具get_cpu_infoget_cpu_info(per_cpu: boolean = false)Get CPU information and usage
get_memory_infoget_memory_info()Get system memory usage information
get_disk_infoget_disk_info(path: string = '/', all_partitions: boolean = false)Get disk usage information
get_network_infoget_network_info(interface: string?)Get network interface and traffic information
get_host_infoget_host_info()Get host system information
get_process_infoget_process_info(pid: number?, limit: number = 10, sort_by: string = 'cpu')Get process information
可对比工具
node-mcp-monitorprometheus-mcpdatadog-mcpsysinfo-mcp
安装
# 从源码构建
git clone https://github.com/seekrays/mcp-monitor.git
cd mcp-monitor
make build
# 运行服务器
./mcp-monitor在Claude Desktop的config.json中添加:
{
"mcpServers": {
"system-monitor": {
"command": "mcp-monitor的路径"
}
}
}FAQ
- 支持哪些操作系统?
- 该服务器使用Go实现,应可在包括Linux、macOS和Windows在内的主流操作系统上运行。
- 如何访问系统指标?
- 通过六个专用MCP工具访问指标:get_cpu_info、get_memory_info、get_disk_info、get_network_info、get_host_info和get_process_info。
mcp-monitor 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。