
Windows Sandbox MCP
io.github.fmuecke由 GitHub 帳號 fmuecke 發布v1.0.0更新於 Nov 7, 2026
Run risky commands in a disposable, offline Windows Sandbox (Windows only, needs a one-time setup).
概覽
在一次性、離線的 Windows 沙箱客體中執行高風險命令,與主機其他部分隔離,僅限 Windows。
- 可以做什麼
- 啟動全新的沙箱客體,可選擇將輸入資料夾以唯讀方式對應、輸出資料夾以可寫方式對應
- 以來賓中的 system 或 user 身分(皆為提高權限)執行命令,並從輸出資料夾讀取結果
- 查看執行狀態、沙箱 ID 與已對應的資料夾
- 停止並捨棄客體;中斷連線、閒置逾時或代理程式結束時也會自動停止
- 適用情境
- 適合需要執行不受信任或可能具破壞性的命令、指令碼或下載內容,又不希望影響主機時使用,前提是結果可透過對應的輸入與輸出資料夾交換。
- 執行需求
- Windows 11 24H2 或更新版本並啟用 Windows 沙箱;需要一次系統管理員安裝與初始化;涉及兩個帳戶:執行代理程式的互動使用者帳戶,以及執行 MCP 代理程序的獨立代理帳戶。發行版為自包含,無需 .NET。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Windows Sandbox MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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.
Tools
The guest is also stopped when the agent disconnects, after the idle timeout, and when the broker exits.
Build and test
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:
The release build is self-contained, so no .NET is needed.
Quick start
- Install the program (admin; installs below
C:\Program Files): - Set up the broker. Run this as you, in a normal terminal, not
elevated:
--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:
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
The config is %LOCALAPPDATA%\wsb-mcp\config.json. setup writes the first
three keys; the others are optional:
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:
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:
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:
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:
Troubleshooting
Start with wsb-mcp diag. Common cases:
Uninstall
In Claude Code, as the agent: /plugin uninstall wsb-mcp (or claude mcp remove wsb).
License
MIT - Florian Mücke, 2026
來源:README.md,提交 768b6a1
工具
0版本歷史
1- v1.0.0最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分