Labsco
kaiye logo

MCP FetchPage

โ˜… 2

from kaiye

Intelligent web page fetching with automatic cookie support and CSS selector extraction.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

MCP Fetch Page

Browser-based web page fetching with automatic cookie support and CSS selector extraction.

Features

  • ๐Ÿค– Browser Automation: Full JavaScript rendering with Puppeteer
  • ๐Ÿช Automatic Cookie Management: Loads all saved cookies automatically
  • ๐ŸŽฏ CSS Selector Support: Extract specific content with selectors
  • ๐ŸŒ Domain Presets: Built-in selectors for common websites
  • ๐Ÿ“ฑ SPA Support: Fully supports dynamic content and AJAX

Parameters

  • url (required): The URL to fetch
  • waitFor (optional): CSS selector to extract specific content
  • headless (optional): Run browser in headless mode (default: true)
  • timeout (optional): Timeout in milliseconds (default: 30000)

File Structure

mcp-fetch-page/
โ”œโ”€โ”€ package.json              # npm package config
โ”œโ”€โ”€ package-lock.json         # npm lockfile
โ”œโ”€โ”€ node_modules/             # npm dependencies
โ”œโ”€โ”€ README.md                 # This file
โ”œโ”€โ”€ README-zh.md              # Chinese version
โ”œโ”€โ”€ CLAUDE.md                 # Claude Code usage guide
โ”œโ”€โ”€ chrome-extension/         # Chrome extension
โ”‚   โ”œโ”€โ”€ manifest.json
โ”‚   โ”œโ”€โ”€ popup.js
โ”‚   โ”œโ”€โ”€ popup.html
โ”‚   โ””โ”€โ”€ background.js
โ””โ”€โ”€ mcp-server/              # MCP server
    โ”œโ”€โ”€ server.js            # Main server
    โ”œโ”€โ”€ debug.js             # Debug tools
    โ”œโ”€โ”€ domain-rules.json     # Domain rules config (selector + blocked markers)
    โ””โ”€โ”€ domain-selectors.json # Legacy selector config (compatibility fallback)