Digest MCP Server
Enables extraction of fully rendered web content from dynamic pages, SPAs, and infinite scroll sites using browserless.io, with support for configurable scrolling and wait times to capture JavaScript-generated content.
README
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
npm install
npm run build
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:
cp .env.example .env
Then edit .env and add your API key:
BROWSERLESS_API_KEY=your_api_key_here
Option 2: Using environment variable
export BROWSERLESS_API_KEY=your_api_key_here
Usage
Running the Server
The server uses stdio transport for MCP communication:
node build/index.js
Tool: web_content
Fetches web page content with optional scrolling and HTML cleanup.
Parameters:
url(string, required): The URL to fetchinitialWaitTime(number, optional): Time to wait in milliseconds after loading the page. Default: 3000scrolls(number, optional): Number of times to scroll down the page. Default: 5scrollWaitTime(number, optional): Time to wait in milliseconds between each scroll. Default: 1000cleanup(boolean, optional): Whether to clean up HTML (remove scripts, styles, SVG, forms, etc.) and keep only meaningful text content. Default: false
Returns:
size(number): Size of the content in bytescontent(string): The fetched HTML content
Example:
{
"url": "https://example.com",
"initialWaitTime": 2000,
"scrolls": 3,
"scrollWaitTime": 1000,
"cleanup": true
}
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:
- Default
scrolls: 5works well for most pages with lazy-loaded content - Increase
scrollsto 10-15 for very long infinite scroll pages - Set
scrolls: 0to disable scrolling for static pages - Use
scrollWaitTimeof 1000-3000ms for slow-loading content (default: 1000ms) - Increase
initialWaitTimeto 5000+ if page has heavy initialization - For SPAs, allow time for initial JavaScript bootstrap
- Use
cleanup: trueto extract only meaningful text content without scripts, styles, and visual elements - Use
cleanup: false(default) to get the full rendered HTML
MCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"digest": {
"command": "node",
"args": ["/path/to/digest-mcp/build/index.js"],
"env": {
"BROWSERLESS_API_KEY": "your_api_key_here"
}
}
}
}
License
ISC
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。