For AI agents: a documentation index is available at /llms.txt
Skip to main content

Scrape structured data

Extract structured data from fully rendered JavaScript pages using Browserless.

Prerequisites
Video Tutorial

Visual learner? Check out this video Web Scraping 101: How to Scrape Any Website (Python & JavaScript) for a step-by-step tutorial.

Steps​

Use the Browserless MCP server to scrape structured data from a webpage from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

One prompt that installs the Browserless MCP server and runs this example. Paste it into your AI agent.

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Scrape a page

Use browserless_smartscraper. It extracts page content in one call with automatic bot-protection handling.

Use the browserless_smartscraper tool to scrape the main content
of https://scraping-sandbox.netlify.app/products as markdown

3. Scrape after interaction

Use browserless_agent. Some pages paginate content that requires clicking through to load all items.

Use the browserless_agent tool to navigate to
https://scraping-sandbox.netlify.app/products,
click the "Next" button to load additional pages of products,
then scrape the full page content as markdown

Next steps​

Was this page helpful?