Windows Sandbox MCP
概览
作者提供的说明(英文原文)
Run risky commands in a disposable, offline Windows Sandbox (Windows only, needs a one-time setup).
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价来自已登录用户的评价,有评价后显示平均分
- 我们的基础检查i2 项中通过 2 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新★ 2
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 2 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 fmuecke 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于4天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5742 个服务器的 77%
- 发布到注册中心的时间比此分类中其他 5742 个服务器的 79% 更新
- 基础检查结果等于或优于此分类中其他 5742 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Windows Sandbox MCP 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于4天前,最新版本(1.0.0)于4天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Windows Sandbox MCP
MCP server that lets a restricted agent run risky commands in a fresh, offline Windows Sandbox guest, without access to anything else on the host. Design and validated wsb.exe behaviour: SPEC.md. Reporting vulnerabilities: SECURITY.md.
wsb-mcp is the name of the executable, the project and the solution.
Agent host ──stdio──> wsb-mcp proxy ──named pipe──> wsb-mcp serve ──> wsb.exe
(agent account) (ACL: agent only) (your account)
Tools
| Tool | Purpose |
|---|---|
sandbox_start | Start a guest; optionally map inputPath read-only at C:\SandboxIn and outputPath writable at C:\SandboxOut. |
sandbox_exec | Run a command (runAs system or user, both elevated). Returns the guest exit code only; redirect output to files in C:\SandboxOut. |
sandbox_status | Running state, id, mapped folders. |
sandbox_stop | Stop and discard the guest. |
The guest is also stopped when the agent disconnects, after the idle timeout, and when the broker exits.
Build and test
dotnet build
dotnet run --project tests/WsbMcp.Tests # all tests, optional name filter as argument pwsh -NoProfile -File tests/WindowsSandboxTest.Tests.ps1 # psm1 tests
The tests use a fake wsb.exe and do not need Windows Sandbox.
Installation
Two accounts are involved:
- You: the interactive user, who runs the broker.
- The agent: for example
AgentSandbox, which runs Claude Code and the proxy.
Requirements: Windows 11 24H2 or later, with Windows Sandbox enabled. To enable it, run this as admin and reboot:
Enable-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM -All
The release build is self-contained, so no .NET is needed.
Quick start
- Install the program (admin; installs below
C:\Program Files):
winget install fmuecke.WsbMcp --scope machine
- Set up the broker. Run this as you, in a normal terminal, not elevated:
wsb-mcp setup --agent AgentSandbox --root C:\AgentSandbox
--rootis the folder below which the agent may map folders into the sandbox.setupchecks the prerequisites, writes the config, and registers a logon task that starts the broker hidden in your desktop session.- It then starts the broker and prints the next step.
- Connect Claude Code. As the agent, in Claude Code:
/plugin marketplace add fmuecke/windows-sandbox-mcp
/plugin install wsb-mcp@windows-sandbox-mcp
The plugin adds the four tools plus a skill that teaches Claude how to use
them. Without plugins, use this instead: claude mcp add --scope user wsb -- wsb-mcp proxy.
Check everything with wsb-mcp diag, run as you or as the agent. If the broker isn't running, the tools say so and tell you what to run. Once it's running, the next call works without restarting Claude Code.
Commands
| Command | Run as | Purpose |
|---|---|---|
wsb-mcp setup --agent --root [--pipe ] [--no-autostart] [--force] | you (not elevated) | One-time setup: config, logon task, start. |
wsb-mcp start / wsb-mcp stop | you | Start the broker now / stop it (and its guest) gracefully. |
wsb-mcp diag | you or the agent | Check each link of the chain, with a fix for each failure. |
wsb-mcp uninstall [--keep-config] | you | Stop, then remove the logon task, config and log. |
wsb-mcp serve [--config ] | you | Run the broker in the foreground; Ctrl+C stops it. |
wsb-mcp proxy [--pipe ] | the agent's MCP host | stdio bridge to the broker; you never run this yourself. |
The config is %LOCALAPPDATA%\wsb-mcp\config.json. setup writes the first three keys; the others are optional:
{
"agentAccount": "AgentSandbox", "allowedRoot": "C:\\AgentSandbox", "pipeName": "wsb-mcp", "idleTimeoutMinutes": 30, "maxExecTimeoutSeconds": 1800, "startupTimeoutSeconds": 120, "logPath": "%LOCALAPPDATA%\\wsb-mcp\\broker.log" }
Unknown keys are rejected. `wsbPath` overrides `wsb.exe`, for tests.
Why the location matters
The broker runs with your rights. If anyone else could replace its exe, they could run code as you. So serve and setup refuse to run if anyone other than SYSTEM, Administrators, TrustedInstaller or you could do one of the following:
- change the exe;
- add files next to it;
- rename or re-permission any folder on its path.
The winget install below C:\Program Files passes by default. The broker also refuses a config or log inside allowedRoot.
Agent accounts with managed Claude Code settings
If C:\Program Files\ClaudeCode\managed-settings.json restricts MCP servers, admin changes are needed:
strictKnownMarketplaces: add this repository's marketplace, for/plugin marketplace add.allowedMcpServers: add{ "serverCommand": ["wsb-mcp", "proxy"] }, the command the plugin runs.strictPluginOnlyCustomizationcontaining"mcp": only the plugin route works. Alternatively, define the server centrally inC:\Program Files\ClaudeCode\managed-mcp.json:
{ "mcpServers": { "wsb": { "command": "wsb-mcp", "args": ["proxy"] } } }
Symptom of a blocking policy: /mcp shows "No MCP servers configured".
Without winget
Download the zip for your architecture from the Releases page. CI builds and tests it from its tag, and GitHub signs its build provenance. Verify the zip, and extract it into a folder only admins (or you) can write:
$zip = "$env:USERPROFILE\Downloads\wsb-mcp-<version>-win-x64.zip"
gh attestation verify $zip --repo fmuecke/windows-sandbox-mcp $dir = "$env:ProgramFiles\wsb-mcp" # as admin Expand-Archive $zip -DestinationPath $dir -Force
Then run `& "$dir\wsb-mcp.exe" setup ...` as in step 2. For the Claude side,
setup prints the full exe path to use. SHA256SUMS.txt only detects a damaged download. It does not prove who built the zip; the attestation does.
From source: build a reviewed commit in a clone the agent cannot modify, for example with dotnet publish src/WsbMcp -c Release -r win-x64 -o $dir. That needs the .NET 10 SDK and NuGet access. Never build in a checkout the agent can write, such as one below C:\AgentSandbox.
Verify against the real sandbox
As the agent account, with the broker running:
pwsh -NoProfile -File tests\smoke\real-smoke.ps1 -ProxyExe (Get-Command wsb-mcp).Source -HoldForCtrlC
It runs 22 checks (19 without -HoldForCtrlC):
- folder rules
- read-only input
- no network
- exit codes
runAs: user- timeout
- stop on disconnect
At the end it asks you to stop the broker (wsb-mcp stop) and checks that the tools then return the offline hint. Afterwards wsb list must show no sandbox.
Update
Windows locks the exe while the broker runs, so stop it first:
wsb-mcp stop
winget upgrade fmuecke.WsbMcp # admin wsb-mcp start
Troubleshooting
Start with wsb-mcp diag. Common cases:
| Symptom | Cause / fix |
|---|---|
| Tool error "The wsb-mcp broker is not reachable" | The broker isn't running (wsb-mcp start), was never set up (wsb-mcp setup), or another session is connected (one at a time). |
/mcp: "No MCP servers configured" | A managed policy blocks the server. See "Agent accounts with managed Claude Code settings". |
setup / serve: "not in a safe location" / "refusing to serve" | The exe is in a folder others can write to. Install with winget or below C:\Program Files. |
The broker log shows client.rejected | The connecting account is not agentAccount, or it connected anonymously. |
serve: "The stop event … already exists" | A broker is already running, or another process created the event. Run wsb-mcp stop, or sign out and back in. |
| Rule 4 rejects a folder you think is fine | The *agent* lacks list (input) or create-file (output) rights on that exact folder. Check with icacls. |
runAs: user fails with "No user session" | The broker isn't running in your interactive desktop session. Use the logon task, not a service. |
Uninstall
wsb-mcp uninstall # as you: task, config, log
winget uninstall fmuecke.WsbMcp # admin
In Claude Code, as the agent: `/plugin uninstall wsb-mcp` (or `claude mcp remove wsb`).
License
MIT - Florian Mücke, 2026