Skip to main content
Glama

unbrowser

エージェント向けの低コストなブラウザパス。ネイティブバイナリ1つ。Chrome不要。

unbrowser MCP server

公式MCPレジストリID: mcp-name: io.github.protostatis/unbrowser

unbrowser は、エージェント向けのステートフルで非視覚的なWebランタイムです。curl/WebFetch と本物のブラウザの間に位置します。CookieとDOM状態を保持し、クエリ可能な要素参照を返し、リンクとHTMLフォームを処理し、チャレンジおよびSPAシグナルを検出し、静的HTMLでは不十分な場合に制限付きQuickJSページスクリプトを実行できます。

デフォルトの navigate は高速な静的/SSRパスです。 制限付きQuickJS実行が必要な場合にのみ exec_scripts: true を設定してください。重いSPA、ピクセル、V8の忠実性、拡張機能、インタラクティブなアンチボットチャレンジは、本物のChrome層に属します。

インストール前にライブの公開Webデモをお試しください。このデモはページに表示されている固定された公開ソースセットのみを受け付けます。プライベートデータ、Cookie、認証付きタスクを送信しないでください。公開スモークテスト用に、共有のStreamable HTTP MCPエンドポイントがhttps://unchainedsky.com/unbrowser-mcpで利用できます。本番セッションではローカルインストールを使用してください。

unbrowser は、アクセスを許可されているサイト、アカウント、データにのみ使用してください。 チャレンジ検出とCookieインポートは、アクセス制御やサイトの利用規約を回避する 許可を与えるものではありません。セッションCookieは認証情報として扱ってください。 ローカルに保持し、認可されたタスクに限定し、公開デモに送信しないでください。

適切なティアを選ぶ

ニーズ

curl / WebFetch

unbrowser

Real Chrome

静的 / SSR HTML

生のレスポンス

構造化されたBlockMap + DOMクエリ

フルブラウザ

Cookie、リンク、HTMLフォーム

自前

組み込み

組み込み

クライアントサイドのページスクリプト

❌

制限付きQuickJS、オプトイン

V8

ピクセル、Canvas、WebGL、Worker、拡張機能

❌

❌

✅

エージェント向け出力

自前のパース

要素参照、ページシグナル、構造化抽出

自前のCDP / DOMパース

インタラクティブなアクセスチャレンジ

❌

検出 + 停止またはエスカレーション

認可済みブラウザ / 人間による確認

HTTPだけでは不十分で、フルブラウザを使うにはコストがかかりすぎる場合に unbrowser を使用してください。ページがChromeを必要とする場合、出力は実際には持っていない互換性を偽るのではなく、エージェントにエスカレーションするよう伝えます。

Related MCP server: Browserbase MCP Server

クイックスタート

Docker — Linux amd64/arm64、プルサイズ約13 MiB

docker pull ghcr.io/protostatis/unbrowser:latest

# One-shot navigation
docker run --rm ghcr.io/protostatis/unbrowser:latest \
  navigate https://example.com --json

# Default mode: MCP over stdio
docker run --rm -i ghcr.io/protostatis/unbrowser:latest

このイメージはdistrolessで、非rootとして実行されます。シェル、パッケージマネージャー、永続状態はありません。本番環境では :vX.Y.Z またはイメージダイジェストで固定してください。

Python

pipx install pyunbrowser   # recommended on macOS / modern Linux
# or, inside a Python 3.10+ virtual environment:
pip install pyunbrowser
from unbrowser import Client

with Client() as ub:
    ub.navigate("https://news.ycombinator.com")
    for link in ub.query(".titleline > a")[:3]:
        print(link["text"], link["attrs"]["href"])

macOSでは、/usr/bin/python3 は3.9であるためwheelをインストールできません。pipx またはHomebrewのPythonを使用してください。PyPIディストリビューションは pyunbrowser ですが、インポート名と実行可能ファイル名は引き続き unbrowser です。

MCP

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

最小限のサーフェス: "--mcp-profile", "minimal" を追加すると、navigate/query/extract/help のみが公開され、エージェントは help(topic) で残りを発見できます。Pythonラッパーには、unbrowser-smart コンソールスクリプトとして3ツールのスマートサーバー(search/open/help)が同梱されています。

{
  "mcpServers": {
    "unbrowser": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "ghcr.io/protostatis/unbrowser:latest"
      ]
    }
  }
}

Cargo、リリースアーカイブ、ソースからのビルド、永続的なシェルセッション、生のJSON-RPC、すべてのMCPオプションについては、インストールおよびインターフェースリファレンス を参照してください。

エージェントが得られるもの

  • navigate はBlockMapを返します: ページタイトル、ランドマーク、見出し、インタラクティブ要素、密度シグナル、ASCIIアウトライン。サイズはページに依存します。固定トークンを約束するものではなく、計画用に構造化されています。

  • 安定した要素参照(e:142): 要素を一度クエリすると、HTMLを再パースせずに click、type、submit を実行できます。

  • ステートフルなCookieとフォーム: Cookieジャー、GETおよびURLエンコードされたPOSTフォーム送信、リンク、リダイレクトがセッション内で保持されます。

  • ページおよびチャレンジシグナル: density.likely_js_filled、thin_shell、challenge.provider は、エージェントにスクリプトを実行するか、埋め込みデータを検査するか、停止するか、認可されたブラウザセッションにエスカレーションするかを伝えます。

  • すべての結果に付随するルーティング支援: micro_hint(次に実行すべき具体的な単一ステップ)、next_tools(ランク付けされた候補)、avoid(操作対象のないツール)、そして retryable/severity/evidence を備えた安定した escalation 分類(challenge、thin_shell、partial_result、…)— 推奨事項は avoid と矛盾しません。

  • 構造化ヘルパー: ルート発見、カード抽出、テーブル正規化、text_main、セレクターデバッグが一般的な抽出ワークフローをカバーします。

スクリプトモードとエスカレーション

{"id":1,"method":"navigate","params":{"url":"https://example.com","exec_scripts":true}}

exec_scripts: true を設定すると、インラインおよび外部スクリプトが制限付きウォッチドッグの下でQuickJSで実行されます。これにより、軽量なハイドレーションやfetchで取得可能なデータが実体化されることがありますが、V8でもレンダリングエンジンでもありません。重いReact/Vue/Emberアプリでは、空のシェルが残る可能性があります。

許可されたタスクで実際のピクセル、Canvas/WebGL、Worker、ブラウザ拡張機能、V8互換性、認証済みプロファイル、または人間による確認が必要な場合は、unchainedsky-cli または Unchained にエスカレーションしてください。ユーザーがChromeで認可されたセッションをすでに確立している場合、cookies_set は必要なセッションCookieを有効期限までローカルにインポートできます。これはサイトの制御を回避するライセンスではありません。

ドキュメント

ニーズ

参照先

インストールパス、セッションCLI、ワンショットCLI、生のRPC、MCP、シム、完全なRPCテーブル

使用法リファレンス

スクリプト互換性、SPAシグナル、チャレンジ処理、認可されたCookieの引き渡し、エスカレーション

互換性とエスカレーション

ディストリビューションとサポート対象のディレクトリ一覧

ディストリビューションのメモ

ネイティブバイナリのビルド

ビルド手順

ライセンス

Apache-2.0 — LICENSE を参照してください。

Available Tools

32 tools
activateA

Higher-level action probe. Clicks an element by ref or visible action text, settles, and returns before/after URL, BlockMap/page_model summaries, network counts, hashes, and classification: navigated, dom_changed, network_changed, no_effect, or unsupported.

Inputs: ref, text.

blockmapA

Recompute the BlockMap for the current page. Use after eval'd JS or click/type modifies the DOM. Same shape as the inline blockmap from navigate.

Inputs: no named parameters.

bodyA

Return the raw HTML body of the last navigation. Use as a fallback when the BlockMap or selectors aren't enough — but the response can be large (often 100KB+).

Inputs: no named parameters.

clickA

Dispatch a click event on the element at ref (e.g. e:142, returned from query). If the element is and the click was not preventDefault'd, auto-follows the href via navigate (returns the full navigation result with new BlockMap). Otherwise returns {ok, ref, tag, follow: null}.

Inputs: ref (required).

cookies_clearA

Drop all cookies from the jar.

Inputs: no named parameters.

cookies_getA

Return all cookies currently in the jar as [{name, value, domain, path, secure, http_only}]. Use this to export cookies to disk for a later session.

Inputs: no named parameters.

cookies_setA

Add cookies to the session jar. Each item is an object {name, value, domain, path?, secure?, http_only?, url?} or a raw Set-Cookie string. Used to replay clearance cookies (e.g. PerimeterX _px3) lifted from a real Chrome session, bypassing bot detection without running the challenge JS.

Inputs: cookies (required), url.

discoverA

High-level cheap-first information discovery. Optionally navigates to a URL, runs light JS, merges DOM routes, inferred form/query URLs, and network JSON routes into one ranked graph with provenance plus route-level escalation hints. Use this when the task is to find where information lives before extracting it.

Inputs: url, goal, debug, limit, +3 more.

evalA

Run arbitrary JavaScript in the embedded QuickJS runtime against the current page's parsed DOM. Returns the JSON-stringified result. Power tool — prefer query/text/blockmap when the CSS selector engine can express what you need. Canonical param is code; raw JSON-RPC also accepts script or expression aliases and errors if no code-like param is present.

Inputs: code (required).

extractA

Auto-strategy structured-data extraction. Tries JSON-LD (schema.org) → NEXT_DATA → Nuxt → JSON-in-script (Magento, Shopify, BigCommerce custom-typed scripts) → OpenGraph/meta → microdata → text_main fallback, returns the highest-confidence hit as {strategy, confidence, data, tried}. Use this as the one-shot 'give me the data, you figure out how' call when you don't want to plan the strategy yourself. Pass strategy='json_ld' (or any of the names above) to force a specific extractor.

Inputs: strategy.

extract_cardsA

Auto-detect repeated article/card/product/course/listing blocks and return normalized items [{title, price, condition, url, availability, snippet, meta, image_alt, score}]. Prefer this over extract_list when the page has semantically ambiguous recipe, course, product, or model cards and you do not already know field selectors. Optional selector scopes detection to known card nodes; kind can bias scoring (recipe, course, product, listing).

Inputs: kind, limit, selector.

extract_listA

Pull a repeated card pattern into [{...}, {...}]. Right tool for HN-style lists, search results, product grids — collapses per-site eval boilerplate. Field spec shapes: 'css selector' (text content), 'css selector @attr' (attribute), or ['css selector', '@attr'] (tuple form). If a sub-selector returns null, the field value is null.

Inputs: fields (required), item_selector (required), limit.

extract_tableA

Pull a into {headers, rows, row_count}. Headers come from ... if present, else the first 's cells. Each subsequent 's cells become a row dict keyed by header (or 'col_N' if no header for that column). Right tool for pricing tables, specs, finance/listings tables — saves writing the per-cell mapping eval.

Inputs: selector (required).

find_textA

Find localized text matches and return [{ref, tag, attrs, before, match, after, text}]. Ranks article/main/content matches above nav/header/footer boilerplate.

Inputs: text (required), exact, limit, selector, +1 more.

network_extractA

Parse captured JSON/API/network responses into semantic objects with fields, scores, matched query terms, and capture/path provenance. Use after navigate or activate when network_stores shows JSON/GraphQL/NDJSON captures and raw body_preview is too noisy.

Inputs: host, limit, query, types, +1 more.

network_storesA

Return content-bearing fetch/XHR responses captured during navigate, ranked by likely content value. SPAs often keep their data in API responses (JSON, GraphQL, NDJSON, Next/Nuxt route data) that are cleaner than the rendered DOM — this tool surfaces them directly. Each entry has capture_id, URL, status, content-type, body_preview (truncated to 256 KB), body_bytes (full size), body_truncated flag, navigation_id, and a heuristic score. Bodies for trackers/ads/CSS/HTML/media are NOT captured. The navigate result already contains a top-5 summary scoped to that navigation; use this tool to get more entries, filter by host, or pull captures from a different navigation.

Inputs: host, limit, nav_id.

network_stores_clearA

Drop all captured network responses from the session's network store. Use this between unrelated navigations if you don't want earlier captures showing up in later network_stores calls.

Inputs: no named parameters.

page_modelA

Render the current page into semantic, task-discoverable JSON objects. Reconstructs page structure as search_form, nav_link, article_card, course_card, model_card, product_card, table, answer_block, and limitation objects with actions, normalized fields, goal-based scoring, and provenance. Prefer this as the first planning tool after navigate when raw links/text are too wide.

Inputs: goal, limit, types.

queryA

Run a CSS selector against the current page's parsed DOM. Returns matching elements as [{ref, tag, attrs, text, text_chars, text_truncated}]. Element refs (e:NN) are stable handles for use with click/type/submit. Selector engine supports tag, id, class, attribute matchers (=, ^=, $=, *=, ~=), all four combinators (descendant, >, +, ~), pseudo-classes (:first/last/nth-child including An+B formulas, :first/last/nth-of-type, :only-child/of-type), :not(), and :has().

Inputs: selector (required).

query_debugA

Diagnose why a CSS selector did or did not match. Returns matched_count, sample matches, DOM summary counts, selector hints (top tags/classes/data attrs/ids), and actionable hints for selector_miss, thin_shell, or embedded_json. Use this when query() returns [] and you need to distinguish a bad selector from an empty/browser-rendered DOM.

Inputs: selector (required), limit.

query_textA

Find elements by visible text content. Returns the smallest/deepest element whose textContent matches the needle, with chrome (header/nav/footer/aside) skipped. Anchor-promotion: a span/strong/etc. inside an resolves to the anchor (so click() targets the actionable element). Right tool when CSS selectors are unstable (React-rendered pages with hashed class names) but the visible label is reliable — e.g. find a 'Sign in' button without knowing its class.

Inputs: text (required), exact, limit, selector.

report_outcomeA

Bind a task outcome (success/failure/quality) to a previous navigation_id from a navigate() call. Used by the policy framework's outcome protocol — see docs/probabilistic-policy.md §4.5. v0 emits an outcome_reported NDJSON event for the navigation; no posterior updates yet. Drivers should call this once per agent task so future Bayesian phases (B/D-2) can attribute extraction success/failure to specific policy decisions.

Inputs: success (required), navigation_id (required), error, quality, +2 more.

route_discoverA

Find page-owned navigation/search routes for a goal. Returns ranked visible links, forms with controls/query_url previews, and inferred URLs derived from page-owned routes plus goal terms. Use before guessing URLs manually.

Inputs: goal, limit.

settleA

Drain the JS event loop: alternately runs queued microtasks (Promise resolutions) and fires expired setTimeout/setInterval callbacks, sleeping to the next deadline when only timers remain. Returns when the queue is empty OR max_ms elapses OR max_iters iterations complete. Defaults: max_ms=2000, max_iters=50. Use after seeding the DOM (or after eval'd code that schedules timers) to let pending callbacks run.

Inputs: max_ms, max_iters.

submitA

Submit a form by gathering input/textarea/select values and navigating to the resolved action URL. Supports GET and application/x-www-form-urlencoded POST. Checked checkbox/radio values are serialized; multipart upload forms are not supported.

Inputs: ref (required).

table_to_jsonA

Alias for extract_table with a first-table default. Pulls a table into {headers, rows, row_count}; selector defaults to 'table'. Use this when an agent expects a table-to-JSON convenience tool.

Inputs: selector.

textA

Get the textContent of the FIRST element matching the selector (default: body). Note: on Wikipedia/MDN/news sites, the first is often a hatnote or image caption, not the lead paragraph — prefer text_main for reading the page's primary content.

Inputs: selector.

text_aroundC

Return cleaned surrounding text around an element ref or the best ranked text match. Returns {ref, before, match, after, text}.

Inputs: ref, text, selector, context_chars.

text_cleanA

Return chrome-stripped, JSON-stripped, whitespace-collapsed text from a selector or the best content root. Drops script/style/noscript/svg and page chrome (nav/header/footer/aside) plus obvious hidden widgets and repeated boilerplate.

Inputs: selector, max_chars.

text_mainA

Get the textContent of the page's main content area, excluding chrome (header/nav/footer/aside). Tries , then [role=main], then a single , then falls back to the longest non-chrome subtree. Use this for reading article body / docs page / blog post content.

Inputs: no named parameters.

typeA

Set the value of an input/textarea (referenced by ref) and dispatch input + change events. Use before submit on form fields.

Inputs: ref (required), text (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 32 tools

    Disambiguation2/5

    Several tools overlap heavily: text, text_main, text_clean, find_text, and query_text all retrieve text in similar ways; extract_table/table_to_json is a pure alias; discover/route_discover and click/activate also have unclear boundaries. The descriptions are detailed, but an agent could easily select the wrong tool among the text and extraction families.

    Naming Consistency3/5

    All names are readable snake_case, but conventions are mixed: single-word verbs/nouns (body, text, query, click), noun-first compounds (cookies_set, network_stores_clear), and special forms (table_to_json) coexist. The naming is predictable within families but not consistently verb_noun across the whole set.

    Tool Count2/5

    32 tools exceeds the heavy threshold, and several entries are redundant or near-duplicates, such as table_to_json being an explicit alias for extract_table and the overlapping text and extraction tools. The broad scope explains some of the count, but the set would be stronger with fewer, more distinct tools.

    Completeness4/5

    The core lifecycle is well covered: navigate, query DOM, extract structured data, interact via click/type/submit, inspect network captures, and manage cookies. Minor gaps exist, such as no wait-for-selector, iframe handling, or navigation history, but agents can work around these with eval, settle, and the existing extraction tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots without requiring screenshots or visually-tuned models.
      22
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Enables cloud browser automation through Browserbase and Stagehand, allowing LLMs to interact with web pages, take screenshots, extract data, and perform automated actions with support for proxies, stealth mode, and parallel sessions.
      14
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Agent-native headless browser for AI agents. Converts web pages to a Semantic Object Model (SOM) instead of raw HTML — 17x average token reduction across real-world sites (up to 117x on complex pages). Native MCP server with fetch_page, extract_text, extract_links, and full browser automation. No API key required.
      53 npm
      Apache 2.0