Skip to main content
Glama

System Resource Monitor MCP Server

by abhinav7895

系统资源监控器 MCP 服务器

MCP 服务器为 Claude 提供实时系统监控功能,包括使用systeminformation和多源速度测试的 CPU、内存、磁盘、网络、电池和互联网速度指标。

演示

工具

  • 获取 CPU 使用率
    • 以百分比形式检索当前 CPU 负载,包括总体使用率和每个核心的使用率。
    • 输入:无
    • 输出:文本(例如, CPU Load: 12.34% (Cores: 10.50, 15.20, 8.90, 14.60%)
  • 获取内存使用情况
    • 报告总内存、已用内存和可用内存(以 GB 为单位),以及已用内存百分比。
    • 输入:无
    • 输出:文本(例如, Memory: 65.43% used (7.82GB / 16.00GB)
  • 获取磁盘空间
    • 显示最大驱动器的磁盘使用情况(以 GB 和百分比为单位)。
    • 输入:无
    • 输出:文本(例如, Disk (/): 78.90% used (189.50GB / 250.00GB)
  • 获取网络使用情况
    • 返回实时网络 RX/TX 速率(KB/s)和自启动以来的总数据(MB)。
    • 输入:无
    • 输出:文本(例如, Network (eth0): RX: 25.50KB/s, TX: 10.20KB/s (Total: RX 150.34MB, TX 75.89MB)
  • 获取电池状态
    • 提供电池充电百分比、充电状态和剩余时间(如果适用)。
    • 输入:无
    • 输出:文本(例如, Battery: 85% (charging), 120 min remaining或未No battery detected
  • 获取互联网速度
    • 使用多个下载源(包括用户上传的文件)和上传测试来测量互联网速度,返回以 Mbps 为单位的中值速度。
    • 输入:无
    • 输出:文本(例如, Internet Speed: Download 45.67Mbps, Upload 8.45Mbps

配置

步骤 1:克隆并安装

克隆此存储库:

git clone git@github.com:abhinav7895/system-mcp.git

导航到目录并安装依赖项:

cd system-resource-monitor && npm install

第 2 步:构建项目

编译 TypeScript 代码:

npm run build

这将生成dist/index.js文件,准备作为 MCP 服务器运行。

步骤3:配置Claude桌面

  1. 在此处下载 Claude Desktop。
  2. 将其添加到您的claude_desktop_config.json中:
{ "mcpServers": { "system-resource-monitor": { "command": "node", "args": ["/absolute/path/to/dist/index.js"] } } }

访问配置文件:

vim ~/Library/Application\ Support/Claude/claude_desktop_config.json

(根据您的项目位置调整dist/index.js的路径。)

步骤4:测试

通过检查锤子图标确保 Claude Desktop 能够识别该工具:

克劳德可视化工具

单击锤子图标查看可用的工具:

可用集成

如果所有六个工具( get_cpu_usageget_memory_usage等)都显示出来,则表示集成已激活。您现在可以提出以下问题:

  • “我的 CPU 使用率是多少?”
  • “我的网速有多快?”

步骤5:高级定制

  • 互联网速度测试:修改index.ts中的testUrls以使用不同的下载源或调整uploadSizeBytes (默认 80KB)进行上传测试。
  • 日志记录:控制台日志提供详细的测试输出;通过删除console.log语句在生产中禁用它们。

故障排除

  • 工具未显示:验证服务器是否正在运行( node dist/index.js )并且配置路径是否正确。
  • 网速错误:确保网络连接正常,并且测试 URL 可以访问。检查控制台日志以了解具体故障。
  • 请参阅MCP 故障排除指南

执照

此 MCP 服务器采用 MIT 许可证。您可以根据 MIT 许可证的条款自由使用、修改和分发该软件。详情请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

为 Claude 提供实时系统监控功能,包括 CPU、内存、磁盘、网络、电池和互联网速度指标。

  1. 工具
    1. 配置
      1. 步骤 1:克隆并安装
      2. 第 2 步:构建项目
      3. 步骤3:配置Claude桌面
      4. 步骤4:测试
      5. 步骤5:高级定制
      6. 故障排除
    2. 执照

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.
        Last updated -
        37
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        A server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.
        Last updated -
        3
        914
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        A lightweight server that provides real-time system information including CPU, memory, disk, and GPU statistics for monitoring and diagnostic purposes.
        Last updated -
        1
        Python
        MIT License
      • A
        security
        F
        license
        A
        quality
        Provides real-time system metrics and information through a Model Context Protocol interface, enabling access to CPU usage, memory statistics, disk information, network status, and running processes.
        Last updated -
        7
        1
        Python
        • Apple
        • Linux

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhinav7895/system-mcp'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server