Uses puppeteer-core to connect to browserless.io cloud browsers for extracting fully rendered DOM content from dynamic web pages, including SPAs and infinite scroll sites, with configurable wait times and scrolling behavior.
Digest MCP Server
MCP server for web content digestion using browserless.io via puppeteer-core. Extracts fully rendered DOM content from dynamic web pages including SPAs and infinite scroll sites.
Features
Connect to browserless.io cloud browsers
Load web pages with configurable wait times
Scroll down pages multiple times with delays
Extract complete page content (HTML)
Installation
Configuration
Set your browserless.io API key using one of these methods:
Option 1: Using .env file (recommended)
Create a .env file in the project root:
Then edit .env and add your API key:
Option 2: Using environment variable
Usage
Running the Server
The server uses stdio transport for MCP communication:
Tool: web_content
Fetches web page content with optional scrolling.
Parameters:
url(string, required): The URL to fetchinitialWaitTime(number, optional): Time to wait in milliseconds after loading the page. Default: 3000scrollCount(number, optional): Number of times to scroll down the page. Default: 0scrollWaitTime(number, optional): Time to wait in milliseconds between each scroll. Default: 3000
Example:
How It Works
Connects to browserless.io using your API key via WebSocket
Creates a new page in the remote browser
Navigates to the specified URL (waits for DOM content loaded)
Waits 1 second for page stabilization
Waits for the initial wait time (default: 3 seconds)
Scrolls to the bottom of the page the specified number of times
After each scroll, intelligently waits for new content to load by:
Monitoring page height changes
Detecting dynamically loaded content
Waiting up to scrollWaitTime for new content (default: 3 seconds)
Waits for network to idle (AJAX requests complete)
Waits 1 additional second for JavaScript rendering
Returns the fully RENDERED DOM (not raw HTML source)
Includes all JavaScript-generated content
Includes all AJAX-loaded content
Includes all dynamically inserted elements
Uses
document.documentElement.outerHTMLfor complete rendered state
Dynamic Content & Infinite Scroll
The tool is specifically designed for modern web applications with dynamic content:
AJAX/JavaScript Handling:
✅ Waits for network idle: Ensures all AJAX requests complete
✅ Returns rendered DOM: Gets actual content after JavaScript execution
✅ Not raw HTML source: Uses browser's rendered output
✅ Includes dynamic elements: Captures content inserted by React, Vue, Angular, etc.
Infinite Scroll Support:
✅ Scrolls to bottom: Triggers lazy-loading mechanisms
✅ Detects new content: Monitors page height changes
✅ Smart waiting: Exits early when content loads
✅ Multiple fallbacks: Keyboard scroll if JavaScript fails
Perfect for:
Single Page Applications (React, Vue, Angular)
Infinite scroll feeds (Twitter, Facebook, LinkedIn)
Lazy-loaded images and content
AJAX-powered content (search results, filters)
Dynamic dashboards and admin panels
Tips for best results:
Set
scrollCountto 5-10 to load multiple pages of contentUse
scrollWaitTimeof 3000-5000ms for slow-loading contentIncrease
initialWaitTimeto 5000+ if page has heavy initializationFor SPAs, allow time for initial JavaScript bootstrap
MCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
License
ISC