Mcp 系统监控器
一个通过模型上下文协议(MCP)暴露系统指标的系统监控工具。该工具允许大型语言模型(LLMs)通过与MCP兼容的接口检索实时系统信息。
概览
什么是 MCP Monitor?
MCP Monitor 是一个强大的系统监控工具,旨在通过模型上下文协议(MCP)暴露系统指标。这个创新工具使大型语言模型(LLMs)能够通过与 MCP 兼容的接口访问实时系统信息,使其成为开发人员和系统管理员有效监控和优化系统的必备资源。
MCP Monitor 的特点
- 实时指标:MCP Monitor 提供实时的系统性能洞察,允许用户跟踪各种指标,如 CPU 使用率、内存消耗和磁盘活动。
- MCP 兼容性:该工具与模型上下文协议完全兼容,确保与 LLM 和其他使用该协议的应用程序无缝集成。
- 用户友好的界面:MCP Monitor 具有直观的界面,简化了监控系统指标的过程,使所有技能水平的用户都能轻松访问。
- 开源:作为一个开源项目,MCP Monitor 鼓励社区贡献,并允许用户根据特定需求修改该工具。
- 通知和警报:用户可以设置通知,以在达到某些阈值时接收警报,确保对系统资源的主动管理。
如何使用 MCP Monitor
- 安装:首先从官方仓库下载 MCP Monitor。按照文档中提供的安装说明在您的系统上进行设置。
- 配置:安装后,配置该工具以连接到系统的指标。这可能涉及设置 MCP 接口并定义您希望监控的指标。
- 监控:配置完成后,您可以开始实时监控系统指标。仪表板将显示各种指标,允许您分析性能并识别潜在问题。
- 与 LLM 集成:如果您正在使用 LLM,请确保它们已配置为与 MCP Monitor 通信。这将使它们能够根据需要检索系统信息。
常见问题解答
问:什么是模型上下文协议(MCP)?
答:模型上下文协议(MCP)是一种通信协议,允许应用程序,特别是 LLM,访问和交换关于其运行系统的上下文信息。
问:MCP Monitor 是免费使用的吗?
答:是的,MCP Monitor 是一个开源工具,这意味着它是免费使用和修改的。
问:我可以为 MCP Monitor 项目做贡献吗?
答:当然可以!欢迎贡献。您可以通过报告问题、建议功能或通过官方仓库的拉取请求提交代码改进来贡献。
问:我如何获得 MCP Monitor 的支持?
答:如需支持,您可以访问官方聊天 seekrays.com/chat 或查看仓库中提供的文档以获取故障排除提示和指导。
问:MCP Monitor 使用什么许可证?
答:MCP Monitor 在 Apache-2.0 许可证下授权,允许用户在某些条件下使用、修改和分发该软件。
详情
MCP System Monitor
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP). This tool allows LLMs to retrieve real-time system information through an MCP-compatible interface.

Features
This tool provides the following monitoring capabilities:
- CPU Information: Usage percentage, core count, and detailed CPU info
- Memory Information: Virtual and swap memory usage
- Disk Information: Disk usage, partitions, and I/O statistics
- Network Information: Network interfaces, connections, and traffic statistics
- Host Information: System details, uptime, boot time, and users
- Process Information: Process listing, sorting, and detailed per-process statistics
Available Tools
1. CPU Information
Tool: get_cpu_info
Description: Get CPU information and usage
Parameters:
- per_cpu (boolean, default: false): Whether to return data for each core
2. Memory Information
Tool: get_memory_info
Description: Get system memory usage information
Parameters: None
3. Disk Information
Tool: get_disk_info
Description: Get disk usage information
Parameters:
- path (string, default: "/"): Specify the disk path to query
- all_partitions (boolean, default: false): Whether to return information for all partitions
4. Network Information
Tool: get_network_info
Description: Get network interface and traffic information
Parameters:
- interface (string, optional): Specify the network interface name to query
5. Host Information
Tool: get_host_info
Description: Get host system information
Parameters: None
6. Process Information
Tool: get_process_info
Description: Get process information
Parameters:
- pid (number, optional): Process ID to get detailed information for a specific process
- limit (number, default: 10): Limit the number of processes returned
- sort_by (string, default: "cpu"): Sort field (cpu, memory, pid, name)
Installation
git clone https://github.com/seekrays/mcp-monitor.git
cd mcp-monitor
make build
Usage
Run the compiled binary:
./mcp-monitor
The server starts in stdio mode, ready to communicate with an MCP-compatible LLM client.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Server配置
{
"mcpServers": {
"mcp-monitor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--seekrays--mcp-monitor--mcp-monitor",
"./out"
],
"env": {}
}
}
}