Windows APISAFE
MCP server for the windows API.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
MCP server for the windows API.
Installation
add this to your claude mcp config:
{
"mcpServers": {
"windows": {
"command": "uvx",
"args": [
"mcp-windows"
]
}
}
}or locally:
{
"mcpServers": {
"windows": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\{name}\\Documents\\mcp-windows",
"run",
"mcp-windows"
]
}
}
}Features
Media
- getmediasessions
- pause
- play
- next
- previous
Notifications
- send_toast
Window Management
- getforegroundwindow_info
- getwindowlist
- focus_window
- close_window
- minimize_window
screenshot
- screenshot_window
Monitors
- sleep_monitors
- wake_monitors
Theme
- setthememode (light, dark)
- getthememode
Start Menu
- open_file
- open_url
Clipboard
- get_clipboard
- set_clipboard
License
MIT
a2c6e721208dOBSERVED · 2026-10-10Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-windows -- uvx mcp-windows
{
"mcpServers": {
"mcp-windows": {
"command": "uvx",
"args": [
"mcp-windows"
]
}
}
}Exposed tools (26)
19 read · 6 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
close_window | read | Close the specified window. |
focus_window | destructive | Force focus a window using all known safe tricks (thread attach, fake input, fallback restore). |
get_clipboard | read | Get the current clipboard contents. |
get_foreground_window_info | read | Return information about the currently focused (foreground) window. |
get_media_sessions | read | List all media playback sessions with metadata and control capability info. |
get_theme_mode | read | Get the current Windows UI theme. |
get_volume | read | Return the master volume level as a percentage (0-100). |
get_window_list | read | Return a list of all top-level visible windows. |
minimize_window | read | Minimize the specified window. |
mute | read | volume = await run_in_executor(_get_volume_interface) |
next | read | Skip to the next media item for the given app_id. |
open_file | read | Open a file or folder in the default application. |
open_url | read | Open a URL in the default browser. |
pause | read | Pause the media playback for a given app_id using windows media control API. |
play | read | Play the media playback for a given app_id using windows media control API. |
previous | read | Skip to the previous media item for the given app_id. |
screenshot_window | read | Capture a screenshot of the specified window handle (hwnd). Does not require the window to be visible. |
send_keyboard_shortcut | write | Simulate pressing a combination of keys. Use any of the following special keys: ctrl, shift, alt, esc, enter, tab, space, left, right, up, down as well the regular characters. ONLY USE THIS AS A LAST RESORT. |
send_toast | write | Send a windows toast notification to the user. |
set_clipboard | write | Set the clipboard contents. |
set_theme_mode | write | Set Windows UI theme to |
set_volume | write | Set the master volume level (0-100). |
sleep_monitors | write | Put all monitors to sleep. |
type_text | read | Simulate typing text with a delay between each character. ONLY USE THIS AS A LAST RESORT. |
unmute | read | volume = await run_in_executor(_get_volume_interface) |
wake_monitors | read | Wake up sleeping monitors. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
focus_window
Gates applied: no_behavioural_pass.
a2c6e721208dfull audit observations/trust-audit/mcp-server/secretiveshell__windows-api.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-10 | a2c6e721208d | SAFE | B | 89 | first audit |
Questions
What is the Windows API MCP server?
MCP server for the windows API.
What tools does Windows API expose?
26 in total: 19 read-only, 6 that write, and 1 that can delete or overwrite (focus_window). Every one is listed on this page with its risk.
Is Windows API safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Windows API need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (a2c6e721208d), read on 2026-10-10. The repository is watched and re-audited when it changes.