winadm-mcp
It's a Windows administration MCP server that gives an agent read-mostly access to services, processes, event logs and system info, with write actions gated behind --allow-write.
List services (
list_windows_services) with status and start type, optionally filtered by status or name substring.Control services (
service_action_tool) — start, stop or restart a service (write; requires--allow-write).List processes (
list_windows_processes) with PID, working-set MB and CPU seconds.Kill a process (
kill_process_tool) by validated PID (write; requires--allow-write).Read the event log (
read_eventlog) for recent events from any log, defaulting to System errors/warnings/criticals, newest first.Get system info (
windows_system_info) — OS name/version, hostname, last boot time and memory totals.All tools return plain-text results (single
resultstring); write tools refuse to act unless the server was started with--allow-write.Note: the README also documents a
run_powershell_command_tool(with progress notifications and timeouts), but it is not present in this server schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@winadm-mcp Why is my printer not working? Check if the Spooler service is running."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
winadm-mcp
An MCP server that gives AI agents safe, read-mostly access to Windows administration: services, processes, the event log and system info.
$ pip install git+https://github.com/technothatch/winadm-mcp
$ winadm-mcp --allow-writePoint Claude Desktop / Claude Code / any MCP client at it and your agent can answer
"why is my printer not working" (Spooler stopped?), "what ate my RAM" or
"what broke since boot" — without you alt-tabbing through services.msc,
Task Manager and Event Viewer.
Tools
Tool | Access | What it does |
| read | all services with status + start type; filter by status/name |
| write | start / stop / restart a service |
| read | PID, working set MB, CPU seconds |
| write | force-kill by PID |
| read | newest events from any log (default System, error/warning/critical) |
| write | run a PowerShell command and return its output (with progress notifications) |
| read | OS, hostname, last boot, memory totals |
Read-only by default. Write tools refuse to act unless the server is started with
--allow-write. Service names and PIDs are validated before they touch PowerShell.
The story behind it: Give Windows administration tools a defined boundary — the TechnoThatch journal piece on the read-only-by-default design.
Related MCP server: powershell-mcp
Install / run
Status: not on PyPI yet. Install from GitHub until it is published:
pip install git+https://github.com/technothatch/winadm-mcp winadm-mcp # read-only (recommended first) winadm-mcp --allow-write # enable write toolsThe
uvx winadm-mcp/pip install winadm-mcpforms will work once the package is on PyPI.
Claude Desktop config example (after pip install, use the winadm-mcp entry point
directly — uvx only works once the package is on PyPI):
{
"mcpServers": {
"winadm": {
"command": "winadm-mcp",
"args": []
}
}
}Long-running commands
run_powershell_command_tool sends MCP progress notifications while a command is
still running: elapsed time, and the last line the command printed. MCP clients give up
on calls that stay silent (Claude Code aborts after 300 s with "sent no response or
progress"), so a long command that says nothing looks exactly like a hung one.
[progress] 10.1/120.0 running 10s - last output: step 8When the command exceeds its timeout, the tool returns the output produced so far plus how long it ran, instead of a bare "timed out":
started
[timed out after 6s - the PowerShell process was ended, but programs it started may still be running]A timeout stops the PowerShell process only. Programs the command started
(Start-Process firefox, a build kicked off by a helper) keep running — a killed GUI
app or an interrupted build cannot be brought back, and an agent can always see and
end a leftover console process itself.
Two environment variables tune this:
Variable | Default | Effect |
|
| seconds between progress notifications |
|
| seconds before a command is stopped |
Honest technical notes
Every tool is a small PowerShell one-liner invoked with
-EncodedCommand(UTF-16LE base64, no temp files, no shell string interpolation of user input — names/PIDs are regex-validated first).Output is read on background threads. A descendant that inherits the pipes can keep them open, so waiting for them is deliberately bounded — a slow pipe never hangs the tool call.
A timeout kills the PowerShell process, never the process tree (
taskkill /Talso kills GUI programs the command meant to outlive it).Windows-only by nature; on other OSes tools return a clear error instead of lying.
Tested on Linux CI with fully mocked PowerShell (deterministic, no admin rights needed) and smoke-tested on
windows-latest.
Development
pip install -e ".[dev]"
pytestLicense
Available Tools
6 toolskill_process_toolA
Force-kill a process by PID. Requires --allow-write.
Inputs: pid (required). Returns: result
list_windows_processesA
List processes with PID, working set (MB) and CPU seconds.
Inputs: no named parameters. Returns: result
list_windows_servicesA
List Windows services with status and start type. Optionally filter by status (Running/Stopped/etc.) or substring of the service name.
Inputs: name, status. Returns: result
read_eventlogB
Read recent events from a Windows event log (default: System, levels error/warning/critical, newest first).
Inputs: level, log_name, max_events. Returns: result
service_action_toolA
Start, stop or restart a Windows service. Requires --allow-write.
Inputs: name (required), action (required). Returns: result
windows_system_infoB
OS name/version, hostname, last boot time and memory totals.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource and action: list vs. act on services, list vs. kill processes, read event logs, and fetch system info. There is no meaningful overlap between any pair, and the write tools are explicitly separated from their read counterparts.
The set mixes several conventions: list_windows_services and list_windows_processes use a clear list_windows_ prefix, while service_action_tool and kill_process_tool use a vague _tool suffix, and read_eventlog/windows_system_info follow yet other patterns. Names are readable but not predictable as a family.
Six tools is well-scoped for a Windows administration server focused on services, processes, event logs, and system info. Each tool clearly earns its place without redundancy.
The surface covers the essential read and write operations for services, processes, event logs, and system info. Minor gaps remain, such as service configuration/creation, process start, or event log clearing, but core admin workflows are supported.
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Windows computers for AI agents. Office, desktop apps, browser tasks, testing and file transfer.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI agents to securely manage and execute commands on remote Windows servers via WinRM, including PowerShell execution, system information retrieval, and service management.66MIT
- AlicenseBqualityBmaintenanceEnables AI agents to run PowerShell commands and manage Windows services without intrusive console windows, while also supporting remote execution via SSH and WinRM.20179 npm1MIT
- 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
- AlicenseAqualityBmaintenanceEnables AI agents to administer a local Windows machine by listing and controlling services, processes, event logs, ports, network lookups and system diagnostics through sharply typed tools. A built-in web interface lets the operator switch every tool on or off individually, with least privilege as the default.2MIT