Get the FREE Ultimate OpenClaw Setup Guide →

browser-use-rs

A Rust library for browser automation via Chrome DevTools Protocol with built-in AI integration through Model Context Protocol (MCP)

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio bb-fat-browser-use-rs cargo run --bin mcp-server

How to use

The browser-use-rs project provides a built-in MCP server written in Rust that enables AI-driven browser automation via the Chrome DevTools Protocol (CDP). It exposes a lightweight, thread-safe API for controlling a Chromium-based browser from within an MCP workflow, with capabilities such as navigating pages, clicking elements, sending input, taking screenshots, and extracting DOM information. The server integrates an MCP interface so agents can reason about and orchestrate browser actions using the Model Context Protocol, enabling AI-powered automation tasks without relying on Node.js.

To use the server, start the MCP server binary provided by the project. By default you can run it in headless mode with the built-in mcp-server binary, or pass a flag to run with a visible browser window. Once running, clients can send MCP-shaped requests to perform actions like navigation, interaction, DOM extraction, and content capture. Typical workflows involve launching a session, performing a sequence of actions (navigate, click, type), and then extracting content or DOM data for analysis by the AI agent.

How to install

Prerequisites:

Installation steps:

  1. Ensure Rust is installed and updated:
  2. Clone the repository (or download the source):
    • git clone <repository_url>
    • cd browser-use-rs
  3. Build and run the MCP server:
    • cargo build --release
    • cargo run --bin mcp-server
    • To run with a visible browser window: cargo run --bin mcp-server -- --headed

Notes:

  • The browser-use-rs crate is a pure Rust implementation with no Node.js dependency. You’ll interact with the mcp-server binary directly.
  • If you are integrating it into an MCP automation workflow, ensure your environment can reach the server process and that Chrome/Chromium is installed and accessible.

Additional notes

Environment tips:

  • Ensure Chrome/Chromium is installed and reachable by the Rust process.
  • If running headless, make sure the display/server environment supports headless Chrome.
  • The MCP server exposes actions such as navigate, click, input, screenshot, and extract_dom. Use extract_dom to obtain DOM data for AI reasoning and element indexing.
  • If you encounter port or binding issues, verify any firewall rules or port configurations used by the MCP framework.
  • No npm packages are required for this server since it is a pure Rust implementation.

Related MCP Servers

Sponsor this space

Reach thousands of developers