browserless-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP server port (only for httpStream transport) | 8080 |
| TRANSPORT | No | Transport type: stdio or httpStream | stdio |
| BROWSERLESS_TOKEN | Yes | Your Browserless API token | |
| BROWSERLESS_API_URL | No | API endpoint (for self-hosted Browserless) | https://production-sfo.browserless.io |
| BROWSERLESS_TIMEOUT | No | Request timeout in milliseconds | 30000 |
| BROWSERLESS_CACHE_TTL | No | Cache TTL in milliseconds (0 to disable) | 60000 |
| BROWSERLESS_MAX_RETRIES | No | Max retry attempts for failed requests | 3 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Browserless MCP: cloud browsers for scraping, automation and agent tasks.
Interactive work: browserless_agent (snapshot before you act); recipes and skills: browserless_skill.
Signed-in sites: call browserless_profiles first and pass an existing profile's name as profile.
When an inline widget is shown, let it present the data. Do not recreate its charts, gauges, or tables in chat. Keep your reply to a brief acknowledgement unless the user asks for analysis, comparison, or specific values. Without a widget, answer normally from the tool output.
No profile for that site and you are running on the user's own machine (Claude Code, Codex, a terminal)? Load the profile-import skill: it imports the user's already-signed-in Chrome/Brave/Edge profile with the Browserless CLI after showing them the disclaimer and getting an explicit yes.
Never send the user to the Browserless dashboard for something these tools can finish, and never print or echo an API token.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": true,
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browserless_showA | 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. |
| browserless_view_dataA | 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. |
| browserless_exportA | 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. |
| browserless_skillA | Load a Browserless agent skill on demand, or discover site-specific recipes. Two uses:
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:
|
| browserless_agentA | READ CAREFULLY: Execute browser commands in an agent session. Core Loop (ReAct: Reason → Act → Observe)
Ending the session (REQUIRED)One-shot vs. multi-step (session lifetime). Sessions are one-shot by default: when your
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
Site recipes (site-specific, NOT auto-injected) — CHECK FIRSTMany 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 Proxy (optional)Proxy config is a top-level If there is credible evidence the task needs a proxy, you MUST pass proxy options on the very FIRST call (before any If you already opened a session without a proxy and now realize one is needed, you must
OS persona (optional)The top-level Reach for AuthWhile secret protection is armed, For an existing-profile session, set 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 After a Saved-login check (only when the session was opened with Pass Terminal-Goal CheckBefore 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 Skills (auto-injected)SKILL blocks auto-inject between
Snapshot Rules
Selectors
IframesSnapshots include a TabsSnapshots include LinksPrefer goto over click for links with href — immune to layout shifts, overlays, misclicks.
Example: Content Extraction
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.
Batching — Maximize Per CallPlan ALL actions from snapshot before next snapshot. Process:
Example form: AsyncAfter async triggers (search, submit), use Error RecoveryErrors tagged
Methods (non-obvious)
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 Repetition self-checkWhen 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. |
| browserless_performanceA | 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. |
| browserless_performance_runA | Widget-only execution of a prepared Lighthouse audit. Repeated requests reuse the same audit. |
| browserless_performance_resultA | 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. |
| browserless_accountA | 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. |
| browserless_usageA | 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. |
| browserless_sessionsA | 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 |
| browserless_logsA | 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. |
| browserless_smartscraperA | 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. |
| browserless_functionA | Execute custom Puppeteer JavaScript code on the Browserless cloud. Your function receives a Puppeteer 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:
Return the Uint8Array as-is: 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. |
| browserless_mapA | 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. |
| browserless_crawlA | 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. |
| browserless_live_urlA | 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. |
| browserless_profilesA | 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 |
| browserless_searchA | 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. |
| browserless_link_connectA | 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. |
| browserless_link_checkoutA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| scrape-url | Scrape a webpage and return its content as markdown with metadata |
| extract-content | Extract specific information from a webpage using the smart scraper |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Browserless views | |
| Browserless live viewer | |
| Browserless view (v1 compatibility) | |
| Browserless view (v2 compatibility) | |
| Browserless view (v3 compatibility) | |
| Browserless view (v4 compatibility) | |
| Browserless view (v5 compatibility) | |
| Browserless view (v6 compatibility) | |
| Browserless view (v7 compatibility) | |
| Browserless view (v8 compatibility) | |
| Browserless view (v9 compatibility) | |
| Browserless view (v10 compatibility) | |
| Browserless view (v11 compatibility) | |
| Browserless view (v12 compatibility) | |
| Browserless Lighthouse scorecard | |
| Browserless Lighthouse scorecard (v3 compatibility) | |
| Browserless Service Status | |
| Browserless API Documentation |
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.