Windows Control Center MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
πͺ Windows Control Center MCP Server
A secure, high-performance, strictly local Model Context Protocol (MCP) server built with FastMCP that connects AI assistants (Antigravity, AGY CLI, Claude Desktop, Cursor, Cline, Roo Code) to your local Windows environment.
It provides authorized, guardrail-protected control over:
PowerShell & CMD Execution (with optional Windows UAC elevation)
Virtual Environment Python Runner (with AST-based safety analysis)
Process Inspection & Management (CPU/RAM metrics, safe termination)
Filesystem Operations (read with pagination, write, search, move, safe delete)
Hardware & System Health Monitoring (CPU, RAM, Disks, Battery, Uptime, Network)
Desktop & GUI Automation (Application launcher, Clipboard, Toast notifications, Screenshots)
π‘οΈ Security Architecture & Guardrails
Connecting an LLM to native OS execution requires defense-in-depth. Windows Control Center MCP implements a multi-layer security engine (security.py) that actively validates all commands, code, and paths prior to execution.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Client / Agent β
β (AGY CLI / Claude Desktop / Cursor / Cline / Roo) β
βββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β (JSON-RPC via HTTP / Stdio)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Windows Control Center MCP Server β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Security Guardrail Engine β β
β β β β
β β [Command Guard] [AST Code Guard] [Path Safety Guard] β β
β β β’ RCE & Download Cradles β’ Shell string inspection β’ Drive root protection β β
β β β’ Ransomware / VSSAdmin β’ Path deletion inspection β’ Critical OS dirs β β
β β β’ Defender / Firewall Off β’ Obfuscated exec/eval block β’ Junction resolution β β
β β β’ Base64 De-obfuscation β’ Network socket guards β’ User AppData guards β β
β ββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Tool Catalog β β
β β β’ PowerShell & CMD β’ Filesystem Tools β’ System Monitoring β β
β β β’ Python Runner β’ Desktop Automation β’ Windows UAC Elevation β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ1. Remote Code Execution (RCE) & Download Cradles
Intercepts and blocks download-and-execute pipelines (
curl/wget/iwr/irm | iex/powershell/cmd/sh).Blocks remote script download methods (
(New-Object Net.WebClient).DownloadString(...)).Intercepts Living-off-the-Land (LOLBIN) download vectors (
certutil -urlcache,bitsadmin /transfer,mshta http://...,regsvr32 /i:http,msiexec /i http://...).Blocks reverse shell listeners (
nc -e,ncat,netcat,powercat,bash -i >& /dev/tcp).
2. Base64 De-obfuscation & Deep Inspection
Detects PowerShell
-EncodedCommand/-encpayloads.Automatically decodes base64 UTF-16LE payloads and recursively validates the inner command string against security policies.
3. Python AST Code Inspection
The
execute_pythonrunner parses Python code into an Abstract Syntax Tree (AST).Analyzes function calls:
Validates command strings passed to
os.system(),subprocess.run(),subprocess.Popen().Validates paths passed to
shutil.rmtree(),os.remove(),os.unlink(),os.rmdir().Validates file write targets in
open(..., 'w'/'a').Blocks dynamic obfuscation constructs (
exec(base64.b64decode(...))).
4. Disk & Partition Destruction Guards
Prohibits destructive commands:
format <drive>:,Format-Volume,Clear-Disk,Initialize-Disk,Remove-Partition, anddiskpart.Prohibits ransomware patterns:
vssadmin delete shadows,wmic shadowcopy delete, WMI/CIMWin32_ShadowCopydeletion,wbadmin delete,fsutil usn deletejournal, andbcdedit /delete.
5. Critical Filesystem Protection
Destructive operations (
delete,overwrite,move) are blocked against:All drive roots (
C:\,D:\,E:\, etc.)Critical system directories:
C:\Windows,C:\Windows\System32,C:\Windows\SysWOW64Program files:
C:\Program Files,C:\Program Files (x86),C:\ProgramDataSystem recovery and boot state:
C:\Boot,C:\Recovery,System Volume Information,$Recycle.BinUser system AppData:
%LOCALAPPDATA%\Microsoft\Windows
Canonical Path Resolution: Evaluates both
os.path.abspathandos.path.realpathto prevent symlink and NTFS directory junction bypasses.
6. Process Protection (BSOD Prevention)
Critical Windows kernel processes (
csrss.exe,lsass.exe,services.exe,smss.exe,wininit.exe,winlogon.exe,dwm.exe) are protected from termination.Protects the MCP server process (
os.getpid()) and its parent from accidental self-termination.
7. Network Defenses & CORS Protection
Strict Loopback Binding: Binds exclusively to
127.0.0.1by default. Refuses to bind to external LAN interfaces without explicit--allow-remote-access.CORS & DNS Rebinding Defense: Rejects cross-origin web requests from external domains. Only allows localhost, 127.0.0.1, Electron (
null), and local editor webviews (vscode-*,cursor-*).
8. Controlled Elevation via Windows UAC
Commands requesting administrative privileges trigger standard Windows User Account Control (UAC) prompts (
Start-Process -Verb RunAs), ensuring physical user awareness.Elevation policy is configurable via
MCP_ALLOW_ELEVATION.
9. Kernel-Enforced Windows Job Object Sandboxing (Mandatory & Non-Bypassable)
Beyond static command/code analysis, non-elevated command and code execution (
execute_powershell,execute_cmd,execute_python) runs inside an isolated Win32 Job Object (sandbox.py) as the mandatory and only execution engine.Zero AI Bypass: Sandboxing cannot be disabled, opted out of, or bypassed by AI tool arguments. If the kernel sandbox cannot be initialized, execution fails closed.
Process Memory Limits: Enforces hard commit caps (default: 512 MB per process, 1024 MB cumulative job memory) to prevent memory-exhaustion DoS.
Fork-Bomb & Quota Mitigation: Restricts the maximum number of concurrent active processes (default: 16 processes) via
JOB_OBJECT_LIMIT_ACTIVE_PROCESS. Spawning runaway child processes triggers kernel quota limits (WinError 1816).Atomic Hierarchy Termination: Timeouts and terminations execute
TerminateJobObject, instantly killing every child and descendant process in the kernel with zero possibility of orphaned background processes or lingering reverse shells surviving.UI & System Isolation: Imposes Win32 UI restrictions (
JOB_OBJECT_UILIMIT_HANDLES,JOB_OBJECT_UILIMIT_EXITWINDOWS,JOB_OBJECT_UILIMIT_DESKTOP,JOB_OBJECT_UILIMIT_GLOBALATOMS) preventing child processes from injecting input into external windows, manipulating global atoms, switching desktops, or initiating system shutdown.Resource Observability: Reports peak process memory, total spawned processes, and CPU user/kernel seconds directly in the execution results.
Related MCP server: rvn
π§° Available Tools (22 Tools)
Category 1: Command & Process Execution
Tool | Description |
| Execute PowerShell commands/scripts with guardrail enforcement. Supports |
| Execute Command Prompt ( |
| Execute Python snippets inside the virtual environment with AST inspection. |
| Execute PowerShell with Administrator privileges via Windows UAC prompt. |
| List running processes with PID, CPU %, memory usage, and user details (sort by |
| Terminate processes by PID or name (guards critical system and server processes). |
| Inspect active guardrails, admin privilege status, and configuration. |
Category 2: File System Operations
Tool | Description |
| Read text file contents with line-range pagination ( |
| Write or append text content to a file (creates parent directories; guard protected). |
| List folder items with file sizes, types, and modification timestamps. |
| Wildcard pattern file search across directory trees ( |
| Detailed file metadata (size, created, modified, accessed, file type). |
| Safely delete files or non-empty directories (system path guard protected). |
| Copy or move files/directories with destination and source safety validation. |
Category 3: System & Hardware Monitoring
Tool | Description |
| Comprehensive system health: OS specs, CPU cores/usage, RAM, all disk partitions, and battery. |
| Active network adapters, local IPv4 addresses, and active internet connectivity check. |
| Retrieve system environment variables (masks sensitive API keys/passwords in |
Category 4: Desktop & GUI Automation
Tool | Description |
| Launch applications ( |
| Read text currently stored in the Windows clipboard. |
| Copy text to the Windows clipboard. |
| Capture primary display to PNG (PIL ImageGrab with PowerShell Graphics fallback). |
| Display desktop toast or balloon notifications (XML-escaped and injection safe). |
Resources & Prompts
Resource
system://specs: Read-only JSON stream of CPU, memory, OS, and disk status.Resource
system://network: Read-only JSON stream of active network interfaces and connectivity.Prompt
system_health_check: Guided diagnostic prompt template to assess system load, disk space, and processes.
π Quick Start
Prerequisites
Windows 10 / 11 or Windows Server 2019+
Python 3.10+ (64-bit recommended)
1. Installation
# Clone the repository
git clone https://github.com/subhasishsaha/windows-mcp.git
cd windows-mcp
# Create virtual environment
python -m venv .venv
.\.venv\Scripts\Activate.ps1
# Install dependencies
pip install -r requirements.txt2. Running the Server
Option A: Streamable HTTP Mode (Recommended for AGY CLI / Web clients)
# Double-click start_local_server.bat, or run:
python server.py --transport http --host 127.0.0.1 --port 8000Server endpoint: http://127.0.0.1:8000/mcp
Option B: Stdio Transport Mode (For Claude Desktop, Cursor, Cline, Roo Code)
python server.py --transport stdioπ Client Configurations
1. AGY CLI / Antigravity
Register the local server:
agy mcp add windows-control --url http://127.0.0.1:8000/mcpVerify status:
agy mcp list2. Claude Desktop (claude_desktop_config.json)
Path: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"windows-control": {
"command": "python",
"args": [
"C:\\path\\to\\windows-mcp\\server.py",
"--transport",
"stdio"
]
}
}
}3. Cline / Roo Code (VS Code Extension)
In Cline / Roo Code MCP Settings:
{
"mcpServers": {
"windows-control": {
"command": "python",
"args": [
"C:\\path\\to\\windows-mcp\\server.py",
"--transport",
"stdio"
],
"env": {
"MCP_STRICT_MODE": "true",
"MCP_ALLOW_ELEVATION": "true"
},
"disabled": false,
"autoApprove": [
"get_system_info",
"get_network_info",
"list_processes",
"get_file_info",
"read_file",
"list_directory",
"search_files"
]
}
}
}βοΈ Configuration & Environment Variables
Variable | Default | Description |
|
| When active, enforces strict validation and masks sensitive tokens in environment variables. |
|
| Allows tools to request administrative elevation via Windows UAC. Set to |
|
| Path for the security audit log file recording all allowed/blocked events. |
| (none) | Optional Bearer token for HTTP authentication. If set, incoming requests must include matching |
π§ͺ Testing
The repository includes a comprehensive test suite of 84 unit and integration tests covering security guardrails, command tools, filesystem protection, system monitoring, and server endpoints.
# Run the complete test suite
pytest -vπ License
This project is licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Windows desktop environment, including browser control, clipboard, file management, GitHub, Roblox Studio, OCR, and more, with a privileged approval system for risky actions.-
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to securely control and interact with a local Windows machine through 218 configurable tools for files, Git, processes, Windows UI, browser automation, WSL, Office, recovery, skills, and child MCP servers.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely perform file operations, run terminal sessions, manage processes, search content, and inspect Git repositories on a local Windows machine under configurable permission and audit controls.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control and interact with the Windows operating system, including file navigation, application control, UI automation, and QA testing.MIT