Browserless (Unofficial)

v0.2.2
io.github.pipeworx-io/browserless Checked 1 day ago Published 16 days ago

Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browserless_content

Render a URL in headless Chromium and return the fully-executed HTML (after JavaScript runs) — use this when a plain fetch returns an empty shell or JS-rendered SPA. Example: browserless_content({ url: "https://example.com", _apiKey: "your-token" })

ParameterTypeDescription
_apiKey *stringBrowserless API token (sign up at https://www.browserless.io/signup)
url *stringThe page URL to render, e.g. "https://example.com"
_hoststringOptional region host override, default "https://production-sfo.browserless.io"
waitForTimeoutnumberOptional milliseconds to wait after load before capturing HTML (lets late JS settle), e.g. 3000

browserless_scrape

Extract structured data from a rendered page using CSS selectors. Returns text, inner HTML, attributes and geometry for every matched element. Example: browserless_scrape({ url: "https://news.ycombinator.com", elements: [{ selector: ".titleline a" }], _apiKey: "your-token" })

ParameterTypeDescription
_apiKey *stringBrowserless API token (sign up at https://www.browserless.io/signup)
elements *arrayArray of selector objects, each { selector: "<css-selector>" }. Uses document.querySelectorAll, so each selector can match many elements.
url *stringThe page URL to scrape
_hoststringOptional region host override

browserless_screenshot

Capture a screenshot of a rendered page. Returns the image byte-length and metadata only (the binary PNG is NOT inlined). Example: browserless_screenshot({ url: "https://example.com", fullPage: true, _apiKey: "your-token" })

ParameterTypeDescription
_apiKey *stringBrowserless API token (sign up at https://www.browserless.io/signup)
url *stringThe page URL to screenshot
_hoststringOptional region host override
fullPagebooleanCapture the entire scrollable page instead of just the viewport (default false)
typestringImage format: "png" (default), "jpeg", or "webp"

browserless_smart_scrape

AI-assisted extraction: tries a plain HTTP fetch first and falls back to a full headless browser, returning content in the requested formats (html, markdown, links, screenshot, pdf). Best when you just want clean page content and do not know the right selectors. Example: browserless_smart_scrape({ url: "https://example.com", formats: ["markdown", "links"], _apiKey: "your-token" })

ParameterTypeDescription
_apiKey *stringBrowserless API token (sign up at https://www.browserless.io/signup)
url *stringThe page URL to extract
_hoststringOptional region host override
formatsarrayWhich formats to return: any of "html", "markdown", "links", "screenshot", "pdf" (default ["html"]). "content" (raw HTML/parsed JSON) is always returned.
proxystringProxy pool: "residential" (default) or "datacenter"