Playwright for the Windows desktop, from Bun — drive native GUIs via UI Automation + MCP.
MCPpedia last refreshed this data
io.github.ObscuritySRL/bun-uia is an MCP server that playwright for the Windows desktop, from Bun — drive native GUIs via UI Automation + MCP. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 78/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-obscuritysrl-bun-uia": {
"args": [
"-y",
"bun-uia"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Playwright for the Windows desktop, from Bun — drive native GUIs via UI Automation + MCP.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'bun-uia' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked bun-uia against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in browser
Search-first MCP server for JavaScript reverse engineering: 736 tools across 36 domains.
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
Search, scrape, and crawl the web, plus Firecrawl Alexandria, our library of everything else.
Open-source web scraper for AI agents with scrape, crawl, and map tools
MCP Security Weekly
Get CVE alerts and security updates for io.github.ObscuritySRL/bun-uia and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Zero-dependency Win32 FFI bindings for Bun on Windows. Each system DLL is a standalone @bun-win32/* package with full type definitions.
# Per-DLL packages:
bun add @bun-win32/kernel32 @bun-win32/user32 # etc...
# Or pull the entire surface in one install:
bun add @bun-win32/all # scoped meta-package
bun add bun-win32 # unscoped alias for the same surface
Requires Bun >= 1.1.0 and Windows 10+.
After the first call resolves the symbol via dlopen/dlsym, the native function pointer is cached directly on the class. Every subsequent call is a straight pointer invocation through Bun's FFI - no marshaling layer, no runtime type checks, no wrapper overhead. It's the same codepath as calling the C function yourself.
For hot paths, Preload() resolves symbols eagerly so even the first call pays zero binding cost:
import Kernel32 from '@bun-win32/kernel32';
const pid = Kernel32.GetCurrentProcessId();
const ticks = Kernel32.GetTickCount64();
import User32 from '@bun-win32/user32';
User32.Preload(['GetForegroundWindow', 'SetWindowPos']);
const { GetForegroundWindow, SetWindowPos } = User32;
SetWindowPos(hWnd, 0n, x, y, width, height, flags);
[!IMPORTANT] If you destructure before binding, you capture the lazy wrapper instead of the native function.
All type definitions are provided by @bun-win32/core.
Published packages are AI-friendly. Alongside the README.md, each package includes an AI.md file that documents the binding contract, type surface, and source layout so coding agents can use the package correctly.
comctl32 - common controls, image lists, property sheets, DPA/DSA dynamic arrays, flat scroll bars, window subclassingcomdlg32 - common dialogs: Open / Save File, Choose Color, Choose Font, Print, Page Setup, Find / Replace, and CommDlgExtendedErrord2d1 - Direct2D: GPU-accelerated 2D — ID2D1Factory / device-context creation plus Direct2D's native affine-matrix, color-space (sRGB / scRGB), gradient-mesh (Coons-patch), and trig / vector math (D2D1CreateFactory, D2D1MakeRotateMatrix, D2D1ConvertColorSpace, …)d3d11 - Direct3D 11 device / swap-chain creation, D3D11-on-12 interop, WinRT IDirect3DDevice / IDirect3DSurface bridgesd3d12 - Direct3D 12 device creation, debug-layer / global-interface access, and root-signature serialize/deserialize (D3D12CreateDevice, D3D12GetDebugInterface, D3D12GetInterface, D3D12SerializeVersionedRootSignature, …) — modern GPU/compute/ML pathd3dcompiler_47 - HLSL → DXBC shader compilation, preprocessing, disassembly, reflection, blob part extraction, shader stripping, function linking graphdcomp - DirectComposition device/surface creation (DCompositionCreateDevice/2/3, DCompositionCreateSurfaceHandle) and the Windows-11 compositor-clock frame/statistics surface (DCompositionGetFrameId, DCompositionGetStatistics, DCompositionWaitForCompositorClock, DCompositionBoostCompositorClock) — live compositor heartbeat proven pure-FFIdwmapi - DWM composition, blur, thumbnailsdwrite - DirectWrite factory entry point (DWriteCreateFactory): system font enumeration, text layout, glyph metrics, and pure-FFI ClearType/grayscale glyph rasterization over the IDWriteFactory COM vtabledxcore - DXCore adapter-factory entry point (DXCoreCreateAdapterFactory): DXGI-independent GPU & compute-only MCDM adapter enumeration, hardware IDs, memory pools, and capability/attribute queries over the IDXCoreAdapterFactory/List/Adapter COM vtabledxgi - DXGI adapter enumeration, factory creation, debug interface (`CreateDXGIFact