https://github.com/BB-fat/browser-use-rs
A Rust library for browser automation via Chrome DevTools Protocol with built-in AI integration through Model Context Protocol (MCP)
https://github.com/BB-fat/browser-use-rs
browser-use mcp
Last synced: 3 months ago
JSON representation
A Rust library for browser automation via Chrome DevTools Protocol with built-in AI integration through Model Context Protocol (MCP)
- Host: GitHub
- URL: https://github.com/BB-fat/browser-use-rs
- Owner: BB-fat
- License: mit
- Created: 2025-11-06T12:17:55.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-11-14T12:18:52.000Z (4 months ago)
- Last Synced: 2025-11-14T14:19:46.051Z (4 months ago)
- Topics: browser-use, mcp
- Language: Rust
- Homepage:
- Size: 151 KB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp - BB-fat/browser-use-rs - based browser automation MCP server ☆`19` (Browser Automation / Browser Tools)
- awesome-mcp-servers - BB-fat/browser-use-rs - Rust製で依存関係ゼロの軽量ブラウザ自動化 MCP サーバー。 (スター履歴 / 📂 <a name="browser-automation"></a>ブラウザ自動化)
README
# browser-use
[中文文档](README_CN.md)
A lightweight Rust library for browser automation via Chrome DevTools Protocol (CDP).
## ✨ Highlights
- **Zero Node.js dependency** - Pure Rust implementation directly controlling browsers via CDP
- **Lightweight & Fast** - No heavy runtime, minimal overhead
- **MCP Integration** - Built-in Model Context Protocol server for AI-driven automation
- **Simple API** - Easy-to-use tools for common browser operations
## Installation
```bash
cargo add browser-use
```
## Quick Start
```rust
use browser_use::browser::BrowserSession;
// Launch browser and navigate
let session = BrowserSession::launch(Default::default())?;
session.navigate("https://example.com", None)?;
// Extract DOM with indexed interactive elements
let dom = session.extract_dom()?;
```
## MCP Server
Run the built-in MCP server for AI-driven automation:
```bash
# Headless mode
cargo run --bin mcp-server
# Visible browser
cargo run --bin mcp-server -- --headed
```
## Features
- Navigate, click, input, screenshot, extract content
- DOM extraction with indexed interactive elements
- CSS selector or numeric index-based element targeting
- Thread-safe browser session management
## Requirements
- Rust 1.70+
- Chrome or Chromium installed
## Acknowledgments
This project was inspired by and references [agent-infra/mcp-server-browser](https://github.com/bytedance/UI-TARS-desktop/tree/main/packages/agent-infra/mcp-servers/browser).
## License
MIT