by kaiye
Intelligent web page fetching with automatic cookie support and CSS selector extraction.
Option A: Install from npm (Recommended)
npm install -g mcp-fetchpage
Option B: Install from source
cd ~/Downloads/mcp-fetchpage npm install
If you installed from npm:
chrome://extensions/
/usr/local/lib/node_modules/mcp-fetchpage/chrome-extension
If you installed from source:
chrome://extensions/
~/Downloads/mcp-fetchpage/chrome-extension
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json
):
If installed globally via npm:
*Configuration content*
If installed locally or from source:
*Configuration content*
Cursor (Settings > Cursor Settings > Tools & Integrations > MCP Tools):
*Configuration content*
Restart your editor after configuration.
fetchpage(url="https://example.com")
// Basic intelligent fetching fetchpage(url="https://example.com") // Force specific method fetchpage(url="https://example.com", forceMethod="spa") // Extract specific content with CSS selector fetchpage(url="https://example.com", waitFor="#main-content") // WeChat articles (automatic selector) fetchpage(url="https://mp.weixin.qq.com/s/xxxxx")
The system automatically uses optimized selectors for:
.rich_media_wrp
(WeChat articles).content
(Knowledge Planet).post
(Blog Garden)mcp-server/domain-selectors.json
# Standalone debug script (recommended for development) cd mcp-server node debug.js test-page "https://example.com" node debug.js test-spa "https://example.com" "#content" # MCP Inspector (for integration testing) npx @modelcontextprotocol/inspector # Then visit http://localhost:6274
url
(required): The URL to fetchwaitFor
(optional): CSS selector to extract specific contentforceMethod
(optional): Force "http" or "spa" methodskipCookies
(optional): Skip loading cookiesheadless
(optional): Run browser in headless mode (default: true)timeout
(optional): Timeout in milliseconds (default: 30000)mcp-fetchpage/
āāā 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-selectors.json # Domain selector config
/Users/YOUR_USERNAME/...
instead of ~/...
That's it! šŖ
No version information available
0 contributors