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 更新。管理系统:服务、启动项、计划任务、事件日志、崩溃诊断、还原点。网络与命令行辅助:网卡、端口、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 分