Windows Management

io.github.AhmedLaminou由 GitHub 帳號 AhmedLaminou 發布v0.3.1更新於 Oct 24, 2026

Local Windows management, diagnostics, security, cleanup, and optimization MCP server.

概覽

AI 產生的概覽

僅限本機 Windows 的 MCP 伺服器,讓助理檢查與管理電腦:程序、儲存、硬體、安全性、服務、網路與命令列。

可以做什麼
監控與控制程序:CPU、GPU、記憶體和磁碟使用量,程序樹,暫停、恢復與終止程序。清理儲存空間:找出大型檔案、重複檔案、舊檔案和媒體檔案,刪除至資源回收筒,清理暫存檔。檢查硬體與驅動程式:GPU 詳細資料、顯示設定、已安裝驅動程式和有問題的裝置。檢查安全性與更新:Defender 狀態與掃描、防火牆規則、BitLocker、安全開機、UAC、Windows Update。管理系統:服務、啟動項目、排程工作、事件記錄、當機診斷、還原點。網路與命令列輔助:網路介面、連接埠、ping、檔案總管、螢幕擷取、剪貼簿,以及執行 PowerShell。
適用情境
適合助理在本機診斷或維護 Windows 10/11 或 Windows Server 電腦,例如查看效能、清理磁碟空間、檢查安全狀態或排查驅動程式與服務問題。不適用於非 Windows 系統或遠端主機。
執行需求
以本機 stdio 程序執行,需要 Windows 10/11 或 Windows Server 且可使用 PowerShell。需要 Python 3.10 或更新版本,以及來自 PyPI 的 windows-management-mcp-server 套件,透過 windows-mcp-server 指令啟動。部分工具需要系統管理員權限或選用 Windows 功能;NVIDIA 遙測需要 PATH 中有 nvidia-smi。
安裝前請注意
以啟動它的帳戶權限執行。許多工具會改變系統狀態:可永久刪除檔案、修改登錄檔、變更服務、安裝更新、終止程序、建立還原點並執行任意 PowerShell。請先使用唯讀與試執行工具,在啟用破壞性操作前核對目標路徑和指令。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Windows Management,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Windows Management MCP Server

Windows Management MCP Server is a Python-based Model Context Protocol server for local Windows diagnostics, task management, cleanup, hardware inspection, security checks, and administrative workflows.

It exposes 96 tools over stdio and is designed for local assistants such as Claude Desktop, Cursor, VS Code extension hosts, and other MCP-compatible clients.

Important: This server runs with the privileges of the user account that starts it. Several tools can change system state, delete files, edit the Registry, manage services, install updates, or execute PowerShell. Use the read-only and dry-run tools first, and only enable destructive actions after reviewing the target paths and commands.

Demo

[Windows Management MCP Server demo]

Watch the demo: https://youtu.be/1GNk_GYYkww

What It Can Do

  • Task manager: CPU, GPU, memory, disk usage, top processes, process trees, process details, suspend/resume/kill.
  • Storage cleanup: disk usage, largest folders/files, duplicate detection, old files, media discovery, Recycle Bin deletion, temp cleanup.
  • Hardware and drivers: GPU details, NVIDIA nvidia-smi probes, display configuration, installed drivers, problem devices, driver update candidates.
  • Windows security: Defender status/scans, firewall rules, BitLocker, Secure Boot, UAC, Windows Update status.
  • System administration: services, startup apps, scheduled tasks, event logs, crash diagnostics, restore points.
  • Network diagnostics: interfaces, active sockets, listening ports, firewall correlation, ping latency.
  • Developer environment: Python/Node discovery, environment variables, common dev ports.
  • Shell helpers: Explorer open/select, screenshots, clipboard, visible windows.
  • Peripherals and virtualization: printers, print queues, audio, Bluetooth, WSL, Hyper-V, optional Windows features.

For the complete tool catalog, see docs/TOOLS.md.

Requirements

  • Windows 10/11 or Windows Server with PowerShell available.
  • Python 3.10 or newer.
  • Some tools require Administrator privileges or Windows features/modules that may not be installed on every machine.
  • Optional vendor data, such as NVIDIA GPU telemetry, requires vendor tools like nvidia-smi on PATH.

Installation

From PyPI:

powershell
pip install windows-management-mcp-server

Create a virtual environment and install the package in editable mode:

powershell
python -m venv venv.\venv\Scripts\Activate.ps1pip install -e .

Both install paths register the windows-mcp-server command in the active environment.

MCP Client Configuration

For clients that can launch a stdio MCP server, use:

json
{  "mcpServers": {    "windows-management": {      "command": "windows-mcp-server",      "args": []    }  }}

If the command is not on PATH, point directly at the local virtual environment:

json
{  "mcpServers": {    "windows-management": {      "command": "C:\\path\\to\\WindowsMCPServer\\venv\\Scripts\\python.exe",      "args": ["-m", "windows_mcp_server.server"],      "env": {        "PYTHONPATH": "C:\\path\\to\\WindowsMCPServer"      }    }  }}

Running Locally

powershell
windows-mcp-server

Or:

powershell
python -m windows_mcp_server.server

The server uses stdio transport and is normally launched by an MCP client rather than run interactively.

VS Code Extension

The vscode-extension/ folder contains a small VS Code extension that launches this MCP server from the repo-local virtual environment first, then falls back to a global windows-mcp-server.

powershell
cd vscode-extensionnpm installnpm run compile

Open vscode-extension/ in VS Code and press F5 to start an Extension Development Host.

Safety Model

Tools are intentionally mixed across read-only, safer mutation, and sharp mutation categories.

  • Prefer report tools first: disk_cleanup_report, get_security_status, get_windows_update_status, list_scheduled_tasks, get_process_details.
  • Prefer safe deletion: safe_delete_to_recycle_bin, safe_delete_many_to_recycle_bin, safe_delete_by_pattern with dry_run=true.
  • Treat these as sharp tools: execute_powershell, Registry writes/deletes, permanent file deletion, service changes, update installation, process termination, restore point creation.

See docs/SECURITY_MODEL.md before exposing this server to an assistant you do not fully trust.

Development

Compile-check the Python package:

powershell
.\venv\Scripts\python.exe -m compileall windows_mcp_server

Check the registered tool count:

powershell
.\venv\Scripts\python.exe -c "from windows_mcp_server.registry import register_all_tools, registered_tools; Dummy=type('Dummy',(),{'tool':lambda self: (lambda f:f)}); register_all_tools(Dummy()); print(len(registered_tools))"

Compile the VS Code extension:

powershell
cd vscode-extensionnpm run compile

Repository Structure

text
windows_mcp_server/        Python MCP server packagewindows_mcp_server/tools/  Tool modules grouped by Windows domainvscode-extension/          Optional VS Code extension wrapperdocs/                      Tool catalog, security model, publishing guideserver.json                MCP Registry metadatapyproject.toml             Python package metadata

Publishing

This repository includes server.json for the MCP Registry and PyPI-compatible package metadata.

See docs/PUBLISHING.md for the full GitHub, PyPI, and MCP Registry release flow.

License

MIT. See LICENSE.

來源:README.md,提交 74b4490

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分