browserless-mcp
OfficialBrowserless MCP Server
Browserless.io용 MCP(Model Context Protocol) 서버 — Browserless 스마트 스크래퍼 API를 Claude Desktop, Cursor, VS Code, Windsurf와 같은 LLM 클라이언트에 노출합니다.
빠른 시작
browserless.io에서 API 토큰을 받고(무료 티어 사용 가능), MCP 클라이언트를 호스팅 서버에 연결하세요:
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp?token=your-token-here"
}
}
}로컬 설치가 필요 없습니다 — 클라이언트별 스니펫은 구성을 참조하세요.
Related MCP server: Pinchtab MCP Wrapper
도구
도구 | 설명 |
| 단일 웹페이지를 스크레이핑하여 콘텐츠를 markdown 또는 HTML로 반환합니다. JavaScript가 많은 페이지와 봇 방지 조치를 자동으로 처리합니다. 여러 페이지에 걸친 콘텐츠는 |
| Browserless를 사용해 웹을 검색하고 선택적으로 각 결과를 스크레이핑합니다. 지역 타게팅과 시간 필터를 지원하는 웹, 뉴스, 이미지 검색을 제공합니다. |
| 웹사이트의 모든 URL을 발견하고 매핑합니다. 사이트맵과 링크 추출을 통해 스캔합니다. 선택적으로 제목과 설명을 포함한 URL을 반환합니다. 사이트 감사와 콘텐츠 발견에 유용합니다. |
| 웹사이트를 크롤링하여 발견된 모든 페이지를 스크레이핑합니다. 깊이 제어, 경로 필터링, 사이트맵 전략, 구성 가능한 스크레이핑 옵션을 지원합니다. 각 페이지의 스크레이핑된 콘텐츠와 메타데이터를 반환합니다. |
| 모든 URL에 대해 Lighthouse 감사를 실행합니다. 접근성, 모범 사례, 성능, PWA, SEO에 대한 점수와 지표를 반환합니다. 선택적으로 카테고리로 필터링하거나 성능 예산을 지정할 수 있습니다. |
| Browserless 클라우드에서 사용자 정의 Puppeteer JavaScript를 실행합니다. 함수는 |
| Browserless |
| ReAct 루프를 통해 지속적인 브라우저 세션을 구동합니다. 페이지 스냅샷, 계획, 일괄 상호작용(클릭, 입력, 스크롤, evaluate 등) 및 다시 스냅샷을 수행합니다. 스냅샷에서 파생된 ref 기반 선택기를 사용하며, 다중 탭 워크플로, 스크린샷, 캡차 해결, 라이브 URL, 파일 업로드/다운로드를 지원합니다. 캡처된 다운로드는 자동으로 핸들로 표시되며, 바이트가 컨텍스트에 들어가지 않습니다. |
| 복잡한 페이지 메커니즘(shadow DOM, 쿠키 동의, 모달, 캡차, 동적 콘텐츠, 스냅샷 누락, 스크린샷, 탭)을 위한 온디맨드 레시피를 로드합니다. |
| 현재 토큰에 저장된 인증 프로필을 쿠키 및 오리진 개수와 함께 나열합니다. 다른 도구에 |
| 현재 토큰의 계정 정보(플랜, 단위 잔액, 청구 기간, API 키 이름)를 읽습니다. API 토큰 값은 절대 반환하지 않습니다. |
| 요청 및 단위 소비량(성공, 오류, 시간 초과, 대기열, 최대 동시성, 캡차, 프록시 바이트와 단위)을 읽습니다. 선택적으로 특정 API 키로 범위를 제한할 수 있습니다. |
| 계정의 세션(현재 실행 중인 브라우저, 전용 워커의 영구 세션, 기록된 세션 리플레이, 1Password 자격 증명 통합)을 검사합니다. 또한 렌더링에 네트워크가 필요 없는 완전히 독립적인 rrweb 플레이어 페이지로 리플레이를 다운로드합니다( |
| Browserless의 최근 요청 기록(시도한 내용, 실패 여부, 중단 이유, 소요 시간, 비용)을 읽습니다. Browserless 쪽에서 실패한 실행을 진단하는 도구입니다. 사용 가능한 기간은 플랜에 따라 다릅니다. |
스킬
이 서버에는 스킬(Skills) 내장 라이브러리가 포함되어 있습니다. 에이전트가 까다로운 페이지 메커니즘을 처리하기 위해 로드할 수 있는 온디맨드 레시피입니다. 스킬은 트리거가 발생하면(예: 에이전트가 쿠키 배너를 만남) browserless_agent 응답에 자동으로 주입되며, browserless_skill 도구를 통해 수동으로 로드할 수도 있습니다.
스킬 | 출처 | 목적 |
| shadow root를 통한 깊은 선택자와 iframe 타게팅. | |
| 공급업체별 닫기 레시피(OneTrust, Cookiebot, Didomi, TrustArc 등). | |
| 대화상자, 경고 대화상자 및 오버레이 닫기 버튼 휴리스틱을 닫는 방법. | |
|
| |
| async/AJAX/SPA 콘텐츠에 적합한 | |
| 잘리거나 빈 스냅샷과 이미지로 렌더링된 콘텐츠 처리. | |
| 스크린샷과 스냅샷을 각각 언제 사용할지, 범위와 형식 선택. | |
| 다중 탭 워크플로와 |
스킬을 명시적으로 로드하려면:
{
"method": "tools/call",
"params": {
"name": "browserless_skill",
"arguments": { "id": "cookie-consent" },
},
}리지덴셜 프록시 (browserless_agent)
browserless_agent에 최상위 proxy 객체를 전달하여 세션을 리지덴셜 IP로 라우팅하세요. 대상 사이트가 데이터센터 트래픽을 IP로 차단할 때 사용합니다.
{
"method": "tools/call",
"params": {
"name": "browserless_agent",
"arguments": {
"method": "goto",
"params": { "url": "https://example.com" },
"proxy": {
"proxy": "residential",
"proxyCountry": "us",
"proxySticky": true,
},
},
},
}필드 | 참고 |
|
|
| ISO-2 국가 코드( |
| 공백을 밑줄로 바꾼 미국 주 이름( |
| 도시 대상. 유료/엔터프라이즈 플랜 전용 — 자격이 없는 토큰은 401을 받습니다. |
| 기본 WebSocket이 열려 있는 동안 안정적인 IP를 유지합니다. 재연결(유휴 연결 끊김, 네트워크 일시 장애, 브라우저 충돌) 시 새 sticky id와 새 IP가 할당됩니다. |
|
|
| 명명된 프리셋(예: |
| 자체 업스트림 사용(byo), 예: |
참고:
proxyCountry/proxyState/proxyCity/proxySticky/proxyLocaleMatch/proxyPreset을 사용하려면proxy: "residential"또는externalProxyServer가 설정되어야 합니다. MCP는 유효성 검사 시 이 조합을 거부합니다. 설정하지 않으면 API가 자동으로 무시합니다.
proxy 객체는 세션 생성 시 한 번만 읽힙니다. 이를 변경하려면 close를 호출하고 새 세션을 시작하세요 — 에이전트 클라이언트는 프록시 지문(proxy fingerprint)을 기준으로 세션을 키잉하므로, 다른 config를 전달하면 새 WebSocket에 연결됩니다.
구성
서버는 https://mcp.browserless.io/mcp에서 호스팅됩니다. 헤더(권장) 또는 ?token= 쿼리 매개변수로 인증하세요.
AI 에이전트를 통해 설치하시나요? 에이전트가 읽을 수 있는 설정 지침은 install.md를 참조하세요.
헤더 사용 (헤더를 지원하는 클라이언트에 권장):
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}URL 쿼리 매개변수 사용 (URL만 허용하는 Claude.ai 사용자 지정 커넥터와 같은 클라이언트용):
https://mcp.browserless.io/mcp?token=your-token-here특정 Browserless 리전 엔드포인트에 연결하려면 x-browserless-api-url 헤더 또는 browserlessUrl 쿼리 매개변수를 추가하세요:
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp",
"headers": {
"Authorization": "Bearer your-token-here",
"x-browserless-api-url": "https://production-lon.browserless.io"
}
}
}
}https://mcp.browserless.io/mcp?token=your-token-here&browserlessUrl=https://production-lon.browserless.io헤더와 쿼리 매개변수가 모두 있는 경우 헤더가 우선합니다.
Claude Desktop
claude_desktop_config.json에 추가하세요:
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp?token=your-token-here"
}
}
}Cursor
Cursor MCP 설정에 추가하세요:
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp?token=your-token-here"
}
}
}VS Code
VS Code 설정(settings.json)에 추가하세요:
{
"mcp": {
"servers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}
}Windsurf
Windsurf MCP 구성에 추가하세요:
{
"mcpServers": {
"browserless": {
"url": "https://mcp.browserless.io/mcp?token=your-token-here"
}
}
}자체 호스팅
서버는 로컬에서도 실행할 수 있습니다 — 폐쇄망(air-gapped) 배포 또는 자체 호스팅 Browserless 인스턴스를 가리킬 때 유용합니다. 이 저장소를 클론하고 Docker 이미지를 빌드하세요:
docker build -f docker/Dockerfile -t browserless-mcp .
docker run \
-e BROWSERLESS_TOKEN=your-token \
-e BROWSERLESS_API_URL=https://your-browserless-instance.example.com \
-p 8080:8080 \
browserless-mcp그런 다음 위와 동일한 헤더/쿼리 매개변수 인증을 사용하여 MCP 클라이언트를 http://localhost:8080/mcp로 지정하세요.
자체 호스팅 환경 변수
변수 | 필수 | 기본값 | 설명 |
| 예 | — | 사용자의 Browserless API 토큰 |
| 아니요 |
| API 엔드포인트(자체 호스팅 Browserless용) |
| 아니요 |
| 계정 API 호스트 — |
| 아니요 |
| 세션 리플레이 아티팩트를 제공하는 오리진입니다. 리플레이 경로는 이 오리진에 대해 검증됩니다. |
| 아니요 |
| 전송 유형: |
| 아니요 |
| HTTP 서버 포트( |
| 아니요 |
| 요청 타임아웃(밀리초) |
| 아니요 |
| 실패한 요청의 최대 재시도 횟수 |
| 아니요 |
| 캐시 TTL(밀리초, 0이면 비활성화) |
| 아니요 | — | Amplitude 프로젝트 API 키. MCP 사용 분석을 전송합니다 — SDK 수명 주기 이벤트와 자체 도구/스킬 이벤트를 포함합니다. |
| 아니요 | 설정 안 됨(전체 표면) | 축소된 디렉터리 준수 표면을 제공합니다. 실패 시 잠금(fails closed): |
MCP 리소스
Resource URI | 설명 |
| 스마트 스크레이퍼 API 문서 |
| 실시간 서비스 상태 |
MCP 프롬프트
Prompt | 설명 |
| 웹페이지를 스크레이핑하고 콘텐츠를 요약합니다 |
| 웹페이지에서 특정 정보를 추출합니다 |
개발
npm install
npm run build
npm test
npm run coverage테스트
테스트 스위트는 Mocha를 Chai 및 Sinon과 함께 사용합니다. 스펙은 test/(test/lib/, test/tools/, test/prompts/, test/resources/, test/integration/)에 코드와 함께 있으며 build/의 컴파일된 출력에 대해 실행됩니다.
npm test— TypeScript를 컴파일하고build/test/아래의 모든*.spec.js를 실행합니다. 외부 서비스나BROWSERLESS_TOKEN은 필요하지 않습니다. API 클라이언트는 스텁 처리됩니다.npm run coverage—package.json에 구성된 임계값(라인 ≥ 80%, 브랜치 ≥ 70%, 함수 ≥ 80%)으로 c8 기반으로 스위트를 실행합니다.
테스트는 Node 24의 Test workflow를 통해 모든 풀 리퀘스트에 대해 자동으로 실행됩니다. PR은 병합되기 전에 스위트를 계속 통과 상태로 유지해야 합니다.
API 토큰
browserless.io에서 API 토큰을 받으세요. 이 토큰은 Browserless API에 대한 모든 요청을 인증합니다.
라이선스
SSPL-1.0
Available Tools
21 toolsbrowserless_accountARead-onlyIdempotentInspect
Read the Browserless account behind the current API token: plan, unit balance, billing period, and the names of the account API keys. Use it to answer "what plan am I on", "how many units are left", or "which keys exist". Read-only, and never returns API token values.
Inputs: action (required), _prompt.
browserless_agentADestructiveInspect
READ CAREFULLY: Execute browser commands in an agent session.
Core Loop (ReAct: Reason → Act → Observe)
Plan + check for a site recipe — restate the goal, decide the target host, then
browserless_skill { site: "<host>" }(see above). Load and follow any matching recipe before writing your own plan. Never jump straight togoto.goto — waits "domcontentloaded"
snapshot — returns interactive + informational elements (button, link, textbox, combobox, checkbox, heading, img+alt) with ref= selectors
Plan all actions from snapshot
Batch execute
Re-snapshot only if page changed
Repeat → close when done
Ending the session (REQUIRED)
One-shot vs. multi-step (session lifetime). Sessions are one-shot by default: when your commands batch and download drain finish, the browser closes and frees its slot. Decide on your FIRST call:
One batch finishes the whole task (e.g.
goto+text/html/evaluateto read something): leave it one-shot; it closes automatically.You must look, then act on what you see — any first batch that ends on a
snapshotso you can plan later clicks/typing: setkeepSessionAlive: trueon that first call. The observe-then-act loop spans calls, so this covers most interactive work.Unsure? Set
keepSessionAlive: true. A kept session still auto-reaps when idle; a wrongly-closed one loses your page, login and progress. After akeepSessionAlive: truecall, pass the returnedsessionIdback on every later call — it stays alive, no need to repeat the flag. SetkeepSessionAlive: falseto force-close even when continuing. Profile creation and attached sessions manage their lifetimes separately.
When a step requires human input or you cannot safely proceed without help, stop browser actions and preserve that session. Use an available human-handoff capability to show the browser with specific instructions, then ask the person to finish the step and reply. Never ask them to paste passwords or verification codes into chat. Wait for confirmed completion before taking a fresh snapshot and continuing in the same browser; do not open a replacement or assume that opening a viewer completed the step.
An open session holds one of the account's concurrent browsers until it idles out — leaving it open is not free, and stacking them starves the next task.
Report the outcome (only if you loaded a site recipe). Near the end of the run, send { method: "reportSkillOutcome", params: { domain: "<host>", task: "<slug>", success: <bool> } } inside commands — where domain/task are the loaded recipe's <host>/<slug> and success is false if a step in this recipe failed as written, even if you finished another way. Cosmetic differences that didn't break a step are still success: true. This refines shared recipes and retires ones that stop working. Send it once, and only when you loaded a recipe — never for a self-planned run. Send it before reportOutcome and any close (close ends the run and anything after it is dropped). When the loaded recipe's footer shows run_id, skill_use_id and loaded_version, include all three exactly as shown; never invent or alter them, and never send attribution_status.
On failure, add one bounded failure_reason: authentication_required (login needed), site_changed (a URL or element no longer matches), blocked (access denied or challenge), timeout (operation timed out), missing_data (required output absent), incorrect_result (output present but wrong), or unknown (cause unclear). For example: { method: "reportSkillOutcome", params: { domain: "example.com", task: "search", success: false, failure_reason: "missing_data" } }. On success, omit failure_reason; success with a failure reason is invalid. Boolean-only legacy reports remain valid; failures default to unknown. These are agent-reported results, not independent validation. Never supply outcome_source: the server assigns provenance. Do not put URLs, secrets, prompts, copied content, or free-form explanations in outcome fields.
Report the outcome after you've seen the results. Once the task is done or you are giving up, and you have seen the final results, send
{ "method": "reportOutcome", "params": { "success": <bool> } }once per task (it costs nothing and is not a page action). Ifsuccessis false, add"reason":blocked_by_site,captcha,login_required,timeout, orother. Kept-alive session: include it in the batch beforeclose, or send it alone beforeclose. One-shot call: send it as its own call with thesessionIdthe one-shot reply gives you, which opens no browser.Kept-alive task complete? Close it. Send
{ "method": "close" }as its own call, as the last thing you do.Ask instead of guessing only when follow-up in the SAME browser is genuinely likely (the user said "then...", you're mid-flow on a logged-in site, or the result invites a next step). Say the browser is still open, ask whether to close it, and close it as soon as they're done.
Never end your reply with a live session and no mention of it. Either it's closed, or you told the user it's open and why.
Site recipes (site-specific, NOT auto-injected) — CHECK FIRST
Many specific sites (marketplaces, gov portals, travel, real-estate, etc.) have a tuned recipe for a given task — proven selectors, API shortcuts, proxy needs, and known gotchas that a from-scratch plan will miss. These are not auto-injected; you must ask for them, and a recipe overrides any plan you'd build yourself (including "just use a prefiltered URL + evaluate").
This is step 0 of every task — do it before your first goto. The moment you know the target host (the user named the site, or you resolved which site to use), call browserless_skill { site: "<host>" } — e.g. { site: "airbnb.com" }. If it lists a recipe matching your task, load it with browserless_skill { id: "<host>/<slug>" } and follow it. Only when there's no match do you plan the steps yourself. Skipping this check on a supported site is a mistake — it's one cheap call.
Proxy (optional)
Proxy config is a top-level proxy object on the tool call — it is applied when the session is opened. NEVER call proxy as a method inside commands — a { method: "proxy", ... } JSON-RPC mutation does NOT change the upstream proxy on an already-open session and will silently no-op.
If there is credible evidence the task needs a proxy, you MUST pass proxy options on the very FIRST call (before any goto/snapshot), because the config is read once at session creation. Credible signals include: the user asks for a specific country/region/locale; the target site is known to geo-restrict or block datacenter IPs (streaming, ticketing, retail, banking, real-estate, news paywalls); a prior attempt returned 403/451/captcha/"unusual traffic"/"access denied"; the user explicitly mentions residential / sticky IP / proxy.
If you already opened a session without a proxy and now realize one is needed, you must close and start a new session with the proxy options set — there is no in-session switch.
Use
proxy: { proxy: "datacenter" }when a lower-cost IP is sufficient. Useproxy: { proxy: "residential" }when the target is known to block datacenter IPs or the cheaper tier still hits a challenge.Inside the object:
proxyCountry: "us"— geo (ISO-2);proxyState/proxyCity(paid plans, 401 otherwise);proxySticky: true— stable IP;proxyLocaleMatch: true— match locale;proxyPreset— residential-only named config;externalProxyServer: "http://u:p@host:port"— bring your own (http(s) only)Geo/sticky/locale options require a built-in proxy tier or
externalProxyServer;proxyPresetrequiresproxy: "residential"
OS persona (optional)
The top-level emulationOs, emulatedDevice, screen, deviceScaleFactor, and deviceSlot options are read once when the session opens. Put them on the very first call, before any goto, then keep using the returned sessionId; close and open a new session to change them.
Reach for emulationOs only when there is evidence of platform fingerprinting: a Cloudflare or similar interstitial that never resolves, a hard block on an otherwise healthy page, or a site known to inspect the operating system. Start with emulationOs: "windows" unless the task or site requires another OS. Use emulatedDevice only with Android; desktop screen, deviceScaleFactor, and deviceSlot refine a desktop persona.
Auth
While secret protection is armed, getTabs exposes only tab IDs and active flags, and switchTab only success and the target ID; neither exposes titles or URLs. Use these to run waitForSelector removal checks in each tab, including hidden filled fields. Recheck new tabs before clearing and return to the destination. Navigation never clears the local guard. A completed redirect permits removal verification without a signed-in marker, not clearing without verification. Unknown or inaccessible secret-bearing surfaces must fail closed; these commands do not certify that arbitrary copied secrets are absent.
For an existing-profile session, set keepSessionAlive: true on the initial call so the browser stays open for the required next-batch saved-login report.
Never log in or register by default. Never invent or assume credentials exist (no "test credentials", no "your account"). If the snapshot contains a sign-in link OR you're about to mention "sign in" / "log in" / "auth required" — even as a suggested option to the user — call browserless_skill { id: "autonomous-login" } first — or { id: "autonomous-registration" } when the task is to create an account / sign up / register —, then follow its gates. The skill decides whether login is appropriate and whether credentials are in scope; do not skip it just because no password field is on the page yet.
After a loadSecret login, snapshot, screenshot, PDF, liveURL, and page-content reads (evaluate/html/text) are subject to capture protection. Navigation alone does not unlock backend captures. Only after the fill completes and secret-bearing content is gone from all tabs, including hidden fields, send { method: "clearSecrets" } before requesting a fresh snapshot or capture. If those conditions cannot be confirmed, do not clear to inspect the page. An accepted clear also invalidates snapshots already in flight; request a new snapshot after unlocking.
Saved-login check (only when the session was opened with profile). After the first batch that loads a page on each site — however you read it (snapshot, text, evaluate, or screenshot) — send { "method": "reportProfileAuthentication", "params": { "checkpointId": "<host>:first-page", "outcome": "<authenticated | login_required | challenge | unknown>", "newLoginActivity": false } } as the FIRST command of your NEXT commands batch, before any login actions; the rest of that batch can continue the task, but not with close. If login activity already occurred on this site, use newLoginActivity: true instead. It defaults to the last active-tab snapshot, so if you have not taken one yet, end that first page-load batch with snapshot; if you used snapshot { targetId } to peek at another tab, repeat that targetId in the report. Report authenticated only when the page shows a signed-in element (account menu, sign-out link, avatar); a 200 page, cookies, or a non-login URL alone is unknown. Report login_required for a sign-in form or wall, challenge for a captcha or verification wall. If you later log in on that site (typed credentials, loadSecret, or the autonomous-login skill), send one more report for that site with "newLoginActivity": true and a new checkpoint label such as "<host>:after-login". It is not a page action, costs nothing, and is allowed right after loadSecret. Never send it on sessions without profile.
Pass sessionId on every follow-up call, including reports and close; the session handle retains the profile, so repeating profile is optional.
Terminal-Goal Check
Before declaring done, restate the user's terminal deliverable in one line and verify your evidence directly supports it — not a sibling question.
Empty-state substitution. An empty/zero/null result from a resource that normally requires auth, scope, or filter context is evidence the precondition wasn't met — not evidence the question is answered. Empty cart while logged out, zero results while geo-restricted, empty inbox while unauthenticated: precondition failure → fix the precondition (often: load autonomous-login), don't return the empty result as the answer.
Multi-step preconditions. When the task names multiple steps ("go to X, then Y, report Z"), evaluate preconditions for the full chain before treating any step as optional. A blocker on step N blocks the whole task even if step 1 returned data.
Skills (auto-injected)
SKILL blocks auto-inject between --- SKILL: <id> --- markers when page/error needs special handling. Read carefully.
Load manually via browserless_skill if suspected but not injected:
autonomous-login— gates, credential rules, MFA/captcha, how to report the outcome (see## Authabove for when to load)autonomous-registration— create-account flows: gates, identity and credential-sink rules, save-first-then-loadSecret password handling, emailed-code branch, how to report the outcomeshadow-dom— deep selectors, iframe targetingcookie-consent— vendor-specific dismiss recipesmodals— closing dialogs and alertdialogscaptchas— thesolvecommand (Cloud only)snapshot-misses— truncated/empty snapshots, image-rendered contentdynamic-content— choosing the rightwait*methodscreenshots— when to screenshot vs. snapshot, scope and format choicesvision-fallback— click by coordinate when the snapshot can't surface an elementtabs— multi-tab workflows, peek-without-switching
Snapshot Rules
Until you snapshot a page, you CANNOT click/type/interact — snapshot first, no exceptions
NEVER guess, assume, or infer selectors — CSS selectors from your training data are wrong. ONLY use ref= / deep-ref= from latest snapshot
Snapshot STALE after: click, goto, select, navigation
Snapshot VALID after: type, hover, scroll, evaluate
Expect new content? → re-snapshot
Element roles in snapshot (link, button, textbox, combobox, checkbox, heading) tell you what each does
Snapshot lines may include
desc="...",action=METHOD URL,autocomplete=..., and intent markers (⚠ destructive,⚠ sign-out,sign-in,reset)Before activating or navigating to a control marked
⚠ destructiveor⚠ sign-out, confirm that the action is actually intended; an unlabeled destructive control is a common trapSnapshots after the first return a diff vs. your previous snapshot: only
+new /~changed /-removed elements, plus a count of unchanged ones omitted. Unchanged elements stay valid — keep using their refs from the earlier snapshot. If that earlier snapshot is no longer in your context (summarized/trimmed away), requestsnapshot { full: true }to get the complete element list again.
Selectors
Use ref= (CSS) or deep-ref= (starts
<) exactly as shown in snapshotExample:
[3] button "Sign In" ref=button#submit→"button#submit"deep-ref for shadow DOM / iframes — see
shadow-domskill
Iframes
Snapshots include a Frames list (cross-origin iframes) when present. Elements inside a frame are tagged [frame#N] and carry a deep-ref=< *url* css selector that already pierces the frame — pass it as-is to click/type/hover/checkbox. No frame switching needed. captcha/payment widgets (reCAPTCHA, hCaptcha, Stripe, Turnstile) show up here. shadow-dom skill auto-loads when frames present.
Tabs
Snapshots include tabs + activeTargetId — no getTabs needed. Multi-tab / snapshot { targetId } in tabs skill (auto-loads when >1 tab).
Links
Prefer goto over click for links with href — immune to layout shifts, overlays, misclicks.
Example: [5] a "About" ref=a[href='/about'] → goto { url: "https://ex.com/about" }
Only click when href is javascript: / # / missing.
Content Extraction
Check in-memory snapshot (text/values already there)
text { selector } — from specific element
evaluate { content } — JS (IIFE):
(() => { return ... })()html { selector } — raw HTML
Files (upload / download)
To download a file, DRIVE THE BROWSER first. Login/cookie-gated or generated downloads often have no directly fetchable URL. Click/goto in the agent and collect the captured artifact, then follow its delivery instructions. NEVER read a file's bytes or base64 into this conversation, and NEVER split/reassemble/inline base64 by hand. That is the wrong tool and will stall.
Upload a local file (stdio):
uploadFile { selector, files: [{ path }] }— the server reads + encodes it only inside the download directory or a directory explicitly allowed by the local operator throughBROWSERLESS_UPLOAD_DIRS. Symlink targets must also be inside an allowed directory. Ask the operator about rejected paths; do not bypass the restriction by reading or moving the file yourself.Upload a local file (HTTP): the server can't read your disk. Use a supported client staging path and its returned handle. Legacy clients permitted to use local authentication can follow the authenticated /upload instructions supplied by the server. Native clients must report unsupported staging rather than read local credentials.
Re-upload something from
getDownloads: pass itshandle(works in both modes).Download: captured files auto-surface as metadata. stdio gives a local path. In HTTP mode, follow the artifact's delivery mode:
mcp-resourcerequires a client/tool/runtime verified to save resource blobs to disk without payloads in model requests; if unavailable or unverified, report unsupported saving without reading the resource. Legacy HTTP delivery retains its authenticated save instructions, usable only where local credential access is permitted. Native delivery never falls back to shell authentication, inline bytes, or source URLs. Both routes authenticate the owner and share single-use consumption; files expire after 15 minutes or session cleanup. Check the saved file exists and its size before claiming success. A transfer failure after consumption does not authorize repeating browser actions to regenerate it.base64
contentis a LAST RESORT — tiny inline data only.Full recipe:
file-transfersskill.
Batching — Maximize Per Call
Plan ALL actions from snapshot before next snapshot.
Process:
Classify actions: safe (type, hover, scroll, evaluate, select, checkbox) vs. page-changing (click, goto)
Batch: safe FIRST → page-changing LAST
For forms: if submit button is in snapshot, batch type + click in one call
Don't batch across navigations
Example form:
{ "commands": [
{ "method": "type", "params": { "selector": "input#email", "text": "j@d.com" } },
{ "method": "click", "params": { "selector": "button#submit" } }
] }Async
After async triggers (search, submit), use wait* before snapshot — waitForResponse best when API URL known. dynamic-content skill auto-loads on timeout. Never evaluate with setTimeout.
Error Recovery
Errors tagged Category: <NAME>:
SELECTOR_MISS — re-snapshot; retry
< selectorif not already deep-refSESSION_LOST — a fresh session was opened automatically; re-goto + snapshot (prior state gone)
UNAUTHORIZED / FORBIDDEN — pick different path
NOT_FOUND — different URL
SERVER_ERROR — backoff, retry once
NAVIGATION_FAILED — verify URL
TIMEOUT — longer wait or different signal
INVALID_PARAMS — fix params (schema authoritative)
UNKNOWN_METHOD — no such method; pick one from the schema
SCRIPT_ERROR — your
evaluatescript threw; page still alive, fix the scriptUNKNOWN — re-snapshot + re-plan
! NOTICE: URL changed cross-origin = prior plan/refs invalid, re-plan.
Never retry same failed action without re-snapshot.
Methods (non-obvious)
goto { url, waitUntil? } — default "domcontentloaded"; prefer over click for links
snapshot { maxElements?, targetId? } — cap 500; targetId peeks non-active tab
evaluate { content } — IIFE only
waitForSelector { selector, timeout? } — set 5000-10000ms
waitForResponse { url?, statuses?, timeout? } — url is glob
"*api/results*"createTab { url?, activate?, waitUntil? } — default activate: true; false = background
loadSecret { ref, selector? } — fills a vault secret server-side (
op://<vault>/<item>/<field>, ormail://<vault>/<inbox item>/otpfor an emailed code); you never see the value; arms capture protection, including snapshots. Navigation alone does not unlock capturessaveSecret { title, username, password, website?, vault? } →
{ ok, ref }or{ ok: false, error, vaults? }— needsintegrationIdon the FIRST call; omitvaultunless the result lists severalclearSecrets {} — lowers capture protection; use only after the fill completes and secret-bearing content is gone from all tabs, including hidden fields, never just after clicking submit. Then request a fresh snapshot.
waitForNavigation/waitForResponse/waitForSelectorare allowed while armed but do not unlock snapshotsclose — own call, NOT batched; only when task complete (premature close discards page state)
liveURL { timeout?, instructions? } — defaults to 300000ms (five minutes); server caps the requested lifetime at your plan's maximum session time and remaining browser time. For a human handoff, pass specific instructions explaining what to do and when to click Done. Interactive links supply generic instructions when omitted; an empty string disables the card and Done button. Set
keepSessionAlive: trueon the handoff call, reuse the returnedsessionId, and close the browser when the overall task finishes. Creating a link does not extend the browser deadline; keeping the browser open remains billed.See schema for: screenshot, solve, back, forward, reload, click, type, select, checkbox, hover, scroll, text, html, waitForNavigation, waitForTimeout, waitForRequest, liveURL, getTabs, switchTab, closeTab
Runtime: LOCAL (stdio)
Before any file transfer, know your mode: this server runs over stdio, on the same machine as your files. To UPLOAD a local file, pass its path to uploadFile (files: [{ path }]). The path and any symlink target must be inside the download directory or a directory the local operator explicitly allowed through BROWSERLESS_UPLOAD_DIRS. Ask the operator about rejected paths; do not read or move the file to bypass the restriction. Do NOT base64 the file or read its bytes into the conversation. DOWNLOADS are saved to local disk; the agent response gives you the path.
Repetition self-check
When a tool response contains REPETITION WARNING, re-read your plan and compare your completed steps with the intended progress. Do not repeat the same batch blindly: choose a materially different approach within the task's constraints, or stop and report what is blocked and what you tried. Repetition is a signal to check progress, not proof of failure; continue a repeated action only when you can identify concrete progress or a task-required reason.
Inputs: os, proxy, method, params, +17 more.
browserless_crawlARead-onlyInspect
Crawl a website and scrape every discovered page using Browserless. Starts from a seed URL and follows links up to a configurable depth. Supports sitemap discovery, path filtering, subdomain handling, and custom scrape options. Returns scraped content (markdown/HTML) for each page along with metadata. Useful for comprehensive site analysis, content extraction, and data gathering.
Inputs: url (required), delay, limit, _prompt, +13 more.
browserless_exportARead-onlyInspect
Export a webpage from a URL via the Browserless /export API. Fetches the URL and returns its content in the native format (HTML, PDF, image, etc.). Automatically detects the content type. Set includeResources=true to bundle all page assets (CSS, JS, images) into a ZIP archive for offline use.
Inputs: url (required), toDisk, _prompt, profile, +5 more.
browserless_functionADestructiveInspect
Execute custom Puppeteer JavaScript code on the Browserless cloud. Your function receives a Puppeteer page object and optional context data.
Set toDisk=true to save any result, including JSON/text, outside the conversation. Native MCP sessions save binary results by default; toDisk=false explicitly requests inline analysis. Saving follows the returned delivery instructions and requires a verified client path.
For inline analysis: What the function returns decides the response:
Bytes (a Uint8Array), e.g.
return await page.screenshot({ type: "jpeg" })orreturn await page.pdf(): the file type is detected from the bytes. PNG/JPEG/WebP → vision content block (~1.5K tokens); MP3/WAV → audio content block; PDF and other files → resource content block (attachment)A string → text
Any other object or array → JSON text. A
{ data, type }wrapper is NOT unwrapped, so wrapped bytes come back as a huge JSON text that fails the limit below
Return the Uint8Array as-is: Buffer is not available inside the function, and a base64 string comes back as text, not an image.
Text responses are capped at 200,000 characters (~50K tokens). Larger text payloads will be rejected — filter or summarize inside your function, or return the raw bytes if you actually meant to return a file.
Useful for complex scraping, form filling, or any browser automation that requires custom code.
Inputs: code (required), toDisk, _prompt, context, +2 more.
browserless_link_checkoutADestructiveInspect
Create, resume, cancel, or report a Stripe Link checkout in the exact active browser session. Create requires the latest browserless_agent sessionId. Pass payment-field deep selectors whenever a card form is shown, including Stripe-hosted checkout; omit them only for a pure Link Pay Token handoff. Resume retrieves and fills only after Link approval; payment credentials never reach this tool.
Inputs: action (required), browser_session_handle (required), cart, step, +8 more.
browserless_link_connectADestructiveInspect
Manage the Browserless Stripe Link wallet. Use action "status" to check availability; it never returns a URL. Use "connect" to mint a Stripe-owned authorization URL to give the user, or "disconnect" to remove the connection. When "status" is not_connected, call "connect" to obtain that URL — the status instruction alone has no link. Never ask the user for raw card details.
Inputs: action (required), _prompt.
browserless_live_urlADestructiveInspect
Create, inspect, or close a live viewer link for an existing browser through REST, without an agent connection. In MCP Apps clients, create displays the viewer inline; other clients receive the viewer URL as JSON. Direct create does not pause automation. Create options default on the server: view-only, jpeg, quality 70, not resizable, browser interface shown. Link lifetime defaults to 15 minutes, capped by your plan's maximum session time and remaining browser time; creating a link does not keep the browser alive. For a human handoff, pass instructions explaining what to do and when to click Done. Interactive creates and handoffs supply a generic instruction when omitted. For create, an empty string disables the card and Done button; view-only creates have no default instructions. Instructions accept a string or an object with layout, format, title, summary, steps, and currentStep. For string instructions use instructionsTitle, steps, currentStep, and instructionsFormat beside instructions. doneLabel, failLabel, and requesterName are always top-level options. Status returns status, reason, interactable, viewerCount, and expiresAt (epoch ms). Ended links remain inspectable until their browser closes; closing an ended link returns not found.
Inputs: action (required), type, steps, _prompt, +16 more.
browserless_logsARead-onlyIdempotentInspect
Read Browserless's own record of the account's recent requests: what was attempted, whether it failed, why it stopped, how long it took and what it cost. This is the tool for diagnosing a run that failed on the Browserless side rather than in your own code. The window available depends on the account plan; the server reports the limit if a range is refused. Read-only. When an inline view can be prepared, MCP Apps clients receive a viewRef; use browserless_show to display the request-log explorer. Its rows and pagination cursors stay in widget-only metadata. Otherwise returns the standard Markdown result.
Inputs: url, limit, order, cursor, +10 more.
browserless_mapARead-onlyInspect
Discover and map all URLs on a website using Browserless. Scans a site via sitemaps and link extraction to find all pages. Returns a list of URLs with optional titles and descriptions. Use the search parameter to order results by relevance to a query. Useful for site audits, content discovery, and building site maps.
Inputs: url (required), limit, search, _prompt, +4 more.
browserless_performanceARead-onlyInspect
Run a Lighthouse performance audit on any URL via the Browserless /performance API. Returns scores and metrics for accessibility, best practices, performance, PWA, and SEO. Optionally filter by category, emulate a mobile or desktop device, supply a custom Lighthouse config, or supply performance budgets. Returns category scores and available Lighthouse lab metrics inline: FCP, LCP, TBT, CLS, Speed Index, initial server response time, and total transfer size. Use these metrics to answer page-speed questions without writing timing scripts. INP is not measured by this navigation audit; TBT is a responsiveness proxy. Saves the full JSON report outside the conversation. Follow its delivery instructions to save locally and inspect only the audits you need. Note: audits can take 30s–120s depending on the site. In clients with inline widgets, returns a pending audit reference immediately; the widget runs the audit and displays results. Do not repeat or poll the audit. Use browserless_performance_result for follow-up analysis of a completed audit.
Inputs: url (required), config, device, _prompt, +4 more.
browserless_performance_resultARead-onlyIdempotentInspect
Retrieve an existing inline Lighthouse audit for follow-up analysis using its exact auditRef. Never starts or repeats an audit. If still pending, let the widget finish; do not poll.
Inputs: auditRef (required).
browserless_performance_runARead-onlyInspect
Widget-only execution of a prepared Lighthouse audit. Repeated requests reuse the same audit.
Inputs: auditRef (required).
browserless_profilesARead-onlyInspect
List the authentication profiles saved for the current token. A profile is a saved logged-in browser state (cookies + storage) that can be replayed by passing its name as profile to other tools. Call this before a task that needs the browser to start signed in, to discover which profiles already exist and pick one by name. Returns each profile name plus cookie/origin counts and last-used time.
Inputs: limit, offset, _prompt.
browserless_searchARead-onlyInspect
Search the web using Browserless and optionally scrape each result. Performs web searches via SearXNG and can return results from web, news, or images. Optionally scrape each result URL to get markdown, HTML, links, or screenshots. Useful for research, gathering information, and finding relevant web pages.
Inputs: query (required), tbs, lang, limit, +7 more.
browserless_sessionsARead-onlyIdempotentInspect
Inspect the sessions on the Browserless account behind the current API token: browsers running right now, persistent sessions saved on dedicated workers, recorded session replays, and 1Password credential integrations. Use it to answer "what is running", "did my session survive", or "what got recorded". Read-only — it never stops a session. Action replay downloads one recording and returns a fully self-contained playable rrweb page, needing no network to render: display it inline if you can render HTML, otherwise build an artifact from the returned instructions so the user can watch it. Always show the replay — never just summarise it in words. For MCP Apps clients, actions active and replay return a viewRef without rendering. Call browserless_show with that exact reference to display the result; do not read or repeat recording data.
Inputs: action (required), page, skip, limit, +3 more.
browserless_showARead-onlyIdempotentInspect
Display a prepared Browserless replay, screenshot gallery, video, human handoff, account usage, active sessions, or request-log explorer inline. Pass the exact viewRef returned by its producer tool. Never repeats browser actions, downloads, or creates another handoff.
Inputs: viewRef (required). Returns: data, kind, summary, viewRef, +1 more
browserless_skillARead-onlyInspect
Load a Browserless agent skill on demand, or discover site-specific recipes.
Two uses:
{ site: "" } — list any site-specific recipes tuned for that host (e.g.
{ site: "ebay.com" }), returned as pointers. Do this as soon as you know the host you're about to drive; if one matches your task, load it by id. Returns a "no recipe" note when there's none.{ id: "" } — load a skill body: an in-house skill id (list below) OR a site recipe id
host/slugfrom asitelookup.
Use the in-house skills below when you suspect the page exhibits a non-trivial mechanic but no SKILL block was auto-injected. The auto-injection heuristics are conservative; calling this tool is the explicit fallback.
Available in-house skills:
shadow-dom — deep selectors, iframe URL-pattern syntax, what works through deep-ref
cookie-consent — vendor-specific dismiss recipes (OneTrust, Cookiebot, Didomi, etc.)
modals — close-button heuristics, ESC handling, alertdialog vs. dialog
snapshot-misses — truncated/empty snapshots, image-rendered content
dynamic-content — choosing the right
wait*method after async triggersscreenshots — when to screenshot vs. snapshot, scope and format choices
vision-fallback — click by coordinate when a "< " deep selector still can't surface the element (shadow DOM, nested iframe, canvas)
tabs — multi-tab workflows, peek-without-switching
autonomous-login — load before authenticating: when the user asked you to log in, when a wall blocks the task, or as soon as a password input appears. Covers the don't-login-by-default posture, contextual credential matching, MFA/captcha branches, and how to report the outcome.
autonomous-registration — load before creating an account: when the user asked you to sign up / register, or as soon as a Create-account form appears. Covers the don't-register-by-default posture, identity and credential-sink rules, save-first-then-loadSecret password handling, the emailed-code branch, and how to report the outcome.
captchas — the
solvecommand, response semantics, escalation path (Cloud-only)file-transfers —
uploadFile/getDownloads, stdio-path vs. base64 content, size capsprofile-import — import the user's local Chrome/Brave/Edge sign-ins as a profile with the Browserless CLI (consent-gated; only when running on the user's machine)
Inputs: id, site, _prompt.
browserless_smartscraperARead-onlyInspect
Scrape a SINGLE webpage and return HTML, markdown, raw DOM text, links, screenshots, or PDFs plus page metadata, or AI-extracted JSON (formats "json" + jsonOptions) and a short summary (format "summary"); the AI formats add extraction units. Handles JavaScript-heavy pages and anti-bot measures automatically. For content across MULTIPLE pages of a site, use browserless_crawl; to list a site's URLs, use browserless_map.
Inputs: url (required), toDisk, _prompt, formats, +8 more.
browserless_usageARead-onlyIdempotentInspect
Read request and unit consumption for the Browserless account behind the current API token: successes, errors, timeouts, queueing, peak concurrency, captchas, proxy bytes and units. Use it to answer "how much have I used" or "why is my bill high". For per-request detail on failures, use browserless_logs instead. Read-only. MCP Apps clients receive a viewRef; call browserless_show with that exact reference to display the usage meter. Timeframe affects request counters only; billed units cover the billing period.
Inputs: _prompt, apiKeyIds, timeframe.
browserless_view_dataARead-onlyIdempotentInspect
Widget-only reader for a prepared replay. Not a rendering tool. Use the original viewRef and opaque cursor; never fetch replay data into the conversation.
Inputs: viewRef (required), cursor, _prompt, encoding. Returns: complete, nextCursor
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Several tools overlap heavily around page acquisition and automation: browserless_agent, browserless_function, browserless_smartscraper, browserless_export, and browserless_crawl can all fetch or drive a page, with boundaries that depend on subtle format or scale differences. The performance/result/run trio and show/view_data pair further split closely related operations, so an agent can easily choose the wrong entry point despite the detailed descriptions.
All tools use the same browserless_ prefix and snake_case, with no camelCase or chaotic mixing. The main deviation is that some names are verbs (export, crawl, search, show) while others are nouns (agent, function, profiles, logs), but the pattern remains readable and predictable.
At 21 tools the surface is heavy, sitting in the borderline 16-25 range, and several entries are narrow widget or payment helpers that could be consolidated. The breadth of the Browserless API partly justifies the count, but the set feels larger than necessary for most agent workflows.
The server covers a wide lifecycle: browser automation, scraping, crawling, mapping, search, export, performance audits, profiles, sessions, logs, usage, live viewing, and payment flows. Minor gaps remain, such as read-only session/profile management without stop or create/delete operations, but core browser automation workflows are well covered.
Maintenance
Related MCP Connectors
Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Zenrows MCP server: Fetch, Extract, Batch, and Browser Sessions for AI agents
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Related MCP Servers
- AlicenseAqualityDmaintenanceA server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots without requiring screenshots or vision models.221Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server that exposes the Pinchtab browser API for token-efficient web scraping, change detection, and automated testing workflows.15MIT
- AlicenseAqualityBmaintenanceMCP server for browser automation with anti-detection. Scout pages, find elements, interact with websites, and monitor network traffic from any AI client that supports the Model Context Protocol.211MIT
- AlicenseNot gradedqualityBmaintenanceRemote MCP server for web scraping with anti-bot evasion. Provides stealth HTTP fetching, headless browser with Cloudflare bypass, CSS selectors, YouTube transcripts, and Markdown conversion.1MIT