Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

scrapling-fetch-mcp

MCP.Pizza Chef: cyberchitta

Scrapling Fetch MCP is a server that enables AI assistants to retrieve text content from websites with anti-automation measures. It specializes in accessing HTML and markdown from bot-protected sites, bridging the gap between browser-visible content and AI-accessible data. Optimized for low-volume retrieval of documentation and reference materials, it is not intended for general-purpose scraping or data harvesting.

Use This MCP server To

Retrieve documentation from websites with bot detection Access reference materials behind anti-automation measures Fetch HTML content for AI processing from protected sites Extract markdown content from bot-protected web pages Enable AI assistants to read content blocked by bot filters Bridge browser-visible content to AI-accessible data Support low-volume web content retrieval for AI workflows

README

Scrapling Fetch MCP

License PyPI version

An MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.

Intended Use

This tool is optimized for low-volume retrieval of documentation and reference materials (text/HTML only) from websites that implement bot detection. It has not been designed or tested for general-purpose site scraping or data harvesting.

Note: This project was developed in collaboration with Claude Sonnet 3.7, using LLM Context.

Installation

  1. Requirements:

    • Python 3.10+
    • uv package manager
  2. Install dependencies and the tool:

uv tool install scrapling
scrapling install
uv tool install scrapling-fetch-mcp

Setup with Claude

Add this configuration to your Claude client's MCP server configuration:

{
  "mcpServers": {
    "Cyber-Chitta": {
      "command": "uvx",
      "args": ["scrapling-fetch-mcp"]
    }
  }
}

Available Tools

This package provides two distinct tools:

  1. s-fetch-page: Retrieves complete web pages with pagination support
  2. s-fetch-pattern: Extracts content matching regex patterns with surrounding context

Example Usage

Fetching a Complete Page

Human: Please fetch and summarize the documentation at https://example.com/docs

Claude: I'll help you with that. Let me fetch the documentation.

<mcp:function_calls>
<mcp:invoke name="s-fetch-page">
<mcp:parameter name="url">https://example.com/docs</mcp:parameter>
<mcp:parameter name="mode">basic</mcp:parameter>
</mcp:invoke>
</mcp:function_calls>

Based on the documentation I retrieved, here's a summary...

Extracting Specific Content with Pattern Matching

Human: Please find all mentions of "API keys" on the documentation page.

Claude: I'll search for that specific information.

<mcp:function_calls>
<mcp:invoke name="s-fetch-pattern">
<mcp:parameter name="url">https://example.com/docs</mcp:parameter>
<mcp:parameter name="mode">basic</mcp:parameter>
<mcp:parameter name="search_pattern">API\s+keys?</mcp:parameter>
<mcp:parameter name="context_chars">150</mcp:parameter>
</mcp:invoke>
</mcp:function_calls>

I found several mentions of API keys in the documentation:
...

Functionality Options

  • Protection Levels:

    • basic: Fast retrieval (1-2 seconds) but lower success with heavily protected sites
    • stealth: Balanced protection (3-8 seconds) that works with most sites
    • max-stealth: Maximum protection (10+ seconds) for heavily protected sites
  • Content Targeting Options:

    • s-fetch-page: Retrieve entire pages with pagination support (using start_index and max_length)
    • s-fetch-pattern: Extract specific content using regular expressions (with search_pattern and context_chars)
      • Results include position information for follow-up queries with s-fetch-page

Tips for Best Results

  • Start with basic mode and only escalate to higher protection levels if needed
  • For large documents, use the pagination parameters with s-fetch-page
  • Use s-fetch-pattern when looking for specific information on large pages
  • The AI will automatically adjust its approach based on the site's protection level

Limitations

  • Designed only for text content: Specifically for documentation, articles, and reference materials
  • Not designed for high-volume scraping or data harvesting
  • May not work with sites requiring authentication
  • Performance varies by site complexity

License

Apache 2

scrapling-fetch-mcp FAQ

How does Scrapling Fetch MCP bypass bot detection?
It uses specialized techniques to mimic human browsing, enabling access to protected content.
Is Scrapling Fetch MCP suitable for large-scale web scraping?
No, it is optimized for low-volume retrieval of documentation and reference materials only.
What programming language is Scrapling Fetch MCP built with?
It is built with Python 3.10+ and requires the uv package manager.
Can Scrapling Fetch MCP access non-text content like images or videos?
No, it is designed to fetch text-based content such as HTML and markdown only.
How does Scrapling Fetch MCP integrate with AI assistants?
It acts as an MCP server providing structured web content to AI models for real-time context.
Is Scrapling Fetch MCP open source?
Yes, it is licensed under Apache 2.0 and available on GitHub.
What kind of websites is Scrapling Fetch MCP intended for?
Websites that implement bot detection and restrict automated access to text content.
Does Scrapling Fetch MCP support real-time content updates?
It supports on-demand fetching but is not designed for continuous real-time streaming.