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
| Name | Type | Required | Description |
|---|---|---|---|
url | string | no | The page URL to scrape |
elements | array | no | Array of selector objects, each { selector: " |
items | object | no | A CSS selector, e.g. “h1”, “.price”, “a.link” |
properties | string | no | A CSS selector, e.g. “h1”, “.price”, “a.link” |
selector | string | yes | A CSS selector, e.g. “h1”, “.price”, “a.link” |
_apiKey | string | no | Browserless API token (sign up at https://www.browserless.io/signup) |
_host | string | no | Optional 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.