# Windows Sandbox MCP Server

> Test apps in disposable Windows Sandboxes and keep the evidence.

- **URL**: https://followmcp.com/en/servers/sandbox-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 503
- **FMRS Score**: 63/100 (Grade C)
- **Source**: https://github.com/shanselman/sandbox-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Prebuilt binary
- **Auth**: No credential needed

## Overview
Windows Sandbox MCP Server is a clean-machine testing tool for Windows desktop apps, with a CLI and an optional MCP adapter that share one engine. It can start a fresh Windows Sandbox, deploy and run an app, drive its interface with UI Automation, test installers and uninstallers, observe untrusted files, and save reports and media on the host. The MCP adapter uses stdio.

## Best for
- Developers and QA teams testing Windows desktop apps on a clean machine.
- Agent workflows that use an MCP client to operate a Sandbox and inspect screenshots and structured results.
- People who need quick, disposable tests in a local Windows Sandbox.

## Not for
- Users who need Linux, cloud machines, persistent environments, or multiple concurrent Sandboxes.
- Workloads requiring Microsoft Store apps or specific hardware.
- Anyone needing a full malware analysis lab or guaranteed risk-free isolation.

## Required permissions
- The host must be able to start and control Windows Sandbox; enabling the Windows feature requires an administrator PowerShell session and restart.
- The MCP client starts the local server over stdio; the documented configuration uses the extracted package's Node.js runtime and server files.
- Host file copy scope can be limited with SANDBOX_MCP_ALLOWED_ROOTS; explicit runtime provisioning downloads and verifies installers on the host, then copies them into the guest for installation.

## Risks
- Windows Sandbox provides isolation but cannot guarantee protection from a hypervisor or Sandbox escape vulnerability.
- Network mode on gives the guest internet access; use off or firewall for untrusted files, and note that guest administrator code could undo firewall restrictions.
- The guest can write to the output folder; treat returned files and logs as untrusted, especially after detonation runs.
- Runtime provisioning is opt-in and reports runs as provisioned; such a pass does not show that the original clean machine had those dependencies.

## Client config (JSON)
```json
{"servers":{"windows-sandbox":{"type":"stdio","command":"C:\\Users\\you\\Downloads\\sandbox-mcp\\node.exe","args":["C:\\Users\\you\\Downloads\\sandbox-mcp\\src\\server.js"]}}}
```

## Tools (27)
- `sandbox_deps`: Statically inspect app dependencies on the host without running or installing the app.
- `sandbox_provision`: After explicit opt-in, install verified runtimes into the current Sandbox and record that the run was provisioned.
- `sandbox_run`: Run an app in a fresh Sandbox, collect results, and destroy the guest environment.
- `sandbox_start`: Start a fresh Sandbox with configurable network mode, memory, and virtual GPU.
- `sandbox_status`: Inspect the running Sandbox, network mode, agent health, and desktop state.
- `sandbox_desktop_release`: Release the current workflow's desktop operation turn immediately.
- `sandbox_stop`: Destroy the Sandbox and list artifacts kept on the host.
- `sandbox_copy_in`: Copy a host file or folder into the Sandbox.
- `sandbox_deploy`: Incrementally deploy a host directory to a running Sandbox and verify file hashes.
- `sandbox_copy_out`: Copy a file or folder from the Sandbox to the host run output directory.
- `sandbox_exec`: Run a PowerShell or cmd command in the Sandbox and return output and exit code.
- `sandbox_launch`: Launch an executable or installed app package.
- `sandbox_process`: Inspect process status, exit code, and window title.
- `sandbox_windows`: List visible top-level windows with titles, process IDs, and bounds.
- `sandbox_screenshot`: Capture the desktop or a window and return an inline PNG.
- `sandbox_record_start`: Start a desktop recording with duration and frame limits.
- `sandbox_record_stop`: Stop recording and publish a self-contained HTML viewer; also create MP4 if host ffmpeg is available.
- `sandbox_click`: Click using screen coordinates.
- `sandbox_type`: Enter text or key input for mouse and keyboard actions.
- `sandbox_ui_tree`: Read a window's UI Automation control tree.
- `sandbox_ui_action`: Act on or read a control by name, automation ID, or control type.
- `sandbox_ui_wait`: Wait for a specified control to appear.
- `sandbox_app_errors`: Read application event log errors, including crashes, hangs, and unhandled .NET exceptions.
- `sandbox_install_test`: Test installation and uninstallation in a fresh Sandbox and report system changes and leftovers.
- `sandbox_detonate`: Run an untrusted file in a Sandbox that has no network by default and report observed activity.
- `sandbox_snapshot`: Record a system snapshot of files, registry, services, autoruns, and installed programs.
- `sandbox_diff`: Compare two system snapshots and report changes.
