SuperAPIAI Directory

bruster

github.com · AI developer platforms

Bruster is an open-source browser automation tool developed in Rust and also a Model Context Protocol (MCP) server. It lets AI agents, Python scripts, or test runners control a native WebView via MCP or a JSON-lines API, without requiring Node.js. It supports navigating pages, inspecting the DOM, filling out forms, taking screenshots, managing tabs and persistent sessions on macOS (WKWebView), Linux (WebKitGTK), and Windows (WebView2), and provides a .bru DSL test runner.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Bruster is an open-source browser automation tool implemented in Rust, with a built-in Model Context Protocol (MCP) server. Its core purpose is to let AI agents, Python scripts, or custom test runners control a native WebView to perform operations such as web page navigation, DOM inspection, form filling, screenshots, tab management, and persistent sessions. The project emphasizes not requiring Node.js and can run on macOS (WKWebView), Linux (WebKitGTK), and Windows (WebView2).

In terms of main capabilities, Bruster provides two control methods: first, connecting to AI clients via MCP; second, sending requests over standard input/output via the JSON-lines API and receiving responses with matching ids, with page events also output to stdout. It supports navigating pages, inspecting the DOM, filling out forms, taking screenshots, managing tabs, and persistent sessions; use --visible to observe the browser, and use --profile to save profiles and storage.

In terms of usage, macOS and Linux can be obtained via installation methods; Linux requires WebKitGTK 4, and Ubuntu/Debian also need xvfb and xauth installed in environments without a desktop display. On Windows, download the archive from Releases and install the WebView2 runtime. The Docker image includes the Linux browser runtime and a virtual display, supports amd64 and arm64, and can run a stdio-based MCP server. Add the server to Claude Desktop's claude_desktop_config.json or Cursor's .cursor/mcp.json to use it; if the client cannot find bruster, use the absolute path to the executable.

Bruster has a built-in compact, line-oriented .bru DSL for repeatable UI checks. The test runner handles browser startup, waiting, assertions, and failure evidence; assertions are retried until the deadline, each test uses a fresh browser and profile, and on failure it outputs the source line, a screenshot, and page diagnostics, and generates a JSON report, returning a non-zero exit code on failure. You can use before_each for preparation and use --base-url to run the same test against other environments. Note that this runner currently exists in source builds from the main branch; older release binaries may not yet include bruster test.

Applicable scenarios include native WebView scripting, focused smoke tests, and agent-driven workflows. In terms of limitations, input events are synthetic events, and cross-origin iframes and OS-level controls are not supported; when choosing a browser backend, refer to the limitations documentation. To build, use cargo build --release --locked.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools