Windows Management MCP Server

Windows Management MCP Server

A Python-based MCP server for local Windows diagnostics, task management, cleanup, hardware inspection, security checks, and administrative workflows.

Category
访问服务器

README

Windows Management MCP Server

<!-- mcp-name: io.github.ahmedlaminou/windows-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.

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:

pip install windows-management-mcp-server

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

python -m venv venv
.\venv\Scripts\Activate.ps1
pip 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:

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

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

{
  "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

windows-mcp-server

Or:

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.

cd vscode-extension
npm install
npm 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:

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

Check the registered tool count:

.\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:

cd vscode-extension
npm run compile

Repository Structure

windows_mcp_server/        Python MCP server package
windows_mcp_server/tools/  Tool modules grouped by Windows domain
vscode-extension/          Optional VS Code extension wrapper
docs/                      Tool catalog, security model, publishing guide
server.json                MCP Registry metadata
pyproject.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.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选