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).
The MCP server in server.py exposes these tools:
get_live_system_statsget_cpu_infoget_memory_infoget_disk_infoget_battery_infoget_network_ioget_system_overview
VS Code MCP config is in .vscode/mcp.json.
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.
py -0pYou should see at least one version that is 3.10+ (for example 3.10, 3.11, 3.12, 3.13).
- Install Python from python.org (Windows installer).
- During install, enable:
- Add Python to PATH
- Install launcher for all users (recommended)
- Re-open terminal and run:
py -0pUse one of these commands (replace version if needed).
py -3.13 -m venv .venvpy -3.13 -m venv .venvIf .venv already exists and you want a clean reset:
py -3.13 -m venv .venv --clear.\.venv\Scripts\Activate.ps1If script execution is blocked:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1.venv\Scripts\activate.batsource .venv/Scripts/activateImportant: in Bash, use / slashes, not \.
From project root:
python -m pip install --upgrade pip
python -m pip install -r requirements.txtpython -c "import mcp, psutil; print('deps_ok')"Expected output:
deps_ok
python server.pyNote: this is a stdio MCP server. If you stop it with Ctrl+C, you may see cancellation traces; that is normal for manual termination.
- Keep this file present: .vscode/mcp.json
- Reload VS Code:
- Command Palette ->
Developer: Reload Window
- Command Palette ->
- Open Copilot Chat and ask:
Use laptop-hardware MCP server and call get_system_overviewUse laptop-hardware MCP server and call get_memory_infoUse laptop-hardware MCP server and call get_disk_info with path C:\\
Cause: old Python interpreter.
Fix:
py -0p
py -3.13 -m venv .venv --clearThen reactivate and reinstall dependencies.
Cause: command ended at pip install -r without a filename.
Fix:
python -m pip install -r requirements.txtCause: using Windows backslashes.
Fix:
source .venv/Scripts/activate- Confirm .vscode/mcp.json exists.
- Confirm dependencies are installed in
.venv. - Reload VS Code window.
- server.py: MCP tools implementation
- requirements.txt: Python dependencies
- .vscode/mcp.json: VS Code MCP server registration
- README.md: setup and usage guide