Skip to main content
Glama

Auto Browser

CI License: MIT MCP Server Local First Glama Open in GitHub Codespaces

Auto Browser demo

AIエージェントに、人間が介在可能な本物のブラウザを与えましょう。

Auto Browserは、承認されたワークフローのためのMCPネイティブなブラウザ制御プレーンです。MCPクライアント、LLMエージェント、およびオペレーターに対して、人間によるテイクオーバー(介入)、再利用可能な認証プロファイル、承認機能、監査証跡、ローカルファーストなデプロイメントを備えた共有Playwrightブラウザを提供します。

対応環境:

  • Claude Desktop

  • Cursor

  • HTTPまたはstdioで通信可能なあらゆるMCPクライアント

  • curlベースの制御を好む場合の直接REST呼び出し

Auto Browserを選ぶ理由

  • 最初からMCPネイティブ。 ブラウザのインターフェースは、後付けではなく、MCPサーバーとしてパッケージ化されています。

  • Webが不安定な時の人間によるテイクオーバー。 noVNCにより、人が介入する必要がある際に、同じライブセッションをそのまま利用できます。

  • 一度ログインすれば、再利用可能。 名前付き認証プロファイルを保存し、ログイン済みの状態で新しいセッションを再開できます。

  • デフォルトでローカルファースト。 Docker Composeを使用して自分のマシンでフルスタックを実行するか、Codespacesを使用して素早くホスト型デモを試すことができます。

  • 安全レールを内蔵。 承認機能、オペレーターID、PII(個人識別情報)のスクラブ、Witnessレシート、コンプライアンス・テンプレートが製品のインターフェースの一部として組み込まれています。

Related MCP server: Browser-Use MCP Server

リリースハイライト (v1.0.2)

  • フレームワークのセキュリティ更新(FastAPIとStarletteを現在のパッチ適用済みラインに固定)

  • より安全なエラー境界(ブラウザアクション、CDP、OCR、メッシュ、ワークフロー、トンネル、ソーシャル、共有トークンの各インターフェース全体)

  • レート制限の強化(バケット制限とハッシュ化されたオペレーター識別子による)

  • ホストおよびパスポリシーの厳格化(本番環境の ALLOWED_HOSTS、認証プロファイルのパス、アップロードルートに対して)

  • 1.0プラットフォームインターフェース(署名付きメッシュ委任、ワークフロールート、/dashboard、noVNCテイクオーバー、MCPトランスポート、監査証跡、レディネスチェックを含む)

リリース履歴の詳細は CHANGELOG.md を参照してください。

適した用途

  • 社内ダッシュボードおよび管理ツール

  • オペレーター支援によるQAおよびブラウザデバッグ

  • 一度ログインして後で再利用するアカウントワークフロー

  • 人間がフローを復旧させる必要があるような不安定なサイト

  • HTML取得だけでなく、本物のブラウザを必要とするMCP駆動のエージェントワークフロー

対象外の用途

  • ステルスやアンチボット対策

  • CAPTCHAの解決

  • 不正なスクレイピングやアカウント自動化

  • 欺瞞的なID生成やバイパスツール

提供機能

ブラウザ制御

オペレーターの安全性

デプロイメントと統合

スクリーンショット、DOM要約、OCR抜粋、タブ制御、ダウンロード、ネットワーク検査を備えたPlaywrightベースのセッション

承認ゲート、オペレーターIDヘッダー、監査イベント、PIIスクラブ、Witnessレシート、保護プロファイル

HTTP経由のMCP、バンドルされたstdioブリッジ、REST API、Docker Compose、Codespaces、認証プロファイル、オプションのセッションごとの分離

クイックスタート

git clone https://github.com/LvcidPsyche/auto-browser.git
cd auto-browser
docker compose up --build

デフォルト設定でのローカル開発にはこれで十分です。

オプション:

cp .env.example .env
make doctor

通常のターミナルから、ローカルのDockerアクセス権限とlocalhostソケットを開く権限がある状態で make doctor を実行してください。

アクセス先:

  • APIドキュメント: http://127.0.0.1:8000/docs

  • オペレーターダッシュボード: http://127.0.0.1:8000/dashboard

  • ビジュアルテイクオーバー: http://127.0.0.1:6080/vnc.html?autoconnect=true&resize=scale

公開ポートはすべてデフォルトで 127.0.0.1 にバインドされます。

Codespacesで試す

Open in GitHub Codespaces

Codespacesはスタックを自動的にプロビジョニングします。ダッシュボードとnoVNCタブは通常90秒以内に準備が整います。

最初の便利なデモ

このリポジトリで最も重要なフローは以下の通りです:

  1. セッションを作成する

  2. サイトが人間を必要とする場合は手動でログインする

  3. セッションを名前付き認証プロファイルとして保存する

  4. その認証プロファイルから新しいセッションを開く

  5. 再認証なしで作業を継続する

ここから始めてください:

最小限のセッション作成:

curl -s http://127.0.0.1:8000/sessions \
  -X POST \
  -H 'content-type: application/json' \
  -d '{"name":"demo","start_url":"https://example.com"}' | jq

最小限の観測:

curl -s http://127.0.0.1:8000/sessions/<session-id>/observe | jq

MCPクライアント

Auto Browserは以下を公開しています:

  • http://127.0.0.1:8000/mcp にあるHTTP MCPエンドポイント

  • http://127.0.0.1:8000/mcp/tools および http://127.0.0.1:8000/mcp/tools/call にある便利なエンドポイント

  • scripts/mcp_stdio_bridge.py にあるバンドルされたstdioブリッジ

デフォルトのMCPツールプロファイルは curated であり、ブラウザのインターフェースをコンパクトに保つことでツール選択を最適化しています。内部ツールをすべて使用したい場合は、以下を設定してください:

MCP_TOOL_PROFILE=full

生のツール呼び出しの例:

curl -s http://127.0.0.1:8000/mcp/tools/call \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
    "name":"browser.create_session",
    "arguments":{
      "name":"demo",
      "start_url":"https://example.com"
    }
  }' | jq

クライアント設定ガイド:

セキュリティとコンプライアンス

実際のプライベートデプロイメントでは、少なくとも以下を設定してください:

APP_ENV=production
API_BEARER_TOKEN=<strong-random-secret>
REQUIRE_OPERATOR_ID=true
AUTH_STATE_ENCRYPTION_KEY=<44-char-fernet-key>
REQUIRE_AUTH_STATE_ENCRYPTION=true
REQUEST_RATE_LIMIT_ENABLED=true
METRICS_ENABLED=true

COMPLIANCE_TEMPLATE は起動時に事前設定された姿勢を適用できます:

テンプレート

認証暗号化

オペレーターID

PIIスクラブ

分離

最大セッション期間

HIPAA

必須

必須

全レイヤー

docker_ephemeral

4時間

PCI-DSS

必須

必須

全レイヤー

docker_ephemeral

1時間

SOC2

-

必須

ネットワーク + テキスト

共有

24時間

GDPR

-

-

全レイヤー

共有

24時間

すべてのテンプレートでアップロードの承認が必要です。HIPAA、SOC2、PCI-DSS はWitnessレシートも有効にします。起動時に適用されたポリシーが /data/compliance-manifest.json に書き込まれます。

例:

COMPLIANCE_TEMPLATE=HIPAA docker compose up

デプロイメントの詳細、ホストされたWitnessノート、CLI認証モード、リバースSSHガイダンスについては、以下を参照してください:

アーキテクチャの概要

flowchart LR
    User[Human operator] -->|watch / takeover| noVNC[noVNC]
    LLM[OpenAI / Claude / Gemini] -->|shared tools| Controller[Controller API]
    Controller -->|Playwright protocol| Browser[Browser node]
    noVNC --> Browser
    Browser --> Artifacts[(screenshots / traces / auth state)]
    Controller --> Artifacts
    Controller --> Policy[Allowlist + approval gates]

主要コンポーネント:

  • browser-node/: Chromium、Xvfb、x11vnc、noVNCを実行

  • controller/: FastAPIコントローラー、MCPトランスポート、ポリシーレール、オーケストレーションエンドポイントを公開

  • data/: ランタイムアーティファクト、認証状態、承認、監査ログ、オプションのCLIキャッシュを保持

  • scripts/: doctor、スモークテスト、ブリッジ、リリースチェック用のローカルヘルパーを格納

リポジトリガイド

パス

内容

controller/

コントローラーAPI、MCPトランスポート、テスト、パッケージング

browser-node/

ブラウザランタイムおよびPlaywright接続レイヤー

examples/

コピー&ペースト可能なフローとMCPクライアント設定

integrations/langchain/

LangChain、LangGraph、CrewAIアダプター

docs/

アーキテクチャ、デプロイメント、強化、起動ドキュメント

scripts/

doctor、スモークハーネス、stdioブリッジ、認証ヘルパー

ops/

サポートサービステンプレートおよび運用資産

一般的なコマンド

コマンド

目的

make help

利用可能なリポジトリコマンドを一覧表示

make lint

アプリ、テスト、ヘルパースクリプトに対してRuffチェックを実行

make test

Docker内でコントローラーテストを実行

make test-local

ホストのPython 3.10+でコントローラーテストを実行

make doctor

ローカルのレディネススモークテストを実行

make release-audit

より完全なリリース検証パスを実行

make smoke-isolation

セッションごとのDocker分離を検証

make smoke-reverse-ssh

リバースSSHのリモートアクセスを検証

ドキュメントマップ

やりたいこと

ここから開始

システムの全体像を理解する

docs/architecture.md

Claude DesktopまたはCursorを接続する

docs/mcp-clients.md

curlベースの例を実行する

examples/README.md

信頼できるホストにデプロイする

docs/deployment.md

本番環境の制約を確認する

docs/production-hardening.md

リリース履歴を調査する

CHANGELOG.md

プロジェクトの今後の方向性を確認する

ROADMAP.md

貢献

協力していただける場合は、以下から始めてください:

Auto Browserが役に立った場合は、スターを付けていただけると他の人が見つけやすくなります。

Available Tools

20 tools
browser.activate_tabA

Bring one tab to the foreground so subsequent observations and actions target it. Tab indexes come from browser.list_tabs. Returns the activated index, the updated session summary, and the current tab list.

Inputs: index (required), session_id.

browser.close_sessionB
Destructive

Close a session and finalize its trace/artifacts.

Inputs: session_id, approval_id, workflow_profile.

browser.close_tabB
Destructive

Close one tab index if more than one tab is open.

Inputs: index (required), session_id, approval_id, workflow_profile.

browser.create_sessionA

Create a new browser session and optionally navigate to a start URL.

Inputs: name, start_url, totp_hosts, user_agent, +9 more.

browser.eval_jsA

Execute a JavaScript expression in the current page context and return the result. Every call needs operator approval for that exact expression: the first call returns status approval_required with an approval_id; retry with approval_id once it is approved. Prefer find_elements, get_html or observe for reading the page — they need no approval.

Inputs: expression (required), session_id, timeout_ms, approval_id, +1 more.

browser.execute_actionA

Execute one browser action (navigate, click, hover, type, press, select_option, scroll, …) in a session, using the same action schema the agent planner emits. Actions are policy-checked and audited, and governed actions may require a granted approval_id. Call browser.observe first to get targetable element IDs and selectors. Returns the action's verification (what changed) and an observation of the page after it (up to 20 interactables).

Inputs: action (required), detail, session_id, approval_id, +1 more.

browser.find_elementsA

Find elements either by CSS selector or by a text/regex query across the page's text content. selector mode returns matching elements' text, href, value, bounding box, and visibility -- useful before clicking or scraping multiple items. query mode (set query, optionally regex and context) returns the matched text plus surrounding context for each hit -- a cheap way to locate a specific string on the page without a full observe.

Inputs: limit, query, regex, context, +2 more.

browser.fork_sessionA

Fork a session: snapshot its cookies, storage state, and current URL, then create a new independent session with that state. Useful for branching workflows or running parallel variants. Without start_url, a page that is no URL to open (blank, data:, Chrome's error page) forks onto a blank page. Counts as a new session: needs MAX_SESSIONS of at least 2.

Inputs: name, start_url, session_id, user_agent, +2 more.

browser.get_htmlA
Read-onlyIdempotent

Read the current page: its serialized DOM (the whole document, not just the viewport), or with text_only=true its visible text — the cheapest way to read a page's content. Returns up to max_chars (default 20,000) from offset; when truncated is true, call again with offset=next_offset for the rest. On Chrome's error page for a navigation the pre-request gate stopped, blocked_navigation says what was stopped and why.

Inputs: offset, max_chars, text_only, session_id.

browser.get_sessionA
Read-onlyIdempotent

Get the full record for one browser session by ID: the live session summary (status, current page, tabs) when the session is active, or the persisted session record when it has been closed. Use browser.list_sessions to discover session IDs.

Inputs: session_id.

browser.list_auth_profilesA
Read-onlyIdempotent

List reusable saved auth profiles that can be loaded into a new session.

Inputs: no named parameters.

browser.list_downloadsA
Read-onlyIdempotent

List files captured from browser downloads for one session.

Inputs: session_id.

browser.list_sessionsA
Read-onlyIdempotent

List live and persisted browser sessions, one reference each (id, name, status, live, current page, takeover URL). browser.get_session returns a full record.

Inputs: no named parameters.

browser.list_tabsA
Read-onlyIdempotent

List currently open tabs/pages for one session.

Inputs: session_id.

browser.observeA
Read-only

Capture the current browser observation: interactables, tabs, console, and a perception summary. Presets: 'text' — no screenshot or OCR: interactables, accessibility tree and the first 2,000 characters of page text; for text-only models. 'fast' — screenshot only, returned as an image, no text/accessibility extraction; for vision models. 'normal' (default) — text plus a screenshot URL and OCR. 'rich' — normal with twice the interactables and 4,000 characters of text. To read a whole page, use browser.get_html with text_only=true. On Chrome's error page for a navigation the pre-request gate stopped, blocked_navigation says what was stopped and why.

Inputs: limit, detail, preset, session_id.

browser.read_downloadA

Read a downloaded file as text (CSV, JSON, TXT, HTML, ...), by download_id from browser.list_downloads or, if omitted, the latest completed download. Paged like browser.get_html. Binary files (PDF, XLSX, images) are refused with their artifact URL. With PII scrubbing on, the text is scrubbed; pii_scrub says whether it was and how many redactions were made.

Inputs: offset, max_chars, session_id, download_id.

browser.request_human_takeoverC

Ask for a human to take over the shared browser desktop.

Inputs: reason, session_id, approval_id, workflow_profile.

browser.save_auth_profileB

Save the current session storage state into a reusable named auth profile.

Inputs: profile_name (required), session_id, approval_id, workflow_profile.

browser.screenshotA
Read-only

Capture the current viewport and return it as an image (plus its artifact URL), without the full observe payload.

Inputs: label, session_id.

browser.wait_for_selectorA
Read-only

Wait for a CSS selector to reach a specific state (visible, hidden, attached, detached). Returns when the condition is met or raises on timeout.

Inputs: selector (required), state, session_id, timeout_ms.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target clearly distinct concerns (sessions, tabs, observation, downloads, auth profiles). The read-side tools (observe, screenshot, get_html, find_elements) overlap somewhat, but each description explicitly scopes itself and cross-references the alternatives, so an agent can reliably choose.

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern under a uniform browser. namespace (list_tabs, close_tab, create_session, read_download). No mixed conventions or casing.

    Tool Count4/5

    20 tools is on the heavy side, but the server legitimately spans sessions, tabs, observation, downloads, and auth profiles, and each tool maps to a real operation. Slightly over the comfortable range but not padded.

    Completeness4/5

    The session lifecycle (create/list/get/close/fork), tab management, observation, navigation/actions, downloads, and auth profiles are all covered. Minor gaps like deleting saved auth profiles or an explicit new-tab tool are workable around via execute_action.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      F
      maintenance
      This server provides cloud browser automation capabilities using Browserbase, Puppeteer, and Stagehand. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a cloud browser environment.
      1,158 npm
      3,397
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables LLMs like Claude to navigate the web through Puppeteer-based tools and Steel. Based on the Web Voyager framework, it provides tools for all the standard web actions click clicking/scrolling/typing/etc and taking screenshots.
      16
      58
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol (MCP) integration that provides Claude Desktop with autonomous browser automation capabilities. This agent enables Claude to interact with web content, manipulate DOM elements, execute JavaScript, and perform API requests.
      13
      43
      TypeScript
      Mozilla Public 2.0