Skip to main content
Glama
Scrapling Fetch MCP

Scrapling Fetch MCP

by cyberchitta

scrapling-fetch-mcp

License PyPI version

Помогает ИИ-ассистентам получать контент с веб-сайтов, защищенных от ботов. Использует Scrapling (patchright + curl-cffi) для обхода мер защиты от автоматизации, возвращая чистый HTML или Markdown.

Оптимизировано для получения небольших объемов документации и справочных материалов. Не предназначено для массового парсинга или сбора данных.

Требования: Python 3.10+, uv

Навык Claude Code

Проще всего использовать это как навык Claude Code. После установки Claude будет автоматически получать содержимое URL-адресов, защищенных от ботов, когда вы об этом попросите — ручные команды не потребуются.

Установка в ваш проект (рекомендуется — загружается только в контексте этого проекта):

git clone --depth=1 https://github.com/cyberchitta/scrapling-fetch-mcp /tmp/scrapling-fetch-mcp
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch .claude/skills/
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch-setup .claude/skills/
rm -rf /tmp/scrapling-fetch-mcp

Или установка для всех проектов (загружается в контекст везде):

git clone --depth=1 https://github.com/cyberchitta/scrapling-fetch-mcp /tmp/scrapling-fetch-mcp
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch ~/.claude/skills/
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch-setup ~/.claude/skills/
rm -rf /tmp/scrapling-fetch-mcp

Затем попросите Claude выполнить /s-fetch-setup — он установит инструмент и бинарные файлы браузера (большой объем загрузки), а затем удалит сам себя. После этого просто спрашивайте естественным образом:

"Fetch the docs at https://example.com/api"
"Find all mentions of 'authentication' on that page"
"Get me the installation instructions from their homepage"

Related MCP server: mult-fetch-mcp-server

Claude Desktop (MCP-сервер)

Если вы уже выполнили /s-fetch-setup, инструмент установлен — переходите к настройке ниже.

В противном случае сначала установите:

uv tool install git+https://github.com/cyberchitta/scrapling-fetch-mcp
uvx --from git+https://github.com/cyberchitta/scrapling-fetch-mcp scrapling install

Примечание: Установка браузера загружает сотни МБ и должна завершиться перед первым использованием. Если сервер выдает тайм-аут при первом запуске, подождите несколько минут и попробуйте снова.

Добавьте это в настройки MCP Claude Desktop и перезапустите:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

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

Как это работает

Два инструмента, используемые Claude автоматически:

  • Получение страниц — извлекает полные страницы с поддержкой пагинации

  • Извлечение по шаблону — находит контент, соответствующий регулярному выражению

Три уровня защиты, повышаемые автоматически:

  • basic — быстро (1-2 с), работает для большинства сайтов

  • stealth — умеренно (3-8 с), headless Chromium

  • max-stealth — тщательно (10 с+), полный отпечаток браузера

Ограничения

  • Только текстовый контент (документация, статьи, справочники)

  • Не для массового парсинга или сайтов, требующих аутентификации

  • Производительность зависит от сложности сайта и уровня защиты

Лицензия

Apache 2.0

Available Tools

2 tools
s_fetch_pageA

Fetches a complete web page with pagination support. Retrieves content from websites with bot-detection avoidance. For best performance, start with 'basic' mode (fastest), then only escalate to 'stealth' or 'max-stealth' modes if basic mode fails. Content is returned as 'METADATA: {json}\n\n[content]' where metadata includes length information and truncation status.

Args:
    url: URL to fetch
    mode: Fetching mode (basic, stealth, or max-stealth)
    format: Output format (html or markdown)
    max_length: Maximum number of characters to return.
    start_index: On return output starting at this character index, useful if a previous fetch was truncated and more content is required.

Inputs: url (required), mode, format, max_length, +1 more. Returns: result

s_fetch_patternA

Extracts content matching regex patterns from web pages. Retrieves specific content from websites with bot-detection avoidance. For best performance, start with 'basic' mode (fastest), then only escalate to 'stealth' or 'max-stealth' modes if basic mode fails. Returns matched content as 'METADATA: {json}\n\n[content]' where metadata includes match statistics and truncation information. Each matched content chunk is delimited with '॥๛॥' and prefixed with '[Position: start-end]' indicating its byte position in the original document, allowing targeted follow-up requests with s-fetch-page using specific start_index values.

Args:
    url: URL to fetch
    search_pattern: Regular expression pattern to search for in the content
    mode: Fetching mode (basic, stealth, or max-stealth)
    format: Output format (html or markdown)
    max_length: Maximum number of characters to return.
    context_chars: Number of characters to include before and after each match

Inputs: url (required), search_pattern (required), mode, format, +2 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: s_fetch_page retrieves entire web pages with pagination support, while s_fetch_pattern extracts specific content matching regex patterns. Their descriptions explicitly differentiate them, with no overlap in functionality that would cause confusion.

    Naming Consistency5/5

    Both tools follow a consistent 's_fetch_' prefix pattern with descriptive suffixes ('page' and 'pattern'), maintaining perfect naming consistency. The snake_case convention is applied uniformly across both tool names.

    Tool Count3/5

    With only 2 tools, the server feels somewhat thin for a web scraping domain that typically requires more operations like navigation, form handling, or session management. While the tools are well-designed, the limited count may restrict agent capabilities for complex scraping tasks.

    Completeness4/5

    The tools cover the core web scraping operations of fetching pages and extracting patterns with bot-detection avoidance. However, there are notable gaps for a complete scraping workflow, such as no tools for navigating between pages, handling authentication, managing sessions, or interacting with dynamic content beyond basic fetching.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers