unbrowser
unbrowser
에이전트를 위한 저렴한 브라우저 패스. 단일 네이티브 바이너리. Chrome 불필요.
공식 MCP 레지스트리 ID: mcp-name: io.github.protostatis/unbrowser
unbrowser는 에이전트를 위한 상태 저장형, 비시각적 웹 런타임입니다. curl/WebFetch와 실제 브라우저 사이에 위치하며, 쿠키와 DOM 상태를 유지하고, 쿼리 가능한 요소 참조를 반환하며, 링크와 HTML 폼을 처리하고, 챌린지 및 SPA 신호를 감지하며, 정적 HTML만으로 부족할 때 제한된 QuickJS 페이지 스크립트를 실행할 수 있습니다.
기본
navigate는 빠른 정적/SSR 패스입니다. 제한된 QuickJS 실행이 필요할 때만exec_scripts: true를 설정하세요. 무거운 SPA, 픽셀, V8 충실도, 확장 기능, 대화형 안티봇 챌린지는 실제 Chrome 계층에서 처리해야 합니다.
설치 전에 라이브 공개 웹 데모를 사용해 보세요. 이 데모는 페이지에 표시된 고정된 공개 소스 세트만 허용합니다. 개인 데이터, 쿠키, 인증된 작업을 보내지 마세요. 공개 스모크 테스트를 위해 공유 Streamable HTTP MCP 엔드포인트가 https://unchainedsky.com/unbrowser-mcp에 제공됩니다. 프로덕션 세션은 로컬 설치를 사용해야 합니다.
unbrowser는 접근이 허용된 사이트, 계정, 데이터에만 사용하세요. 챌린지 감지와 쿠키 가져오기는 접근 제어나 사이트 약관을 우회할 권한을 부여하지 않습니다. 세션 쿠키는 자격 증명으로 취급하세요. 로컬에 보관하고 승인된 작업 범위로 제한하며 공개 데모로 절대 보내지 마세요.
적절한 계층 선택
필요 사항 | curl / WebFetch | unbrowser | 실제 Chrome |
정적 / SSR HTML | 원시 응답 | 구조화된 BlockMap + DOM 쿼리 | 전체 브라우저 |
쿠키, 링크, HTML 폼 | 직접 구현 | 내장 | 내장 |
클라이언트 측 페이지 스크립트 | ❌ | 제한된 QuickJS, 옵트인 | V8 |
픽셀, Canvas, WebGL, Workers, 확장 기능 | ❌ | ❌ | ✅ |
에이전트 지향 출력 | 직접 파싱 | 요소 참조, 페이지 신호, 구조화된 추출 | 직접 CDP / DOM 파싱 |
대화형 접근 챌린지 | ❌ | 감지 + 중지 또는 에스컬레이션 | 승인된 브라우저 / 사람 확인 |
HTTP만으로는 너무 부족하고 전체 브라우저는 너무 비쌀 때 unbrowser를 사용하세요. 페이지가 Chrome을 필요로 하는 경우, 출력은 존재하지 않는 호환성을 가장하는 대신 에이전트에게 에스컬레이션을 지시합니다.
Related MCP server: Browserbase MCP Server
빠른 시작
Docker — Linux amd64/arm64, ~13 MiB pull
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이며 비루트(non-root)로 실행됩니다. 셸, 패키지 관리자, 영구 상태가 없습니다. 프로덕션에서는 :vX.Y.Z 또는 이미지 다이제스트를 고정(pin)하세요.
Python
pipx install pyunbrowser # recommended on macOS / modern Linux
# or, inside a Python 3.10+ virtual environment:
pip install pyunbrowserfrom 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이고, import와 실행 파일은 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 jar), GET 및 URL 인코딩 POST 폼 제출, 링크, 리디렉션이 세션 내에서 유지됩니다.
페이지 및 챌린지 신호:
density.likely_js_filled,thin_shell,challenge.provider는 에이전트에게 스크립트를 실행할지, 포함된 데이터를 검사할지, 중지할지, 승인된 브라우저 세션으로 에스컬레이션할지 알려줍니다.모든 결과에 포함된 라우팅 보조:
micro_hint(다음의 구체적인 단계 하나),next_tools(순위가 매겨진 후보),avoid(작업할 대상이 없는 도구), 재시도 가능 여부/심각도/증거를 포함한 안정적인escalation분류 체계(challenge,thin_shell,partial_result, …) — 권장 사항은avoid와 모순되지 않습니다.구조화된 헬퍼: 경로 발견, 카드 추출, 테이블 정규화,
text_main, 셀렉터 디버깅이 일반적인 추출 워크플로우를 다룹니다.
스크립트 모드와 에스컬레이션
{"id":1,"method":"navigate","params":{"url":"https://example.com","exec_scripts":true}}exec_scripts: true를 설정하면 인라인 및 외부 스크립트가 제한된 watchdog 아래에서 QuickJS로 실행됩니다. 이는 가벼운 하이드레이션과 fetch로 조회 가능한 데이터를 구체화할 수 있지만, V8이나 렌더링 엔진은 아닙니다. 무거운 React/Vue/Ember 앱은 여전히 빈 셸을 남길 수 있습니다.
허용된 작업에 실제 픽셀, Canvas/WebGL, Workers, 브라우저 확장 기능, V8 호환성, 인증된 프로필 또는 사람의 확인이 필요한 경우 unchainedsky-cli 또는 Unchained으로 에스컬레이션하세요. 사용자가 이미 Chrome에서 승인된 세션을 구축한 경우 cookies_set은 필요한 세션 쿠키를 만료될 때까지 로컬로 가져올 수 있습니다. 이것은 사이트의 통제를 우회할 수 있는 권한이 아닙니다.
문서
필요 사항 | 읽을 자료 |
설치 경로, 세션 CLI, 일회성 CLI, 원시 RPC, MCP, shim, 전체 RPC 테이블 | |
스크립트 호환성, SPA 신호, 챌린지 처리, 승인된 쿠키 인계, 에스컬레이션 | |
배포 및 지원되는 디렉터리 목록 | |
네이티브 바이너리 빌드 |
라이선스
Apache-2.0 — LICENSE를 참조하세요.
Available Tools
32 toolsactivateA
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
Scored across 32 tools
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.
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.
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.
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
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Deterministic Zero-LLM Web Compiler, Scraper, Crawler, and Site Mapper for AI Agents.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseAqualityDmaintenanceA 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.22Apache 2.0
- AlicenseAqualityDmaintenanceEnables 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.14Apache 2.0

Plasmateofficial
AlicenseNot gradedqualityDmaintenanceAgent-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 npmApache 2.0- AlicenseNot gradedqualityBmaintenancethe open automation engine for AI agents. Control live browsers and desktop apps locally with instant execution301 npm3AGPL 3.0