Skip to main content
Glama
Windows Operations MCP

Windows Operations MCP

Windows Operations MCP

Python FastMCP Ruff License GitHub

MCP server for native Windows system administration — services, registry, accounts, event logs, networking, firewall, scheduled tasks, environment variables, AppX management, NTFS permissions, process monitoring, archive management, and JSON data operations.

Built on FastMCP 3.2+ with dual-transport (stdio + HTTP), a React dashboard, and an optional Tauri/NSIS desktop installer.


Quick Start

git clone https://github.com/sandraschi/windows-operations-mcp
cd windows-operations-mcp
just install
just mcp

For the web dashboard: just web (backend on :10748, frontend on :10749).

See INSTALL.md for manual setup or Claude Desktop integration.


Related MCP server: Windows Automation MCP Server

Install the MCPB bundle

Claude Desktop (Windows) one-liner — Claude-only:

irm https://github.com/sandraschi/windows-operations-mcp/releases/latest/download/install.ps1 | iex

Every other MCP client (Cursor, Windsurf, OpenCode, Copilot, Antigravity) via uvx:

{
  "mcpServers": {
    "windows-operations-mcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/sandraschi/windows-operations-mcp", "windows-operations-mcp"]
    }
  }
}

Tools

Tool

What it does

windows_registry

Read, write, delete, export registry keys with auto-backup

windows_accounts

List/add/remove users and groups, manage group membership

windows_services

List, start, stop, restart Windows services

windows_event_logs

Query, clear, export event logs across all channels

windows_network

Firewall rule management (netsh) and adapter diagnostics

windows_environment

Get, set, delete persistent user/system env vars

windows_apps

List and uninstall AppX/Store packages

windows_permissions

View, grant, revoke NTFS ACLs (ICACLS) with inheritance control

windows_automation

Scheduled tasks (schtasks) and WMI/CIM queries

windows_performance

CPU, memory, disk, network metrics per-process and system-wide

json_operations

Read, write, deep-merge, validate, fuzzy-extract JSON

archive_management

Create, list, extract ZIP, TAR, and Windows CAB archives

agentic_operations

Autonomous system hardening and troubleshooting (LLM sampling)

command_execution

Execute PowerShell and CMD commands with reliable output capture

container_execution

Docker exec and file copy inside containers

All tools use the portmanteau pattern — a single tool with an operation parameter instead of many individual tools.


Documentation

Document

Contents

INSTALL.md

Installation, Claude Desktop config, troubleshooting

QUICKSTART.md

5-minute guide with examples

docs/

Full documentation index

examples/

Runnable usage examples

CHANGELOG.md

Release history

llms.txt

LLM-friendly index

llms-full.txt

Full LLM context


Stack

  • Backend: Python 3.12+, FastMCP 3.2+, FastAPI, Starlette, psutil, pywin32

  • Frontend: React 19, Vite 7, TypeScript, TailwindCSS, Framer Motion, TanStack Query

  • Desktop: Tauri 2.0, NSIS installer (embedded PyInstaller backend)

  • Ports: Backend 10748, Frontend 10749


License

MIT — Sandra Schipal, Vienna

Available Tools

59 tools
agentic_system_hardeningA

Autonomous Windows security hardening with SEP-1577 sampling.

Phases: (1) Inventory the target subsystem, (2) LLM audit for hardening recommendations, (3) Apply HIGH-priority fixes in live mode.

Return Format

{
  "success": bool,
  "target": str,
  "dry_run": bool,
  "audit_recommendations": str,
  "actions_taken": [{"action": str, "status": str}]
}

Examples

agentic_system_hardening(target="services", dry_run=True)
agentic_system_hardening(target="accounts", dry_run=False)

Notes:

  • ctx is required; returns error if called without it.

  • dry_run=False will queue up to 5 HIGH-priority actions.

Inputs: target (required), dry_run. Returns: object

autonomous_troubleshooterA
Read-only

Diagnose why a Windows operation failed using event logs, process list, and LLM sampling.

Phases: (1) Query recent System log errors, (2) Snapshot running processes, (3) LLM root-cause analysis with remediation steps.

Return Format

{
  "success": bool,
  "failure_reported": str,
  "event_log_summary": any,
  "root_cause_analysis": str
}

Examples

autonomous_troubleshooter(operation_failure="Could not start WinRM service — access denied")

Notes:

  • ctx is required for sampling.

Inputs: operation_failure (required). Returns: object

process_list_cardA

Display a rich card listing running processes, optionally filtered by name. Returns a Prefab UI card in capable MCP hosts; plain text fallback otherwise.

Inputs: name_filter, max_processes.

system_health_cardA

Display a rich system health card with CPU, memory, and disk IO stats. Returns a Prefab UI card in capable MCP hosts; plain text fallback otherwise.

Inputs: no named parameters.

winops_accounts_add_userB

Create a new local Windows user account.

Return Format

{"success": bool, "username": str}

Examples

add_user(username="jsmith", password="P@ssw0rd!")

Inputs: password (required), username (required). Returns: object

winops_accounts_group_membersA
Read-onlyIdempotent

List members of a local Windows group.

Return Format

{"success": bool, "group": str, "members": [str]}

Examples

group_members(group="Administrators")

Inputs: group (required). Returns: object

winops_accounts_list_groupsB
Read-onlyIdempotent

List local Windows groups.

Return Format

{"success": bool, "raw_output": str}

Examples

list_groups()

Inputs: no named parameters. Returns: object

winops_accounts_list_usersA
Read-onlyIdempotent

List local Windows user accounts.

Return Format

{"success": bool, "raw_output": str}

Examples

list_users()

Inputs: no named parameters. Returns: object

winops_accounts_manage_groupA

Add or remove a user from a local Windows group.

Return Format

{"success": bool, "group": str, "username": str, "action": str}

Examples

manage_group(group="Administrators", username="jsmith", action="add")
manage_group(group="Administrators", username="jsmith", action="remove")

Inputs: group (required), username (required), action. Returns: object

winops_accounts_remove_userA
DestructiveIdempotent

Delete a local Windows user account.

Return Format

{"success": bool, "username": str}

Examples

remove_user(username="jsmith")

Inputs: username (required). Returns: object

winops_accounts_set_passwordB
Idempotent

Set the password for a local Windows user account.

Return Format

{"success": bool, "username": str}

Examples

set_password(username="jsmith", password="NewP@ss!")

Inputs: password (required), username (required). Returns: object

winops_acl_getA
Read-onlyIdempotent

View the ACL (Access Control List) for a file or directory.

Return Format

{"success": bool, "path": str, "raw_acl": str}

Examples

get(path="C:\\Users\\Public")

Inputs: path (required). Returns: object

winops_acl_grantA

Grant a permission level to a user or group on a file or directory.

Return Format

{"success": bool, "path": str, "user": str, "permission": str}

Examples

grant(path="D:\\data", user="jsmith", permission="M")

Inputs: path (required), user (required), permission. Returns: object

winops_acl_inheritanceA
Idempotent

Enable or disable ACL inheritance on a file or directory.

Return Format

{"success": bool, "path": str, "inheritance_enabled": bool}

Examples

inheritance(path="D:\\secure", enable=False)

Inputs: path (required), enable. Returns: object

winops_acl_revokeA
DestructiveIdempotent

Revoke all explicit permissions for a user or group on a file or directory.

Return Format

{"success": bool, "path": str, "user": str}

Examples

revoke(path="D:\\data", user="jsmith")

Inputs: path (required), user (required). Returns: object

winops_apps_listA
Read-onlyIdempotent

List installed AppX/Windows Store packages.

Return Format

{"success": bool, "apps": [...]}

Examples

list(name_filter="Xbox")
list(all_users=True)

Inputs: all_users, name_filter. Returns: object

winops_apps_uninstallA
DestructiveIdempotent

Uninstall an AppX/Windows Store package by its PackageFullName.

Return Format

{"success": bool, "package_name": str}

Examples

uninstall(package_name="Microsoft.XboxApp_48.49.31001.0_x64__8wekyb3d8bbwe")

Notes:

  • Get PackageFullName from winops_apps/list.

  • Requires elevation for system/all-user packages.

Inputs: package_name (required), all_users. Returns: object

winops_archive_addA

Add files to an existing ZIP archive.

Return Format

{"success": bool, "path": str, "added": int}

Examples

add(path="D:\\backups\\data.zip", source_files=["D:\\new_file.txt"])

Notes:

  • Only ZIP archives are supported for add. Use create for TAR.

Inputs: path (required), source_files (required). Returns: object

winops_archive_createA

Create a new ZIP or TAR archive from a list of files/directories.

Return Format

{"success": bool, "path": str, "archive_type": str, "file_count": int}

Examples

create(path="D:\\backups\\logs.zip", source_files=["C:\\Logs\\app.log"])

Inputs: path (required), source_files (required), archive_type. Returns: object

winops_archive_expand_cabA

Expand a Windows CAB archive using expand.exe.

Return Format

{"success": bool, "path": str, "target_dir": str}

Examples

expand_cab(path="C:\\Windows\\system32\\cabinet.cab", target_dir="D:\\expanded")

Inputs: path (required), target_dir (required). Returns: object

winops_archive_extractA

Extract a ZIP or TAR archive to a directory.

Return Format

{"success": bool, "path": str, "target_dir": str}

Examples

extract(path="D:\\backups\\data.zip", target_dir="D:\\extracted")

Inputs: path (required), target_dir (required). Returns: object

winops_archive_listA
Read-onlyIdempotent

List the contents of a ZIP or TAR archive.

Return Format

{"success": bool, "path": str, "items": [str], "count": int}

Examples

list(path="D:\\backups\\data.zip")

Inputs: path (required). Returns: object

winops_auto_task_createA

Create a Windows Scheduled Task.

Return Format

{"success": bool, "task_name": str}

Examples

task_create(task_name="DailyBackup", task_path="C:\\scripts\\backup.bat", schedule="DAILY")

Inputs: task_name (required), task_path (required), schedule, start_time. Returns: object

winops_auto_task_deleteA
DestructiveIdempotent

Delete a Windows Scheduled Task.

Return Format

{"success": bool, "task_name": str}

Examples

task_delete(task_name="DailyBackup")

Inputs: task_name (required). Returns: object

winops_auto_task_listA
Read-onlyIdempotent

List all Windows Scheduled Tasks.

Return Format

{"success": bool, "raw_tasks": str}

Examples

task_list()

Inputs: no named parameters. Returns: object

winops_auto_task_runA

Trigger a Windows Scheduled Task to run immediately.

Return Format

{"success": bool, "task_name": str}

Examples

task_run(task_name="DailyBackup")

Inputs: task_name (required). Returns: object

winops_auto_wmi_queryA
Read-onlyIdempotent

Query a WMI class and return the raw output.

Return Format

{"success": bool, "wmi_class": str, "result": str}

Examples

wmi_query(wmi_class="Win32_Processor")
wmi_query(wmi_class="Win32_BIOS")

Inputs: wmi_class, wmi_namespace. Returns: object

winops_cmd_cmdA

Execute a CMD (cmd.exe) command and return stdout, stderr, exit_code, execution_time.

Return Format

{
  "success": bool,
  "message": str,
  "stdout": str,
  "stderr": str,
  "exit_code": int,
  "execution_time": float,
  "next_steps": str | [],
  "sampling_advice": str
}

Examples

cmd(command="dir /s /b *.log", working_directory="C:\Logs")
cmd(command="ipconfig /all")

Notes:

  • Uses asyncio.to_thread — never blocks the event loop.

  • ctx.sample() capped at 10s to prevent hang on unsupported clients.

  • Safety guards block Linux-isms (grep, tail, rm -rf, etc.) and em dashes.

  • stdout/stderr truncated at max_output_size chars each.

Inputs: command (required), stdin_data, max_output_size, timeout_seconds, +1 more. Returns: object

winops_cmd_powershellA

Execute a PowerShell command and return stdout, stderr, exit_code, execution_time.

Return Format

{
  "success": bool,
  "message": str,
  "stdout": str,
  "stderr": str,
  "exit_code": int,
  "execution_time": float,
  "next_steps": str | [],
  "sampling_advice": str
}

Examples

powershell(command="Get-Service | Where-Object Status -eq 'Running'")
powershell(command="Get-Process | Sort-Object CPU -Descending | Select -First 10")

Notes:

  • Uses asyncio.to_thread — never blocks the event loop.

  • ctx.sample() capped at 10s to prevent hang on unsupported clients.

  • Safety guards block Linux-isms (grep, tail, rm -rf, etc.) and em dashes.

  • stdout/stderr truncated at max_output_size chars each.

Inputs: command (required), stdin_data, max_output_size, timeout_seconds, +1 more. Returns: object

winops_container_cpA

Copy files between the host and a Docker container.

Direction is determined by the source prefix:

  • source="container:/tmp/data.json", destination="host:./out/" copies FROM container TO host

  • source="host:./script.py", destination="container:/tmp/" copies FROM host TO container

Return Format

{"success": bool, "source": str, "destination": str}

Examples

cp(container="app", source="host:./script.py", destination="container:/tmp/")
cp(container="db", source="container:/tmp/result.csv", destination="host:./output/")

Inputs: source (required), container (required), destination (required). Returns: object

winops_container_execA

Execute a command inside a Docker container.

Uses subprocess directly (not CMD/PowerShell wrapper) to avoid nested-quoting issues and list2cmdline mangling. stdin_data is piped directly to the container command — no need for docker cp + exec dance.

Return Format

{"success": bool, "stdout": str, "stderr": str, "exit_code": int}

Examples

exec(container="postgres", command="psql -U user -d db -c 'SELECT 1'")
exec(container="python-app", command="python /tmp/run.py", stdin_data="input data")
exec(container="nginx", command="nginx -t", timeout_seconds=10)

Inputs: command (required), container (required), user, workdir, +2 more. Returns: object

winops_evtlog_clearA
DestructiveIdempotent

Clear all events from a Windows Event Log channel. Requires Administrator.

Return Format

{"success": bool, "cleared_log": str}

Examples

clear(log_name="Application")

Inputs: log_name (required). Returns: object

winops_evtlog_exportB

Export a Windows Event Log channel to an .evtx file.

Return Format

{"success": bool, "log_name": str, "output_path": str}

Examples

export(log_name="System", output_path="D:\\logs\\system.evtx")

Inputs: log_name (required), output_path (required). Returns: object

winops_evtlog_listA
Read-onlyIdempotent

List all available Windows Event Log channels.

Return Format

{"success": bool, "channels": [str], "count": int}

Examples

list()

Inputs: no named parameters. Returns: object

winops_evtlog_queryA
Read-onlyIdempotent

Query recent events from a Windows Event Log channel.

Return Format

{
  "success": bool,
  "log_name": str,
  "events": [{"timestamp": str, "id": int, "source": str, "level": str, "message": str}],
  "count": int,
  "has_more": bool
}

Examples

query(log_name="System", max_events=20, time_range_hours=1)
query(log_name="Application", event_id=1000)

Errors:

  • Returns success=false if pywin32 is not installed or log_name is invalid.

Inputs: event_id, log_name, max_events, time_range_hours. Returns: object

winops_json_extract_from_textA
Read-onlyIdempotent

Extract all valid JSON objects/arrays found in unstructured text.

Return Format

{"success": true, "found": int, "items": [any]}

Examples

extract_from_text(text="log output: {\"status\": 200} and more text")

Inputs: text (required). Returns: object

winops_json_formatA
Read-onlyIdempotent

Parse and pretty-print a JSON string.

Return Format

{"success": bool, "formatted": str}

Examples

format(text='{"a":1,"b":2}')

Inputs: text (required), indent. Returns: object

winops_json_patchA
Idempotent

Deep-merge patch data into an existing JSON file (creates file if missing).

Return Format

{"success": bool, "path": str, "updated_keys": [str]}

Examples

patch(path="D:\\config\\app.json", data={"logging": {"level": "DEBUG"}})

Inputs: data (required), path (required), indent. Returns: object

winops_json_readA
Read-onlyIdempotent

Read and parse a JSON file.

Return Format

{"success": bool, "data": any}

Examples

read(path="D:\\config\\settings.json")

Inputs: path (required). Returns: object

winops_json_validateA
Read-onlyIdempotent

Validate whether a string is valid JSON.

Return Format

{"success": true, "valid": bool, "error": str | null}

Examples

validate(text='{"key": "value"}')

Inputs: text (required). Returns: object

winops_json_writeA
Idempotent

Write data to a JSON file, creating parent directories as needed.

Return Format

{"success": bool, "path": str}

Examples

write(path="D:\\config\\settings.json", data={"debug": true})

Inputs: data (required), path (required), indent. Returns: object

winops_net_diagA

Flush DNS cache and return full ipconfig output.

Return Format

{"success": bool, "dns_flushed": bool, "ipconfig": str}

Examples

diag()

Inputs: no named parameters. Returns: object

winops_net_firewall_addA

Add a Windows Firewall rule.

Return Format

{"success": bool, "rule_name": str}

Examples

firewall_add(rule_name="Allow SSH", direction="in", action="allow", port="22")

Inputs: rule_name (required), port, action, program, +1 more. Returns: object

winops_net_firewall_deleteA
DestructiveIdempotent

Delete a Windows Firewall rule by name.

Return Format

{"success": bool, "rule_name": str}

Examples

firewall_delete(rule_name="Allow SSH")

Inputs: rule_name (required). Returns: object

winops_net_firewall_listB
Read-onlyIdempotent

List all Windows Firewall rules via netsh.

Return Format

{"success": bool, "raw_rules": str}

Examples

firewall_list()

Inputs: no named parameters. Returns: object

winops_perf_processA
Read-onlyIdempotent

Get CPU, memory, thread count, and I/O counters for a specific process.

Return Format

{
  "success": bool,
  "pid": int, "name": str,
  "cpu_percent": float, "memory_info": {...},
  "num_threads": int, "io_counters": {...}
}

Examples

process(pid=1234)

Errors:

  • Returns success=false with error if PID does not exist.

Inputs: pid (required), sample_interval. Returns: object

winops_perf_systemA
Read-onlyIdempotent

Snapshot system-wide CPU (per-core), memory, disk I/O, and optionally network I/O.

Return Format

{
  "success": true,
  "cpu_percent_per_core": [float],
  "memory": {...},
  "disk_io": {...},
  "network_io": {...}  // only if include_network=true
}

Examples

system()
system(include_network=False, sample_interval=0.5)

Notes:

  • CPU sampling blocks for sample_interval seconds in a thread pool (not the event loop).

Inputs: include_network, sample_interval. Returns: object

winops_process_infoA
Read-onlyIdempotent

Get detailed information for a single process by PID.

Return Format

{
  "success": bool,
  "pid": int, "name": str, "status": str, "started": str,
  "cmdline": [str], "cpu_percent": float, "memory_info": {...}, "num_threads": int
}

Examples

info(pid=1234)

Errors:

  • Returns success=false with error="Process not found" if PID does not exist.

Inputs: pid (required).

winops_process_killA
Destructive

Terminate a process by PID (SIGTERM).

Return Format

{"success": bool, "terminated_pid": int}

Examples

kill(pid=9876)

Errors:

  • Returns success=false if process not found or access denied.

Inputs: pid (required). Returns: object

winops_process_listA
Read-onlyIdempotent

List running Windows processes with CPU and memory usage.

Return Format

{
  "success": true,
  "processes": [{"pid": int, "name": str, "user": str, "cpu": float, "mem": float}],
  "count": int,
  "has_more": bool
}

Examples

list(name_filter="python", limit=20)
list(include_system=True, limit=100)

Notes:

  • Result is bounded by limit. If count == limit, has_more may be true.

Inputs: limit, name_filter, include_system.

winops_process_resourcesA
Read-onlyIdempotent

Snapshot system-wide CPU and memory utilisation.

Return Format

{"success": true, "cpu_percent": float, "virtual_memory": {...}}

Examples

resources()

Inputs: no named parameters.

winops_svc_listA
Read-onlyIdempotent

List Windows services, optionally filtered by status.

Return Format

{"success": true, "services": [{"name": str, "display_name": str, "status": str}], "count": int}

Examples

list(filter_status="running")
list(include_system=False)

Errors:

  • Returns success=false if pywin32 is not installed.

Inputs: filter_status, include_system.

winops_svc_restartA

Restart a Windows service and wait for running state.

Return Format

{"success": bool, "name": str, "status": str}

Examples

restart(service_name="spooler")

Inputs: service_name (required), wait_timeout. Returns: object

winops_svc_startA

Start a Windows service and wait for it to reach running state.

Return Format

{"success": bool, "name": str, "status": str}

Examples

start(service_name="wuauserv")

Inputs: service_name (required), wait_timeout. Returns: object

winops_svc_statusA
Read-onlyIdempotent

Query the current status of a Windows service.

Return Format

{"success": bool, "name": str, "status": str}

Examples

status(service_name="wuauserv")

Inputs: service_name (required). Returns: object

winops_svc_stopA

Stop a Windows service and wait for it to reach stopped state.

Return Format

{"success": bool, "name": str, "status": str}

Examples

stop(service_name="wuauserv")

Inputs: service_name (required), wait_timeout. Returns: object

winops_sys_healthA
Read-onlyIdempotent

Check system health against CPU/memory/disk thresholds.

Return Format

{
  "success": true,
  "status": "healthy" | "degraded" | "unhealthy",
  "cpu_percent": float, "memory_percent": float, "disk_percent": float,
  "sampling_advice": str  // only when degraded/unhealthy and sampling available
}

Examples

health()
health(detailed=True)

Notes:

  • degraded: cpu>70% or mem>80% or disk>85%

  • unhealthy: cpu>90% or mem>90% or disk>95%

Inputs: detailed. Returns: object

winops_sys_infoA
Read-onlyIdempotent

Return OS platform, Python version, CPU core count, and total memory.

Return Format

{"success": true, "platform": str, "python": str, "machine": str,
 "cpu_cores": int, "memory_total": int,
 "boot_time": float, "users": [str], "cpu_freq": {...}}  // detailed only

Examples

info()
info(detailed=True)

Inputs: detailed. Returns: object

winops_sys_test_portA
Read-onlyIdempotent

Test TCP connectivity to a host:port.

Return Format

{"success": true, "host": str, "port": int, "reachable": bool}

Examples

test_port(host="8.8.8.8", port=53)
test_port(host="localhost", port=10800)

Inputs: host (required), port (required), timeout_seconds. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 59 tools

    Disambiguation2/5

    Multiple tools overlap significantly: winops_process_list, process_list_card, and winops_perf_process all surface process data, and winops_process_info vs winops_perf_process are nearly identical. The card-based tools (process_list_card, system_health_card) duplicate winops_sys_health and winops_process_list with only a formatting difference. An agent will frequently struggle to pick the correct tool.

    Naming Consistency3/5

    The majority follow winops_<domain>_<action>, but this is broken by process_list_card, system_health_card, agentic_system_hardening, and autonomous_troubleshooter lacking the prefix. Inconsistent verb usage appears in winops_accounts_group_members (noun) vs winops_accounts_list_groups (verb_noun) and the awkward winops_auto_task_list/task_create split. Readable but not uniform.

    Tool Count2/5

    At 59 tools, this far exceeds the 25-tool threshold for 'too many.' While the breadth covers many Windows operations domains, the sheer count overwhelms an agent's ability to select efficiently, and several tools (e.g., JSON utilities, archive helpers) are generic rather than Windows-specific.

    Completeness3/5

    Core lifecycles for accounts, services, event logs, and firewall rules are well covered, and the JSON/archive utilities are thorough. However, notable gaps exist: no process creation (only via shell), no service create/delete, no registry operations, and container support is skeletal (exec/cp only). Some workflows hit dead ends requiring shell fallbacks.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Extends Claude Desktop with custom tools for file management, system operations, and command execution. Supports creating/reading/deleting files, directory listing, system information retrieval, and file searching capabilities.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables control of Windows PC through Claude Desktop, including executing shell commands, managing system resources, controlling audio/power, launching applications, taking screenshots, and managing windows and processes.
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables Claude Desktop to monitor and control your computer system with 90+ real-time tools covering CPU, RAM, GPU, disk, network, processes, and more, plus extensions for file management, code editing, and web research.
      84
      MIT