
Umbriel
io.github.ObscuritySRL由 GitHub 账号 ObscuritySRL 发布v1.14.0更新于 Nov 3, 2026
See and drive a whole Windows machine from Bun — apps, input, screen, OCR, registry, OS — via MCP.
概览
仅限 Windows 的 MCP 服务器,让助手通过 Bun 查看并操作桌面应用、窗口、输入、屏幕/OCR 与系统设置。
- 可以做什么
- 检查并操作应用窗口:读取 UI Automation 树,按名称、角色或 automationId 定位控件,并执行调用、输入、滚动或切换。
- 截取并分析屏幕:获取窗口实时像素、全屏截图,对画布和游戏使用模板匹配与文字识别。
- 管理窗口与输入:按句柄附加窗口,移动、置顶或调整大小,使用语义、消息投递或合成输入,并读写剪贴板。
- 直接操作操作系统:进程、服务、计划任务、注册表、防火墙规则、网络适配器、电源、卷、环境变量、事件日志与显示模式。
- 在启用完整配置时,还可启动程序,并在沙箱根目录内读取、写入、复制、移动或删除文件。
- 适用场景
- 适合需要助手操作没有 API 的 Windows 桌面程序的场景,例如旧式 Win32、WPF、WinUI、Electron 或 Java 应用,也适合需要查看和修改服务、注册表、进程等机器级设置时使用。对于偏好缓存窗口文本快照而非反复截图的智能体流程尤为合适。
- 运行要求
- 在 Windows 10 或 11 上本地运行,需要 Bun 1.1 或更高版本,通过 bunx umbriel 以 stdio 启动;无需账号或 API 密钥。行为由环境变量控制:UMBRIEL_PROFILE(readonly、默认的 safe 或 full)、UMBRIEL_ALLOW、UMBRIEL_DENY、UMBRIEL_OS、UMBRIEL_FS_ROOT、UMBRIEL_CURSOR、UMBRIEL_AUDIT、UMBRIEL_TRACE、UMBRIEL_REDACT 与 UMBRIEL_FFI_TRACE。仅限桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Umbriel,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Umbriel · A set of hands for your AI agent — and Playwright for the Windows desktop
Drive any Windows app through five layers — fall back to OCR and pixel-matching when there's no other way in, see and manage windows even when they're hidden, use cursor-free semantic or posted input where Windows permits it, target controls by name and role, and reach past the GUI to drive the OS itself: processes, services, the registry, scheduled tasks, the firewall, network, power, displays, disks, environment, and the event log. Built for ChatGPT/Codex, Claude, and any AI agent that speaks MCP.
What is it?
Umbriel drives the Windows desktop the way a person would — through whatever channel actually works for the app in front of it:
- Pixels & OCR — when an app exposes no tree at all (canvas, custom-draw, games), fall back to full-screen capture, template matching, and text recognition.
- Semantic control — read the UI Automation tree an app exposes and target controls by name and role, not coordinates. Survives the DPI, layout, and theme changes that shatter pixel scripts.
- Sight & window control — capture the live pixels of any window (even fully GPU-composited or occluded), inspect raw HWND hierarchies, and move, raise, or size windows.
- Input routing — semantic UIA and posted-message input for background-capable controls, with a verified
SendInputfallback only when an HWND-less editor or real pointer gesture actually needs the foreground. - Drive the OS, not just GUIs — when the task is the machine, act on it directly: read and write the registry (values and keys), list / kill / suspend / reprioritize processes, query / start / stop / configure services, create / delete / enumerate scheduled tasks, read the firewall rules, enumerate network adapters and live connections, drive session power (lock / restart / sleep / hibernate), list volumes and free space, get and set environment variables, read the event log, and read or change the display mode — all native, no PowerShell or shelling out.
Underneath it's a few kilobytes of TypeScript on Bun's built-in FFI — no Appium server, no .NET, no node-gyp, no prebuilt binaries.
Install
That's the entire install story. No build step, nothing to compile.
Built for AI agents
This is what Umbriel is for. Register the published server with Codex (ChatGPT desktop, CLI, and the IDE share this configuration):
Or register it with Claude:
Any MCP-speaking agent can then ground itself in the accessibility tree in ~15 ms per step and use semantic, posted-message, synthetic-input, or pixel fallback as the target requires. Most classic controls remain driveable backgrounded; a no-own-HWND Chromium/WPF/WinUI editor needs a brief unlocked foreground lease for real input. Umbriel verifies that destination before injecting, can verify the resulting editor state, and restores the previous foreground window by default.
A screenshot agent burns image tokens on every step — then burns them again to screenshot its own result, because it can't read state out of pixels. Umbriel maps the whole window to plain text you cache once and reuse across steps, and reads results straight back from that map. Same grounding Microsoft's UFO2 and the OSWorld-Human benchmark recommend (structure first, vision second) — without the bill.
⚡ Maps a window in ~13 ms · tokens are text you cache once and reuse, not an image re-bought every step · up to ~2000× faster grounding than a 3–26 s screenshot pipeline
Umbriel figures measured on Windows 11, Bun 1.4 (14.3 ms · ~3k tokens on Calculator; single property read ~58 µs) — reproduce with bun run example/benchmark.ts. Screenshot-pipeline figures are published third-party results (OSWorld-Human; computer-use image-token costs).
The MCP server exposes 99 snapshot-first tools (76 under the default safe profile; 41 under readonly; the 23 os/fs tools need full or UMBRIEL_OS=1) behind a deployer policy you control:
desktop_snapshot returns a ref-keyed view — Button "Five" [ref=e49#3] — and every action replies with the smallest faithful update: a compact delta when little changed, a pruned snapshot when more did. The model re-grounds without drowning in tokens.
For chronological chats and logs, desktop_snapshot { root: "Messages in general", tail: 20, maxDepth: 2 } returns only the newest direct children. This avoids paying for hundreds of old loaded rows before reaching the messages that need a response.
When the window handle is already known, the same scope can be applied on the first call: attach { hWnd: "0x123", root: "Messages in general", tail: 20, maxDepth: 2 }. Use maxDepth/maxNodes without root to bound any other large initial tree.
For controlled web editors such as Discord's Slate composer, use the MCP type tool with method: "paste", verify: true, and submit: true (plus clear: true only after confirming an existing draft may be replaced). UIA set_value can mutate the exposed DOM value without updating the application's internal editor model, so it is not a reliable background-send path. An ambiguous submission is reported as unverified; never retry it blindly.
Use it from your code
Umbriel is also a first-class library for E2E tests and desktop automation — find by name → wait → act → assert, just like getByRole on the web:
Why Umbriel?
The Windows desktop-automation corner of npm is a minefield of native-addon build failures, paywalls, and abandoned daemons. There has been no zero-install, typed, in-process Windows-automation client for Node or Bun — until this.
Because Umbriel is plain TypeScript over Bun's own FFI, it:
- Can't be paywalled — there's no compiled binary to gate behind a subscription registry.
- Has no build step — no ABI matrix, no
MSVCor Python toolchain, nonode-gyp. - Talks to Windows in-process — no
127.0.0.1:4723round-trip, no Appium daemon, no Developer Mode, noWinAppDriver.
How the alternatives compare (npm weekly downloads, week of 2026-06-05)
Highlights
Requirements
- Semantic first, pixels where there's no structure — custom-draw, games, and WebGL surfaces fall back to the built-in pixel + OCR layer; everything with a tree gets exact semantic targeting.
- Synthetic typing and real clicks need an unlocked desktop —
invoke, reads, andsetValuework even on a locked session, so prefer them. - Minimized driving is for classic Win32 windows —
invoke/setValue/togglekeep working on a minimized or fully backgrounded classic Win32/HWND window, but a UWP/WinUI store app suspends its UI thread and accessibility tree when minimized (the tree reads empty and posted actions don't land until it's restored), so restore it first. - Windows 10 or 11, Bun ≥ 1.1 — Windows-only and Bun-only, the owned trade-off for zero dependencies and in-process speed.
Going deeper
The complete API surface lives in AI.md — written so thoroughly that an agent (or a developer) never needs to read the source. Runnable demos are in example/.
MIT Licensed · Built on bun:ffi with zero native dependencies
来源:README.md,提交 752d5f2
工具
0版本历史
1- v1.14.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分