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.
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/your-username/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. |
๐งช Testing
The repository includes a comprehensive test suite of 50 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
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.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
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 gradedqualityBmaintenanceEnables 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.1 npmMIT
- 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