Skip to main content
Glama
Windows Management MCP Server

Windows Management MCP Server

🪟 Windows Management MCP Server

Let your AI assistant inspect, diagnose and manage your Windows PC through the Model Context Protocol: 97 tools, local, over stdio.

English Español

CI License MIT Python Windows MCP SDK Tools

Telegram YouTube Website GitHub


Windows Management MCP Server is a Python server for the Model Context Protocol that exposes 97 tools for local Windows diagnostics, task management, cleanup, hardware inspection, security checks and administration. It works with Claude Desktop, Cursor, VS Code and any other MCP-compatible client.

IMPORTANT

This server runs with the privileges of the account that starts it. Some tools can delete files, edit the Registry, manage services, install updates or run PowerShell.Start with the read-only and dry-run tools and only allow destructive actions after reviewing the target paths and commands.

NOTE

Credits. This project was created by Ahmed Laminou Amadou (@AhmedLaminou), the original author and maintainer: the architecture and the original 96 tools are his work. This version updates it to keep it running with the new MCP Python SDK and adds one small tool (see What's new).

Jump to: What's new · Install · Connect a client · What it can do · Safety · Troubleshooting · Credits

🆕 What's new in this version

The official MCP Python SDK v2.0.0 (July 28, 2026) renamed FastMCP to MCPServer and moved the module from mcp.server.fastmcp to mcp.server.mcpserver, with no deprecation shim. Since pip install mcp now installs 2.x, a fresh install of the old code crashed on start-up with ModuleNotFoundError.

Change

Detail

✅ Works with mcp 2.x

Uses MCPServer.

✅ Still works with mcp 1.x

Falls back to FastMCP automatically.

🧹 Unused dependency removed

The standalone fastmcp package was listed but never imported.

🔒 Safer version range

mcp>=1.12,<3, so the next major release can't break installs silently.

🎁 New tool

get_server_status reports server and SDK versions, loaded tools and whether the server is running as Administrator.

🧪 Tests + CI

Import, tool-count and list_tools() checks on Python 3.10/3.13 against both SDK generations.

📝 Docs

New English and Spanish READMEs.

💡 Not the same thing: the standalone fastmcp framework was not renamed. Only the class built into the official mcp SDK was.

Full details in the CHANGELOG.

Related MCP server: PC Controller MCP Server

🧩 How it works

flowchart LR
    A["🤖 AI client<br/>Claude Desktop · Cursor · VS Code"] <-->|"MCP over stdio"| B["🪟 windows-mcp-server<br/>(Python)"]
    B <--> C["⚙️ PowerShell · psutil · Windows APIs"]
  1. Your MCP client launches windows-mcp-server as a local process.

  2. The assistant sees the 97 tools and decides which one to call.

  3. The server runs it on your PC and returns the result. Nothing is sent to third-party servers.

✅ What you need

Requirement

Notes

Windows 10 / 11 / Server with PowerShell

Check with $PSVersionTable.

Python 3.10 or newer

python --version. Get it from python.org and tick “Add Python to PATH”.

An MCP client

Claude Desktop, Cursor, VS Code, etc.

Some tools need Administrator privileges or optional Windows features. NVIDIA telemetry needs nvidia-smi on your PATH.

🚀 Installation

From PyPI:

pip install windows-management-mcp-server

From source (recommended if you want to modify it):

git clone https://github.com/AhmedLaminou/windows-mcp-server.git
cd windows-mcp-server
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -e .

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

🔌 Connect your MCP client

Add this to your client's MCP configuration (for Claude Desktop: claude_desktop_config.json):

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

If the command isn't on your PATH, point to the virtual environment:

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

You can also run it by hand (windows-mcp-server or python -m windows_mcp_server.server), but it speaks stdio, so it's meant to be launched by a client.

VS Code: the vscode-extension/ folder contains a small extension that launches the server (repo-local venv first, then the global command). Run npm install && npm run compile, open the folder in VS Code and press F5.

🛠️ What it can do

Area

Examples

📊 Task manager

CPU, GPU, memory, disk, top processes, process trees, suspend / resume / kill.

🧹 Storage & cleanup

Largest folders and files, duplicates, old files, media, Recycle Bin deletion, temp cleanup.

🖥️ Hardware & drivers

GPU info, nvidia-smi, displays, installed drivers, problem devices, driver update candidates.

🛡️ Security

Defender status/scans, firewall rules, BitLocker, Secure Boot, UAC, Windows Update.

⚙️ Administration

Services, startup apps, scheduled tasks, event logs, crash diagnostics, restore points.

🌐 Network

Interfaces, sockets, listening ports, firewall correlation, ping latency.

👩‍💻 Developer env

Python/Node discovery, environment variables, common dev ports.

🪟 Shell helpers

Explorer open/select, screenshots, clipboard, visible windows.

🔌 Peripherals & virtualization

Printers, audio, Bluetooth, WSL, Hyper-V, optional Windows features.

The complete list is in docs/TOOLS.md.

🎬 Original demo: https://youtu.be/1GNk_GYYkww

🔐 Safety model

Level

Examples

Advice

🟢 Read-only

disk_cleanup_report, get_security_status, get_windows_update_status, list_scheduled_tasks, get_process_details

Use these first.

🟡 Safer mutation

safe_delete_to_recycle_bin, safe_delete_many_to_recycle_bin, safe_delete_by_pattern (dry_run=true)

Reversible or previewable.

🔴 Sharp tools

execute_powershell, Registry writes/deletes, permanent deletion, service changes, update installation, process termination, restore point creation

Review every call. Don't run as Administrator unless needed.

Treat the MCP client as part of the trusted computing base. See docs/SECURITY_MODEL.md before exposing this server to an assistant you don't fully trust.

🩺 Something not working?

Symptom

Fix

ModuleNotFoundError: No module named 'mcp.server.fastmcp'

You're on an old copy of this project with mcp 2.x. Update to this version, or pin pip install "mcp<2".

windows-mcp-server is not recognized

Activate the virtual environment, or use the python.exe -m windows_mcp_server.server form shown above.

python is not recognized

Reinstall Python ticking Add Python to PATH, or try py.

A tool says access denied

It needs an elevated terminal / Administrator. Only elevate if you trust the client.

nvidia-smi tools return nothing

Install the NVIDIA driver tools and make sure nvidia-smi is on PATH.

The client doesn't show the tools

Restart the client completely and check its MCP logs.

🧑‍💻 Development

pip install -e . pytest
python -m pytest -q tests                   # imports + 97 tools registered
python -m compileall windows_mcp_server     # compile check

The tests also run on Linux/macOS (no tool is executed). See docs/DEVELOPMENT.md to add a tool and CONTRIBUTING.md for the pull-request checklist.

windows_mcp_server/        Python MCP server package
windows_mcp_server/tools/  Tool modules grouped by Windows domain
tests/                     Registration and import tests
vscode-extension/          Optional VS Code extension wrapper
docs/                      Tool catalog, security model, publishing guide
server.json                MCP Registry metadata

🤝 Contributing

Issues and pull requests are welcome. Please read CONTRIBUTING.md and the Code of Conduct, and report security problems privately following SECURITY.md (never in a public issue).

Telegram Channel YouTube Creator on Telegram Email

🙏 Credits & License

If this project is useful to you, leave a ⭐ on the original repository and join the Telegram channel.

Made with 💙 by Rufus · @AstraxOf · astrabots.pro

MIT License · Copyright © 2026 Ahmed Laminou Amadou

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that enables AI assistants to interact with and manage Windows systems, providing capabilities for file system operations, process management, system information retrieval, registry operations, service management, network diagnostics, and performance monitoring.
    7
    14 npm
    6
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to perform comprehensive Windows system health diagnostics, security checks, developer workflows, and maintenance tasks via 85 tools with actionable recommendations, over MCP and OpenAI-compatible HTTP.
    MIT