
Bruster
io.github.aliilyas由 GitHub 账号 aliilyas 发布v0.3.2更新于 Oct 29, 2026
Native-webview browser automation: navigate, fill forms, inspect pages, and capture screenshots.
概览
Bruster 是一个本地 MCP 服务器,通过驱动原生 webview 让助手导航页面、填写表单、检查 DOM 并截图。
- 可以做什么
- 导航页面,管理标签页与持久会话
- 检查 DOM 并以文本形式获取页面快照
- 填写表单并点击页面元素
- 截图并保存为文件
- 用内置运行器执行 .bru UI 测试并生成 JSON 报告
- 适用场景
- 适合代理驱动的网页操作、针对本地或测试环境的冒烟测试和可重复的 UI 检查,尤其当你希望使用原生 webview 而非捆绑的 Chromium,且不想安装 Node.js 时。
- 运行要求
- 作为本地进程运行于 macOS、Linux 或 Windows,需要桌面显示环境;Linux 需 WebKitGTK 4.1,无显示时还需 xvfb 和 xauth;Windows 需 WebView2 运行时。可通过安装脚本、发布压缩包或 Docker 镜像安装,镜像以 stdio 启动服务器。未声明任何环境变量或凭据。
安装
在 SourceWeft 中
- 打开 控制台中的 Bruster,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[bruster]
[CI] [Dependency audit] [Cargo deny] [OSV-Scanner] [Trivy] [Release] [Docker Hub] [MIT License] [macOS] [Linux] [Windows] [Documentation]
Bruster is an open-source Rust browser automation tool and Model Context Protocol (MCP) server. Control native webviews from AI agents, Python scripts, or your own test runner through MCP or a JSON-lines API. No Node.js required.
Documentation · UI testing · MCP setup · Compare with Playwright · Benchmarks · Releases
Navigate pages, inspect the DOM, fill forms, take screenshots, and manage tabs
and persistent sessions on macOS (WKWebView), Linux (WebKitGTK), and Windows
(WebView2). Bruster fits native-webview scripts, focused smoke tests, and
agent-driven workflows. Run .bru tests with the built-in runner or use your own.
For AI tools: documentation index · full CLI and API reference.
Demo
[Bruster filling a form and taking a screenshot through MCP]
Scripted MCP session with real WebKitGTK captures. Try the demo.
Install
On macOS and Linux:
Linux also needs WebKitGTK 4.1. On Ubuntu or Debian:
Without a desktop display, also install xvfb and xauth.
Other Linux distributions.
On Windows, download an archive from Releases and install the WebView2 runtime.
Docker Hub
The Docker image includes the Linux browser runtime and virtual display for amd64 and arm64:
Starts an MCP server over stdio. Docker client setup.
MCP
Add this server to Claude Desktop's claude_desktop_config.json or Cursor's .cursor/mcp.json:
Use the executable's absolute path if your client cannot find bruster.
Add --visible to watch the browser or --profile ./profile to save cookies and storage.
Setup for other clients and troubleshooting.
JSON lines
Run bruster, then send requests on stdin, waiting for each response before the next request:
Responses carry the matching id; page events also arrive on stdout.
Protocol and API reference.
UI tests with the .bru DSL
Bruster includes a compact, line-oriented DSL for repeatable UI checks. It handles
browser startup, waits, assertions, and failure evidence so you can focus on the
flow being tested. Write a login.bru file:
Run bruster test login.bru. Assertions retry until their deadline; each test
gets a fresh browser and profile. Failures include source lines, screenshots,
and page diagnostics. The runner writes a JSON report and returns a nonzero exit
code on failure. No Node.js or Python is needed to run tests.
Use before_each for shared setup and --base-url to run the same tests against
another environment. The time savings are in authoring and debugging tests.
The runner is available in source builds from main; older release binaries may
not include bruster test yet.
UI testing guide · Beginner course: 20 lessons · DSL reference · Runnable local example · Website and demo example tests · Web automation testing tutorial
Limitations
Bruster uses WKWebView on macOS, WebKitGTK on Linux, and WebView2 on Windows. Input events are synthetic; cross-origin iframes and OS-level controls aren't supported. See the full limitations when choosing a browser backend.
Development
Build with cargo build --release --locked.
See Contributing for dependencies, tests, and documentation changes.
Dependency security checks: daily RustSec, cargo-deny, OSV-Scanner, and Trivy scans, plus Dependabot and Socket setup.
License
来源:README.md,提交 681f63e
工具
0版本历史
1- v0.3.2最新Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分