<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ilyas</title>
    <description>The latest articles on DEV Community by Ilyas (@ilyas_4103f68b4a150ad2abf).</description>
    <link>https://dev.to/ilyas_4103f68b4a150ad2abf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2343225%2F454d6f38-4d32-4da5-b930-39de3fa9ffa2.png</url>
      <title>DEV Community: Ilyas</title>
      <link>https://dev.to/ilyas_4103f68b4a150ad2abf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ilyas_4103f68b4a150ad2abf"/>
    <language>en</language>
    <item>
      <title>Claude Code browser automation with Bruster: a working MCP tutorial</title>
      <dc:creator>Ilyas</dc:creator>
      <pubDate>Tue, 10 Nov 2026 21:03:59 +0000</pubDate>
      <link>https://dev.to/ilyas_4103f68b4a150ad2abf/claude-code-browser-automation-with-bruster-a-working-mcp-tutorial-71d</link>
      <guid>https://dev.to/ilyas_4103f68b4a150ad2abf/claude-code-browser-automation-with-bruster-a-working-mcp-tutorial-71d</guid>
      <description>&lt;p&gt;Want Claude Code to inspect your local website, fill a form, and show you the&lt;br&gt;
result? This walkthrough connects it to &lt;strong&gt;Bruster&lt;/strong&gt;, an open-source Rust browser&lt;br&gt;
controller with a built-in Model Context Protocol (MCP) server.&lt;/p&gt;

&lt;p&gt;The workflow is small enough to reproduce: open a local fixture, inspect its&lt;br&gt;
controls, enter two values, select an option, check the submitted state, and&lt;br&gt;
return a screenshot.&lt;/p&gt;

&lt;p&gt;Bruster uses the platform's native webview. Its server needs no Node.js runtime.&lt;br&gt;
The AI client and browser runtime have their own requirements.&lt;/p&gt;
&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code installed and signed in.&lt;/li&gt;
&lt;li&gt;macOS or Linux for the shell commands below.&lt;/li&gt;
&lt;li&gt;Git and Python 3 to download and serve the example. Python is only the local
HTTP server in this walkthrough; Bruster itself does not require it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Windows is also supported through WebView2. Use the Windows archive and client&lt;br&gt;
configuration in the &lt;a href="https://aliilyas.github.io/bruster/mcp/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=browser-mcp&amp;amp;utm_content=claude-code-platforms" rel="noopener noreferrer"&gt;platform setup guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Install Bruster
&lt;/h2&gt;

&lt;p&gt;On macOS or Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://raw.githubusercontent.com/aliilyas/bruster/main/install.sh &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/.local/bin:$PATH"&lt;/span&gt;
&lt;span class="nb"&gt;command&lt;/span&gt; -v bruster
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Ubuntu or Debian, also install the native browser runtime:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install libwebkit2gtk-4.1-0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a Linux machine without a desktop display:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install xvfb xauth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hidden mode still needs a rendering display. When &lt;code&gt;DISPLAY&lt;/code&gt; is unset, Bruster&lt;br&gt;
tries to start Xvfb automatically.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Serve the example website
&lt;/h2&gt;

&lt;p&gt;In one terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/aliilyas/bruster.git
&lt;span class="nb"&gt;cd&lt;/span&gt; bruster
python3 -m http.server 8765 --bind 127.0.0.1 --directory examples/launch-demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave this terminal running. Open &lt;code&gt;http://127.0.0.1:8765&lt;/code&gt; to check that the&lt;br&gt;
&lt;strong&gt;Browser smoke test&lt;/strong&gt; form loads. The form updates a JSON preview and displays a&lt;br&gt;
local receipt when submitted; it does not send anything to a service.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Register the MCP server with Claude Code
&lt;/h2&gt;

&lt;p&gt;In a second terminal, enter your cloned &lt;code&gt;bruster&lt;/code&gt; directory. Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport stdio bruster -- &lt;span class="s2"&gt;"$HOME/.local/bin/bruster"&lt;/span&gt; --mcp --quiet
claude mcp get bruster
claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The default registration scope is local to this project. Using an absolute&lt;br&gt;
executable path avoids differences between your terminal's PATH and the&lt;br&gt;
environment that starts an MCP server.&lt;/p&gt;

&lt;p&gt;Inside Claude Code, run &lt;code&gt;/mcp&lt;/code&gt; and check Bruster's connection. The &lt;code&gt;--&lt;/code&gt; separates&lt;br&gt;
Claude's options from the executable and arguments for Bruster.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Give Claude an observable task
&lt;/h2&gt;

&lt;p&gt;Paste this prompt into Claude Code:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use Bruster to open &lt;a href="http://127.0.0.1:8765" rel="noopener noreferrer"&gt;http://127.0.0.1:8765&lt;/a&gt;. Inspect the form before interacting&lt;br&gt;
with it. Enter Ada Lovelace as the name and Bruster as the project. Select&lt;br&gt;
Form submission and enable Include screenshots. Read the live JSON preview&lt;br&gt;
and confirm those four values. Click Create smoke test. Read the confirmation&lt;br&gt;
and verify that it names Bruster and Ada Lovelace and says Screenshots: on.&lt;br&gt;
Return a screenshot of the result. Report any failed check.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The useful part is the verification: ask the agent to read the resulting state,&lt;br&gt;
not just report that it clicked a button.&lt;/p&gt;

&lt;p&gt;The browser tools support this sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;navigate → snapshot → fill_form → text → click → text → screenshot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude may choose a different combination of tools. The expected form state is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ada Lovelace"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"project"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bruster"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"workflow"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"forms"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"screenshots"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The receipt heading should be &lt;code&gt;Smoke test created for Bruster&lt;/code&gt;. Its details&lt;br&gt;
include &lt;code&gt;Ada Lovelace&lt;/code&gt;, &lt;code&gt;Form submission&lt;/code&gt;, and &lt;code&gt;Screenshots: on&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fthi30rtge31xqbcits4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fthi30rtge31xqbcits4q.png" alt="Bruster's native-webview form after submission" width="800" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This reference image comes from the repository's scripted MCP demo on&lt;br&gt;
WebKitGTK. It shows an actual browser capture; it is not a Claude conversation&lt;br&gt;
recording. The &lt;a href="https://github.com/aliilyas/bruster/tree/main/launch" rel="noopener noreferrer"&gt;demo transcript and reproduction steps&lt;/a&gt;&lt;br&gt;
document the captured build and tool calls.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. Watch the browser or retain a session
&lt;/h2&gt;

&lt;p&gt;To watch the native window, replace the registration with one that adds&lt;br&gt;
&lt;code&gt;--visible&lt;/code&gt; after &lt;code&gt;--mcp&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp remove bruster
claude mcp add --transport stdio bruster -- &lt;span class="s2"&gt;"$HOME/.local/bin/bruster"&lt;/span&gt; --mcp --quiet --visible
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart Claude Code after changing the registration. Visible mode needs a&lt;br&gt;
desktop session.&lt;/p&gt;

&lt;p&gt;For cookies and storage that persist between runs, add&lt;br&gt;
&lt;code&gt;--profile "$HOME/.local/share/bruster/claude-demo"&lt;/code&gt; to the server arguments.&lt;br&gt;
This creates a dedicated Bruster profile; it does not attach to your everyday&lt;br&gt;
browser's existing login session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude cannot start Bruster&lt;/td&gt;
&lt;td&gt;Confirm &lt;code&gt;command -v bruster&lt;/code&gt;; use its absolute path in the registration.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux cannot load the browser&lt;/td&gt;
&lt;td&gt;Install WebKitGTK 4.1; on a display-less machine, install both Xvfb and xauth.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The local page cannot be reached&lt;/td&gt;
&lt;td&gt;Keep the Python server running. The MCP process must be able to reach the same machine's loopback address.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The connection fails without details&lt;/td&gt;
&lt;td&gt;Remove &lt;code&gt;--quiet&lt;/code&gt; temporarily so native runtime errors appear on stderr.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The form does not accept an interaction&lt;/td&gt;
&lt;td&gt;Bruster uses synthetic DOM events. Check whether the application requires trusted browser input or a cross-origin iframe.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Where this fits
&lt;/h2&gt;

&lt;p&gt;Bruster is useful for native-webview workflows and focused checks driven by an&lt;br&gt;
agent. Its engines are WKWebView on macOS, WebKitGTK on Linux, and WebView2 on&lt;br&gt;
Windows; WebView2 is Chromium-based. Cross-origin iframe interaction and&lt;br&gt;
OS-level controls are outside its supported surface.&lt;/p&gt;

&lt;p&gt;For a selectable multi-engine browser workflow, evaluate Playwright MCP as&lt;br&gt;
well. For a full regression suite, compare test-runner requirements separately&lt;br&gt;
from the MCP interface.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try the same flow on one form in your application.&lt;/strong&gt; Start with its visible&lt;br&gt;
result and work backward to the actions needed to produce it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aliilyas.github.io/bruster/mcp/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=browser-mcp&amp;amp;utm_content=claude-code-next" rel="noopener noreferrer"&gt;MCP setup, client configurations, and troubleshooting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aliilyas/bruster" rel="noopener noreferrer"&gt;Bruster source and releases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aliilyas.github.io/bruster/compare/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=browser-mcp&amp;amp;utm_content=claude-code-compare" rel="noopener noreferrer"&gt;Browser-tool comparison&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Project-maintainer tutorial, prepared with AI assistance. The form workflow is&lt;br&gt;
reproducible with the included scripted MCP client.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>tutorial</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Bruster: A Faster-Starting, Lighter Browser for AI Agents</title>
      <dc:creator>Ilyas</dc:creator>
      <pubDate>Tue, 03 Nov 2026 20:07:48 +0000</pubDate>
      <link>https://dev.to/ilyas_4103f68b4a150ad2abf/bruster-a-faster-starting-lighter-browser-for-ai-agents-568d</link>
      <guid>https://dev.to/ilyas_4103f68b4a150ad2abf/bruster-a-faster-starting-lighter-browser-for-ai-agents-568d</guid>
      <description>&lt;p&gt;I've been building &lt;strong&gt;&lt;a href="https://github.com/aliilyas/bruster" rel="noopener noreferrer"&gt;Bruster&lt;/a&gt;&lt;/strong&gt; - an open-source browser automation tool written in Rust, designed for AI agents and scripts.&lt;/p&gt;

&lt;p&gt;The goal is simple: fast startup, lower memory usage, and a straightforward way to control a real browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Native webviews, built-in MCP
&lt;/h2&gt;

&lt;p&gt;Bruster uses your platform’s native webview:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; WKWebView&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; WebKitGTK&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; WebView2&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The controller runs without Node.js and exposes two interfaces: &lt;strong&gt;MCP&lt;/strong&gt; for compatible AI clients and &lt;strong&gt;JSON lines over stdin/stdout&lt;/strong&gt; for scripts.&lt;/p&gt;

&lt;p&gt;You can connect it to Claude Code, Cursor, or another MCP-compatible client.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can an agent do?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Navigate websites and inspect page content.&lt;/li&gt;
&lt;li&gt;Click elements, fill forms, and submit them.&lt;/li&gt;
&lt;li&gt;Capture screenshots.&lt;/li&gt;
&lt;li&gt;Manage tabs and persistent sessions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1mjbtwpgl57j88mh0g01.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1mjbtwpgl57j88mh0g01.gif" alt="Bruster inspecting and filling a form through MCP" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The demo is a scripted MCP session showing navigation, form interaction, and screenshots.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How much faster and lighter?
&lt;/h2&gt;

&lt;p&gt;Here’s one published Linux benchmark comparing Bruster with &lt;strong&gt;agent-browser 0.40.0 using full Chrome&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric, median&lt;/th&gt;
&lt;th&gt;Bruster&lt;/th&gt;
&lt;th&gt;agent-browser&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Launch to first loaded page&lt;/td&gt;
&lt;td&gt;219 ms&lt;/td&gt;
&lt;td&gt;799 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total idle memory, PSS&lt;/td&gt;
&lt;td&gt;256 MiB&lt;/td&gt;
&lt;td&gt;523 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That run used Ubuntu 24.04 and ten fresh sessions per configuration against local test pages. Memory includes browser helper processes and Bruster’s Xvfb display; Xvfb startup is excluded from timing.&lt;/p&gt;

&lt;p&gt;These are workload-specific results across different browser engines. The &lt;a href="https://aliilyas.github.io/bruster/benchmarks/runs/852486658ea5336c158a06fac49332706e2e3c39-40658586503-1/" rel="noopener noreferrer"&gt;full benchmark report&lt;/a&gt; includes additional tools, workloads, and methodology.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it with Claude Code
&lt;/h2&gt;

&lt;p&gt;Install on macOS or Linux, then register the MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/aliilyas/bruster/main/install.sh | sh

claude mcp add bruster &lt;span class="nt"&gt;--&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.local/bin/bruster"&lt;/span&gt; &lt;span class="nt"&gt;--mcp&lt;/span&gt; &lt;span class="nt"&gt;--quiet&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Linux requires WebKitGTK 4.1, plus &lt;code&gt;xvfb&lt;/code&gt; and &lt;code&gt;xauth&lt;/code&gt; when running without a desktop display. &lt;a href="https://aliilyas.github.io/bruster/mcp/" rel="noopener noreferrer"&gt;Platform setup and other MCP clients&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Then try:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use Bruster to open &lt;a href="https://example.com" rel="noopener noreferrer"&gt;https://example.com&lt;/a&gt;, inspect the page, and take a screenshot.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Current limitations include synthetic input events and no cross-origin iframe access.&lt;/p&gt;

&lt;p&gt;Bruster is &lt;strong&gt;MIT licensed&lt;/strong&gt;, and feedback is welcome—especially on real-world agent workflows and MCP compatibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/aliilyas/bruster" rel="noopener noreferrer"&gt;https://github.com/aliilyas/bruster&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>opensource</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
