Laptop Hardware MCP Server

Laptop Hardware MCP Server

A Windows-based MCP server that provides real-time hardware telemetry and system stats including CPU, RAM, disk, and battery information to GitHub Copilot. It enables users to monitor performance and retrieve detailed system specifications through natural language commands.

Category
访问服务器

README

Laptop Hardware MCP Server (Windows)

This project creates a local MCP server that gives GitHub Copilot access to hardware/system telemetry from your laptop (CPU, RAM, disk, battery, network, uptime).

What this server provides

The MCP server in server.py exposes these tools:

  • get_live_system_stats
  • get_cpu_info
  • get_memory_info
  • get_disk_info
  • get_battery_info
  • get_network_io
  • get_system_overview

VS Code MCP config is in .vscode/mcp.json.

Why Python 3.10+ matters

The modern mcp Python package requires a newer Python runtime than 3.8.

If you get an error like:

  • No matching distribution found for mcp

it usually means your active interpreter is too old.

Check which Python versions are installed

In PowerShell or CMD

py -0p

You should see at least one version that is 3.10+ (for example 3.10, 3.11, 3.12, 3.13).

If you do NOT have Python 3.10+

  1. Install Python from python.org (Windows installer).
  2. During install, enable:
    • Add Python to PATH
    • Install launcher for all users (recommended)
  3. Re-open terminal and run:
py -0p

Create a virtual environment using Python 3.10+

Use one of these commands (replace version if needed).

PowerShell / CMD

py -3.13 -m venv .venv

Git Bash

py -3.13 -m venv .venv

If .venv already exists and you want a clean reset:

py -3.13 -m venv .venv --clear

Activate the environment

PowerShell

.\.venv\Scripts\Activate.ps1

If script execution is blocked:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1

CMD

.venv\Scripts\activate.bat

Git Bash

source .venv/Scripts/activate

Important: in Bash, use / slashes, not \.

Install dependencies

From project root:

python -m pip install --upgrade pip
python -m pip install -r requirements.txt

Quick verification

python -c "import mcp, psutil; print('deps_ok')"

Expected output:

  • deps_ok

Run the server manually (optional test)

python server.py

Note: this is a stdio MCP server. If you stop it with Ctrl+C, you may see cancellation traces; that is normal for manual termination.

Use it in VS Code Copilot Chat

  1. Keep this file present: .vscode/mcp.json
  2. Reload VS Code:
    • Command Palette -> Developer: Reload Window
  3. Open Copilot Chat and ask:
    • Use laptop-hardware MCP server and call get_system_overview
    • Use laptop-hardware MCP server and call get_memory_info
    • Use laptop-hardware MCP server and call get_disk_info with path C:\\

Troubleshooting

Error: No matching distribution found for mcp

Cause: old Python interpreter.

Fix:

py -0p
py -3.13 -m venv .venv --clear

Then reactivate and reinstall dependencies.

Error: -r option requires 1 argument

Cause: command ended at pip install -r without a filename.

Fix:

python -m pip install -r requirements.txt

Git Bash activation command fails

Cause: using Windows backslashes.

Fix:

source .venv/Scripts/activate

Copilot does not see MCP server

  • Confirm .vscode/mcp.json exists.
  • Confirm dependencies are installed in .venv.
  • Reload VS Code window.

Project files

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选