Skip to main content
Glama

Chronos-Browser

A fast, lightweight browser and Model Context Protocol (MCP) server written in Rust. It eliminates token waste from vision/screenshot models by parsing web pages into a compact, numeric-referenced semantic tree.

Highlights

  • Pure Rust Engine: Communicates directly with Chromium over WebSocket Chrome DevTools Protocol (CDP). No Node.js or Playwright needed.

  • Zero-Screenshot Workflow: Turns pages into actionable element maps ([1] Button "Submit", [2] Input "Username"). Actions target numeric IDs directly.

  • Dialog & Overlay Isolation: Automatically detects modal dialogs and presents modal controls first so agents never click occluded backdrop elements.

  • Table & Content Parsing: Extracts tables and key content into structured text alongside controls.

  • Session Persistence: Stores sessions in named profiles (~/.local/share/chronos-browser/profiles/). Log in once (e.g. WhatsApp Web QR code in headful mode), then automate headlessly.

  • Memory Footprint: Capped V8 heaps and resource limits keep active RAM around 350 MB PSS. sleep mode drops idle RAM to ~3.8 MB with instant wake.

Related MCP server: Web Agent MCP

Installation

Requires Rust 1.75+ and a Chromium binary (google-chrome, chromium, or brave).

cargo build --release
cargo install --path .

CLI Usage

Run directly from your shell:

# Open page headlessly and print snapshot
chronos-browser open "https://news.ycombinator.com"

# Open in visible window with named profile (for QR scan or manual login)
chronos-browser open "https://web.whatsapp.com" --profile whatsapp --headful

# List saved persistent profiles
chronos-browser profiles

MCP Configuration

Antigravity (~/.gemini/config/mcp_config.json)

{
  "mcpServers": {
    "chronos-browser": {
      "command": "chronos-browser",
      "args": ["mcp"]
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "chronos-browser": {
      "command": "chronos-browser",
      "args": ["mcp"]
    }
  }
}

Verification

cargo test --lib --tests

Available Tools

20 tools
browser_batchC

Execute a sequence of browser actions in a single rapid batch to eliminate round-trip overhead.

Inputs: actions (required), tab_index. Returns: result

browser_clickC

Click an element identified by CSS selector, text, XPath, aria-label, title, or placeholder.

Inputs: target (required), tab_index, wait_navigation. Returns: result

browser_close_tabC

Close a specific tab or the current tab.

Inputs: tab_index. Returns: result

browser_evaluateC

Evaluate arbitrary JavaScript expression in the page context.

Inputs: expression (required), tab_index. Returns: result

browser_focusC

Explicitly bring the browser window to the foreground.

Inputs: tab_index. Returns: result

browser_get_contentC

Extract page content in 'markdown', 'text', or 'html' format.

Inputs: format, selector, tab_index. Returns: result

browser_launchB

Launch or verify Chrome browser in the background. Set focus=True only if you explicitly want to bring it to the foreground.

Inputs: url, focus, display. Returns: result

browser_navigateC

Navigate a tab to the specified URL.

Inputs: url (required), tab_index. Returns: result

browser_new_tabC

Open a new browser tab with optional URL.

Inputs: url. Returns: result

browser_press_keyC

Press a keyboard key (e.g. Enter, Escape, Tab, Backspace, ArrowDown).

Inputs: key (required), tab_index. Returns: result

browser_run_codeC

Execute Python automation code directly inside the resident browser daemon.

Inputs: code (required), tab_index. Returns: result

browser_screenshotC

Capture a screenshot of the active page and save it as PNG.

Inputs: full_page, tab_index, output_path. Returns: result

browser_scrollC

Scroll page up, down, top, bottom, or by specific pixel amount.

Inputs: direction, tab_index. Returns: result

browser_statusB

Check browser status, active tabs, and CDP connection state.

Inputs: no named parameters. Returns: result

browser_stopB

Gracefully stop the background browser process.

Inputs: no named parameters. Returns: result

browser_switch_tabC

Switch active focus to a specific tab index.

Inputs: tab_index (required). Returns: result

browser_tabsB

List all open tabs.

Inputs: no named parameters. Returns: result

browser_typeC

Type or fill text into an input, textarea, or contenteditable element.

Inputs: text (required), target (required), tab_index, clear_first, +1 more. Returns: result

browser_waitA

Wait for seconds (e.g. '2.5') or wait for a CSS/text selector to appear.

Inputs: target_or_seconds (required), tab_index. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools map to a distinct browser action (navigate, click, type, scroll, screenshot, etc.), and the descriptions differentiate the tricky pair browser_evaluate (JS in page context) vs browser_run_code (Python in the daemon). Minor overlaps remain: browser_status also reports active tabs, browser_tabs lists them, and browser_focus vs browser_launch(focus=True) can be confused with browser_batch abstracting over multiple actions.

    Naming Consistency5/5

    Every tool uses the same browser_ prefix followed by a concise snake_case verb or verb_noun (browser_navigate, browser_new_tab, browser_close_tab). There are no camelCase or style deviations, making the set highly predictable.

    Tool Count4/5

    20 tools is on the heavy side, but for a full browser automation daemon each tool covers a real capability (lifecycle, navigation, input, extraction, tab management, waiting, plus batch/JS/Python escape hatches). It is slightly over the comfortable 3-15 band but not gratuitously bloated.

    Completeness4/5

    Core lifecycle, navigation, interaction, extraction, screenshotting, tab management, and waiting are all covered, with evaluate/run_code/batch acting as powerful escape hatches. Gaps exist for history actions (back/forward/reload), hover/select/file-upload, and cookie/storage management, but most are workaroundable via browser_evaluate.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a headless Chromium browser through MCP, enabling AI agents to browse JavaScript-rendered pages, search the web, capture screenshots, extract tables and data, and run stateful multi-step interactions like clicking, typing, and form submission.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP-compatible AI agents to navigate, interact with, and automate websites through an anti-detection browser backend, offering 47 tools for tabs, navigation, interaction, observation, search, downloads, sessions, profile reuse, and batch workflows.
      468 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP-compatible AI agents to navigate, interact with, and automate the web through an anti-detection browser toolset, supporting multi-tab workflows, session persistence, downloads, extraction, and token-efficient accessibility snapshots.
      468 npm
      MIT