Skip to main content
Glama
Windows Control Center MCP Server

Windows Control Center MCP Server

πŸͺŸ Windows Control Center MCP Server

Python Version License: MIT Platform: Windows Protocol: Model Context Protocol Built with FastMCP Tests: 100 Passing

A local Model Context Protocol (MCP) server that connects AI assistants (Google Antigravity, Claude Desktop, Cursor, Cline, Roo Code) to your local Windows environment via standard input/output (stdio).

Built with FastMCP, it runs locally as a child process without opening network ports, providing tools for command execution, filesystem operations, process inspection, system telemetry, and desktop interactions.


⚑ What Does This Project Do?

Windows Control Center provides tools for interacting with Windows systems:

  • Command & Script Execution: Run PowerShell, CMD, and Python scripts with execution timeouts, memory commit limits, and process count quotas via Win32 Job Objects.

  • Filesystem Management: Inspect, read (with pagination), write, search, move, and delete files and directories, with path validation on system directories.

  • Process Inspection & Management: List active processes with CPU and RAM metrics, and terminate processes by PID with protection for core system processes (csrss.exe, lsass.exe, services.exe, etc.).

  • Hardware & System Telemetry: Retrieve system status (CPU usage, RAM allocation, disk partition usage, battery health, uptime, and active network interfaces).

  • Desktop & GUI Automation: Launch applications directly without shell string concatenation, read and write system clipboard text, trigger Windows toast notifications, and capture multi-monitor screenshots.

  • Local Stdio IPC: Spawned on demand as a child process by your AI client (Antigravity, Claude, Cursor, etc.), communicating via standard I/O pipes and terminating when the client session ends.


Related MCP server: rvn

πŸ“ Project Structure

windows-mcp/
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       β”œβ”€β”€ test.yml                # CI test matrix across Windows 10/11 & Python 3.10-3.12
β”‚       └── publish.yml             # Manual workflow: build wheel & publish to PyPI
β”œβ”€β”€ src/
β”‚   └── windows-control-center-mcp/ # Core server package
β”‚       β”œβ”€β”€ server.py               # FastMCP stdio server entrypoint & schemas
β”‚       β”œβ”€β”€ security.py             # Path validation, script scanning & command validation
β”‚       β”œβ”€β”€ sandbox.py              # Win32 Job Object process limits & resource quotas
β”‚       └── tools/                  # Tool implementations
β”‚           β”œβ”€β”€ command_tools.py    # PowerShell, CMD, Python & process execution
β”‚           β”œβ”€β”€ desktop_tools.py    # App launcher, clipboard, notifications & screenshots
β”‚           β”œβ”€β”€ filesystem_tools.py # Paginated file read, write, search, move & delete
β”‚           └── system_tools.py     # Hardware telemetry, network status & environment
β”œβ”€β”€ tests/                          # Automated test suite (100 unit & integration tests)
β”‚   β”œβ”€β”€ test_command_tools.py
β”‚   β”œβ”€β”€ test_desktop_tools.py
β”‚   β”œβ”€β”€ test_filesystem_tools.py
β”‚   β”œβ”€β”€ test_sandbox.py
β”‚   β”œβ”€β”€ test_security.py
β”‚   β”œβ”€β”€ test_server.py
β”‚   └── test_system_tools.py
β”œβ”€β”€ pyproject.toml                  # PEP 621 package manifest, scripts & pytest options
β”œβ”€β”€ requirements.txt                # Pinned runtime dependencies
β”œβ”€β”€ CONTRIBUTING.md                 # Contribution guidelines
β”œβ”€β”€ DOCUMENTATION.md                # Technical architecture & subsystem documentation
β”œβ”€β”€ LICENSE                         # MIT License
└── README.md                       # Project overview and client setup

πŸš€ Installation & Client Setup (Windows)

Prerequisites

Install uv (the fast Python package manager) on Windows via PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

(Or via winget: winget install astral-sh.uv)


Client Configuration Files

Add the server to your preferred AI client configuration using uvx:

1. Google Antigravity / AGY CLI

File path: %USERPROFILE%\.gemini\config\mcp_config.json

{
  "mcpServers": {
    "windows-control": {
      "command": "uvx",
      "args": [
        "windows-control-center-mcp",
        "--transport",
        "stdio"
      ]
    }
  }
}

2. Claude Desktop

File path: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "windows-control": {
      "command": "uvx",
      "args": [
        "windows-control-center-mcp",
        "--transport",
        "stdio"
      ]
    }
  }
}

3. Cursor

File path: In Cursor Settings > Features > MCP, or in .cursor/mcp.json:

{
  "mcpServers": {
    "windows-control": {
      "command": "uvx",
      "args": [
        "windows-control-center-mcp",
        "--transport",
        "stdio"
      ]
    }
  }
}

4. Cline / Roo Code (VS Code Extension)

File path: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json

{
  "mcpServers": {
    "windows-control": {
      "command": "uvx",
      "args": [
        "windows-control-center-mcp",
        "--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"
      ]
    }
  }
}

🧰 Available Tools (22 Tools)

1. Command Execution & Process Management

Tool

Description

Safety Hints

execute_powershell

Execute PowerShell commands inside Win32 Job Object sandbox.

destructive: true

execute_cmd

Execute Command Prompt (CMD.EXE) commands in Win32 Job Object sandbox.

destructive: true

execute_python

Run Python code with AST validation & Win32 Job Object limits.

destructive: true

execute_elevated_command

Trigger UAC prompt (RunAs) for administrative commands (when enabled).

destructive: true

list_processes

Inspect running processes with PID, CPU %, and memory usage.

read_only: true

kill_process

Terminate a process by PID (blocks attempts on core system processes).

destructive: true

2. Filesystem Operations

Tool

Description

Safety Hints

read_file

Read file contents with line offset and limit pagination.

read_only: true

write_file

Create or overwrite files (restricted on protected system directories).

destructive: false

list_directory

Paginated listing of directories with file size and timestamps.

read_only: true

search_files

Search for files by pattern, extension, and optional recursion depth.

read_only: true

get_file_info

Get file metadata, size, timestamps, and attributes.

read_only: true

delete_file_or_dir

Delete a file or directory (restricted on drive roots and system directories).

destructive: true

copy_or_move

Copy or move files/folders with destination overwrite checks.

destructive: false

3. System Telemetry & Network

Tool

Description

Safety Hints

get_system_info

OS version, CPU usage, RAM allocations, disk space, and battery status.

read_only: true

get_network_info

Active network adapters, IP addresses, MACs, and gateway status.

read_only: true

get_environment

Read environment variables (redacts sensitive tokens matching key/secret patterns).

read_only: true

get_security_status

Current server policy, admin status, and audit log path.

read_only: true

4. Desktop Automation

Tool

Description

Safety Hints

launch_app

Launch desktop applications directly without shell string concatenation.

destructive: false

get_clipboard

Read text currently on the Windows system clipboard.

read_only: true

set_clipboard

Place text onto the Windows system clipboard.

destructive: false

take_screenshot

Capture multi-monitor screenshot and save to a local PNG.

destructive: false

show_notification

Display a native Windows toast notification popup.

destructive: false

MCP Resources & Prompts

  • Resource system://specs: Live JSON stream of CPU, memory, OS, and disk status.

  • Resource system://network: Live JSON stream of active network interfaces.

  • Prompt system_health_check: Diagnostic prompt template to evaluate system health.


πŸ§ͺ Testing

Run the automated test suite using uv:

uv run pytest -v

The test suite contains 100 automated unit and integration tests verifying tool registrations, security policies, AST inspection, sandbox isolation, and stdio cleanliness across both Windows 10 and Windows 11.


⚠️ Security Boundaries & Known Limitations

Windows Control Center uses software guardrails (regex filtering, path normalization, and AST checks) alongside Win32 Job Object resource controls. Users should understand the following design boundaries:

  • Not an OS Container or Hypervisor: Subprocesses execute directly on the host under your Windows user account, not inside a virtual machine, AppContainer, or isolated filesystem sandbox.

  • User-Space File Access: Guardrails protect Windows system paths (C:\Windows, System32, Program Files, etc.). Any files, repositories, or documents that your logged-in user account has rights to read, modify, or delete remain accessible to tools if commanded.

  • No Network Egress Filtering: Win32 Job Objects do not provide network isolation. Executed commands and scripts can establish outbound network connections unless restricted by external firewalls.

  • Static Analysis Limitations: Pattern checks analyze static command text. Dynamic string concatenation, runtime variable interpolation, .NET reflection, or COM objects in PowerShell can bypass static regex inspection.

  • Client Approvals Recommended: When configuring your AI client, consider using confirmation prompts rather than broad autoApprove for mutating tools (execute_powershell, execute_cmd, execute_python, delete_file_or_dir).


πŸ“„ License & Contributing

  • License: Released under the MIT License.

  • Contributing: Please review CONTRIBUTING.md for code conventions and testing requirements.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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