Fetcher

Web search and scrapingBrowser automation

MCP server for fetch web page content using Playwright headless browser.

Your AI app calls the Fetcher MCP server, which does the web search and scraping and browser automation work and sends the result back to the chat.

About Fetcher

Fetcher is a community MCP server from jae-jae, filed in our directory under web search and scraping and browser automation. MCP server for fetch web page content using Playwright headless browser.

Fetcher runs on your own machine: your AI app starts it with the command npx -y fetcher-mcp and talks to it over standard input and output.

At a glance

Publisher
jae-jae (community)
Runs
Locally on your machine
Install from
Node.js package on npm: fetcher-mcp
Written in
TypeScript
License
MIT
GitHub stars
1,087

How to set up Fetcher

  1. Install Node.js on the machine that runs your AI app, because Fetcher starts with npx and downloads its package on first run.
  2. Check the Fetcher README for keys or settings; the registry lists none that Fetcher requires.
  3. Add Fetcher to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Fetcher tools to confirm the connection.
  5. Run one read-only task with Fetcher first, and keep your app asking before each tool call until the results look right.

Fetcher compared with similar servers

  • Master Fetch by dondai1234 has fewer GitHub stars than Fetcher (908 against 1.1k); both are community servers, and both run locally.
  • Web Search by mrkrsl has more GitHub stars than Fetcher (1.2k against 1.1k); both are community servers, and both run locally.
  • Glean by LeslieLeung has fewer GitHub stars than Fetcher (877 against 1.1k); both are community servers, and both run locally.

Before you connect Fetcher

  • Give Fetcher its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Fetcher tool call until you trust what it does with them.
  • Treat text that Fetcher fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Fetcher on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Fetcher

How marketing and sales teams put Fetcher to work, by company size. Pick the size closest to yours and start Fetcher on one use case.

Small business

  • A founder can use Fetcher to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Fetcher what competitors launched this month and get the pages, not just a summary.
  • A small business can use Fetcher to check its own site after every change: forms submit, links work and checkout still loads.
  • Fetcher runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Fetcher to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Fetcher to research accounts from public pages and add one specific line to each first email.
  • Marketing teams can run Fetcher to test landing pages and signup flows on every release, catching a broken form before paid traffic hits it.
  • Start Fetcher on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise research and competitive intel teams can schedule Fetcher to monitor many sources, with results stored and cited for review.
  • Large orgs can route Fetcher through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Enterprises can run Fetcher in isolated environments with allow-listed sites, so browsing agents never reach internal or unknown pages.
  • Fetcher is a community server, so have security review the code and pin a version before Fetcher touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Fetcher README

From jae-jae/fetcher-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

中文 | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский

Fetcher MCP

MCP server for fetch web page content using Playwright headless browser.

🌟 Recommended: OllaMan - Powerful Ollama AI Model Manager.

Sponsors

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 →

Advantages

  • 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.

Quick Start

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
HTTP and SSE Transport

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.json and POST /tools/{name} do not authenticate callers. That includes browser_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.0 where the port is reachable from outside that network).

Debug Mode

Run with the --debug option to show the browser window for debugging:

npx -y fetcher-mcp --debug

Configuration MCP

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 Deployment

Running with Docker
docker run -p 3000:3000 ghcr.io/jae-jae/fetcher-mcp:latest
Deploying with Docker Compose

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

Features

  • fetch_url - Retrieve web page content from a specified URL

    • Uses Playwright headless browser to parse JavaScript
    • Supports intelligent extraction of main content and conversion to Markdown
    • Supports the following parameters:
      • 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 true
      • maxLength: Maximum length of returned content (in characters), default is no limit
      • returnHtml: Whether to return HTML content instead of Markdown, default is false
      • returnText: 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 before
      • waitForNavigation: Whether to wait for additional navigation after initial page load (useful for sites with anti-bot verification), default is false
      • navigationTimeout: 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 true
      • debug: Whether to enable debug mode (showing browser window), overrides the --debug command line flag if specified
  • fetch_urls - Batch retrieve web page content from multiple URLs in parallel

    • Uses multi-tab parallel fetching for improved performance
    • Returns combined results with clear separation between webpages
    • Supports the following parameters:
      • urls: Array of URLs to fetch (required parameter)
      • Other parameters are the same as fetch_url
  • browser_install - Install Playwright Chromium browser binary automatically

    • Installs required Chromium browser binary when not available
    • Automatically suggested when browser installation errors occur
    • Supports the following parameters:
      • withDeps: Install system dependencies required by Chromium browser, default is false
      • force: Force installation even if Chromium is already installed, default is false

Tips

Handling Special Website Scenarios
Dealing with Anti-Crawler Mechanisms
  • Wait 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.

Content Retrieval Adjustments
  • 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.

Request targets

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.

Debugging and Authentication
Enabling Debug Mode
  • Dynamic Debug Activation: To display the browser window during a specific fetch operation:
    Please enable debug mode for this fetch operation
    
    This sets debug: true even if the server was started without the --debug flag.
Using Custom Cookies for Authentication
  • Manual Login: To login using your own credentials:

    Please run in debug mode so I can manually log in to the website
    

    Sets debug: true or uses the --debug flag, keeping the browser window open for manual login.

  • Interacting with Debug Browser: When debug mode is enabled:

    1. The browser window remains open
    2. You can manually log into the website using your credentials
    3. After login is complete, content will be fetched with your authenticated session
  • Enable Debug for Specific Requests: Even if the server is already running, you can enable debug mode for a specific request:

    Please enable debug mode for this authentication step
    

    Sets debug: true for this specific request only, opening the browser window for manual login.

Development

Install Dependencies
npm install
Install Playwright Browser

Install the browsers needed for Playwright:

npm run install-browser
Build the Server
npm run build

Debugging

Use MCP Inspector for debugging:

npm run inspector

You can also enable visible browser mode for debugging:

node build/index.js --debug

Related Projects

  • g-search-mcp: A powerful MCP server for Google search that enables parallel searching with multiple keywords simultaneously. Perfect for batch search operations and data collection.

License

Licensed under the MIT License

Questions about Fetcher

What is the Fetcher MCP server?

MCP server for fetch web page content using Playwright headless browser. Fetcher is maintained by jae-jae on GitHub at jae-jae/fetcher-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Fetcher MCP server?

Add Fetcher to your AI app's MCP config with the command npx -y fetcher-mcp. In Claude Code, run claude mcp add --transport stdio fetcher -- npx -y fetcher-mcp. To run Fetcher this way you need Node.js installed.

Does Fetcher need an API key?

The registry lists no required keys for Fetcher. Check the Fetcher README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Fetcher an official MCP server?

No. Fetcher is a community server maintained by jae-jae. Community servers can be excellent; read the code and the open issues before you give Fetcher access to company data.

What license is Fetcher under?

Fetcher is released under the MIT license, according to its GitHub repository. The license covers the code of Fetcher; the service it connects to has its own terms.