browserless_scrape

Pack: browserless · Endpoint: https://gateway.pipeworx.io/browserless/mcp

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” })

Parameters

NameTypeRequiredDescription
urlstringnoThe page URL to scrape
elementsarraynoArray of selector objects, each { selector: "" }. Uses document.querySelectorAll, so each selector can match many elements.
itemsobjectnoA CSS selector, e.g. “h1”, “.price”, “a.link”
propertiesstringnoA CSS selector, e.g. “h1”, “.price”, “a.link”
selectorstringyesA CSS selector, e.g. “h1”, “.price”, “a.link”
_apiKeystringnoBrowserless API token (sign up at https://www.browserless.io/signup)
_hoststringnoOptional region host override

Example call

Arguments

{
  "url": "https://news.ycombinator.com",
  "elements": [
    {
      "selector": ".titleline a"
    }
  ],
  "_apiKey": "your-browserless-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/browserless/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"browserless_scrape","arguments":{"url":"https://news.ycombinator.com","elements":[{"selector":".titleline a"}],"_apiKey":"your-browserless-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('browserless_scrape', {
  "url": "https://news.ycombinator.com",
  "elements": [
    {
      "selector": ".titleline a"
    }
  ],
  "_apiKey": "your-browserless-api-key"
});

More examples

{
  "url": "https://example.com/products",
  "elements": [
    {
      "selector": ".product-name"
    },
    {
      "selector": ".price"
    }
  ],
  "_apiKey": "your-browserless-api-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "browserless": {
      "url": "https://gateway.pipeworx.io/browserless/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 29, 2026