by jae-jae
MCP server for fetch web page content using Playwright headless browser.
# Add to your Claude Code skills
git clone https://github.com/jae-jae/fetcher-mcpGuides for using mcp servers skills like fetcher-mcp.
fetcher-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by jae-jae. MCP server for fetch web page content using Playwright headless browser. It has 1,088 GitHub stars.
fetcher-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/jae-jae/fetcher-mcp" and add it to your Claude Code skills directory (see the Installation section above).
fetcher-mcp is primarily written in TypeScript. It is open-source under jae-jae on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh fetcher-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
中文 | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский
MCP server for fetch web page content using Playwright headless browser.
🌟 Recommended: OllaMan - Powerful Ollama AI Model Manager.
Byteful supplies ethical residential, mobile, ISP, and datacenter proxies, plus scraping and AI automation tools.
Use code JAEJAE: 10% off residential proxies. Get your proxies now →
JavaScript Support: Unlike traditional web scrapers, Fetcher MCP uses Playwright to execute JavaScript, making it capable of handling dynamic web content and modern web applications.
Intelligent Content Extraction: Built-in Readability algorithm automatically extracts the main content from web pages, removing ads, navigation, and other non-essential elements.
Flexible Output Format: Supports both HTML and Markdown output formats, making it easy to integrate with various downstream applications.
Parallel Processing: The fetch_urls tool enables concurrent fetching of multiple URLs, significantly improving efficiency for batch operations.
Resource Optimization: Automatically blocks unnecessary resources (images, stylesheets, fonts, media) to reduce bandwidth usage and improve performance.
Robust Error Handling: Comprehensive error handling and logging ensure reliable operation even when dealing with problematic web pages.
Configurable Parameters: Fine-grained control over timeouts, content extraction, and output formatting to suit different use cases.
Run directly with npx:
npx -y fetcher-mcp
First time setup - install the required browser by running the following command in your terminal:
npx playwright install chromium
Use the --transport=http parameter to start both Streamable HTTP endpoint and SSE endpoint services simultaneously:
npx -y fetcher-mcp --log --transport=http --host=0.0.0.0 --port=3000
After startup, the server provides the following endpoints:
/mcp - Streamable HTTP endpoint (modern MCP protocol)/sse - SSE endpoint (legacy MCP protocol)/openapi.json - OpenAPI 3.1 specification for the REST tool API (HTTP mode only)POST /tools/{name} - REST endpoint for each tool (fetch_url, fetch_urls, browser_install)Clients can choose which method to connect based on their needs. Stdio mode does not serve the HTTP, SSE, or REST routes.
No authentication.
/openapi.jsonandPOST /tools/{name}do not authenticate callers. That includesbrowser_install, which installs a browser on the host. Use these endpoints only on localhost or a trusted internal network. Do not expose them on an untrusted network (for example by binding--host=0.0.0.0where the port is reachable from outside that network).
Run with the --debug option to show the browser window for debugging:
npx -y fetcher-mcp --debug
Configure this MCP server in Claude Desktop:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": ["-y", "fetcher-mcp"]
}
}
}
docker run -p 3000:3000 ghcr.io/jae-jae/fetcher-mcp:latest
Create a docker-compose.yml file:
version: "3.8"
services:
fetcher-mcp:
image: ghcr.io/jae-jae/fetcher-mcp:latest
container_name: fetcher-mcp
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
# Using host network mode on Linux hosts can improve browser access efficiency
# network_mode: "host"
volumes:
# For Playwright, may need to share certain system paths
- /tmp:/tmp
# Health check
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
Then run:
docker-compose up -d
fetch_url - Retrieve web page content from a specified URL
url: The URL of the web page to fetch (required parameter)timeout: Page loading timeout in milliseconds, default is 30000 (30 seconds)waitUntil: Specifies when navigation is considered complete, options: 'load', 'domcontentloaded', 'networkidle', 'commit', default is 'load'extractContent: Whether to intelligently extract the main content, default is truemaxLength: Maximum length of returned content (in characters), default is no limitreturnHtml: Whether to return HTML content instead of Markdown, default is falsereturnText: Whether to return plain text (innerText of the page body) instead of Markdown. Skips Readability extraction and Markdown conversion. Default is false. When omitted, the response is the same Markdown output as beforewaitForNavigation: Whether to wait for additional navigation after initial page load (useful for sites with anti-bot verification), default is falsenavigationTimeout: Maximum time to wait for additional navigation in milliseconds, default is 10000 (10 seconds)disableMedia: Whether to disable media resources (images, stylesheets, fonts, media), default is truedebug: Whether to enable debug mode (showing browser window), overrides the --debug command line flag if specifiedfetch_urls - Batch retrieve web page content from multiple URLs in parallel
urls: Array of URLs to fetch (required parameter)fetch_urlbrowser_install - Install Playwright Chromium browser binary automatically
withDeps: Install system dependencies required by Chromium browser, default is falseforce: Force installation even if Chromium is already installed, default is falseWait for Complete Loading: For websites using CAPTCHA, redirects, or other verification mechanisms, include in your prompt:
Please wait for the page to fully load
This will use the waitForNavigation: true parameter.
Increase Timeout Duration: For websites that load slowly:
Please set the page loading timeout to 60 seconds
This adjusts both timeout and navigationTimeout parameters accordingly.
Preserve Original HTML Structure: When content extraction might fail:
Please preserve the original HTML content
Sets extractContent: false and returnHtml: true.
Fetch Complete Page Content: When extracted content is too limited:
Please fetch the complete webpage content instead of just the main content
Sets extractContent: false.
Return Content as HTML: When HTML format is needed instead of default Markdown:
Please return the content in HTML format
Sets returnHtml: true.
Return Visible Text Only: When Markdown markup is unnecessary:
Please return only the visible text
Sets returnText: true.
fetch_url and fetch_urls accept only http: and https: URLs. Loopback, private, link-local, and cloud-metadata targets are blocked by default, including numeric IP spellings (decimal, hex, octal, and short forms) and names such as localhost and metadata.google.internal. Set FETCHER_MCP_ALLOW_PRIVATE_IPS=true to allow those targets, including blocked hostnames.
A hostname that is not itself on the block list is not looked up before the browser fetches it, and redirects are not checked again. A name that resolves to a private address, or a redirect onto an internal address, can still reach that address.
Please enable debug mode for this fetch operation
This sets debug: true even if the server was started without the --debug flag.Manual Login: To login using your own credentials:
Please run in debug mo