Skip to main content
Glama

Crawl-MCP: Неофициальный MCP-сервер для crawl4ai

⚠️ Важно: Это неофициальная реализация MCP-сервера для отличной библиотеки crawl4ai. Не связана с оригинальным проектом crawl4ai.

Полнофункциональный сервер протокола контекста модели (MCP), который объединяет мощную библиотеку crawl4ai с передовыми возможностями ИИ. Извлекайте и анализируйте контент из любого источника: веб-страниц, PDF-файлов, документов Office, видео YouTube и многого другого. Включает интеллектуальное суммирование для значительного сокращения использования токенов при сохранении важной информации.

🌟 Ключевые особенности

  • 🔍 Интеграция с поиском Google - 7 оптимизированных жанров поиска с официальными операторами Google

  • 🔍 Продвинутый веб-краулинг: поддержка JavaScript, глубокое картирование сайтов, извлечение сущностей

  • 🌐 Универсальное извлечение контента: веб-страницы, PDF, документы Word, Excel, PowerPoint, ZIP-архивы

  • 🤖 ИИ-суммирование: умное сокращение токенов (до 88,5%) при сохранении основной информации

  • 🎬 Интеграция с YouTube: извлечение транскриптов видео и их краткое содержание без API-ключей

  • ⚡ Готовность к продакшену: 19 специализированных инструментов с комплексной обработкой ошибок

Related MCP server: Crawl4AI MCP Server

🚀 Быстрый старт

Предварительные требования (обязательно)

  • Python 3.11 или выше (FastMCP требует Python 3.11+)

Установка системных зависимостей для Playwright:

Ubuntu 24.04 LTS (требуется ручная настройка):

# Manual setup required due to t64 library transition
sudo apt update && sudo apt install -y \
  libnss3 libatk-bridge2.0-0 libxss1 libasound2t64 \
  libgbm1 libgtk-3-0t64 libxshmfence-dev libxrandr2 \
  libxcomposite1 libxcursor1 libxdamage1 libxi6 \
  fonts-noto-color-emoji fonts-unifont python3-venv python3-pip

python3 -m venv venv && source venv/bin/activate
pip install playwright==1.55.0 && playwright install chromium
sudo playwright install-deps

Другие Linux/macOS:

sudo bash scripts/prepare_for_uvx_playwright.sh

Windows (от имени администратора):

scripts/prepare_for_uvx_playwright.ps1

Установка

UVX (рекомендуется — проще всего):

# After system preparation above - that's it!
uvx --from git+https://github.com/walksoda/crawl-mcp crawl-mcp

Docker (готов к продакшену):

# Clone the repository
git clone https://github.com/walksoda/crawl-mcp
cd crawl-mcp

# Build and run with Docker Compose (STDIO mode)
docker-compose up --build

# Or build and run HTTP mode on port 8000
docker-compose --profile http up --build crawl4ai-mcp-http

# Or build manually
docker build -t crawl4ai-mcp .
docker run -it crawl4ai-mcp

Возможности Docker:

  • 🔧 Поддержка нескольких браузеров: Chromium, Firefox, Webkit (headless)

  • 🐧 Google Chrome: Дополнительный Chrome Stable для совместимости

  • ⚡ Оптимизированная производительность: Предварительно настроенные флаги браузера для Docker

  • 🔒 Безопасность: Запуск от пользователя без прав root

  • 📦 Полный набор зависимостей: Все необходимые библиотеки включены

Настройка Claude Desktop

Установка через UVX: Добавьте в ваш claude_desktop_config.json:

{
  "mcpServers": {
    "crawl-mcp": {
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/walksoda/crawl-mcp",
        "crawl-mcp"
      ],
      "env": {
        "CRAWL4AI_LANG": "en"
      }
    }
  }
}

Режим Docker HTTP:

{
  "mcpServers": {
    "crawl-mcp": {
      "transport": "http",
      "baseUrl": "http://localhost:8000"
    }
  }
}

Для японского интерфейса:

"env": {
  "CRAWL4AI_LANG": "ja"
}

📖 Документация

Тема

Описание

Руководство по установке

Полные инструкции по установке для всех платформ

Справочник API

Полная документация инструментов и примеры использования

Примеры конфигурации

Конфигурации для конкретных платформ

HTTP-интеграция

Доступ к HTTP API и методы интеграции

Продвинутое использование

Техники для опытных пользователей и рабочие процессы

Руководство по разработке

Вклад в проект и настройка среды разработки

Документация по языкам

  • English: директория docs/

  • 日本語: директория docs/ja/

🛠️ Обзор инструментов

Веб-краулинг (3)

  • crawl_url - Извлечение контента веб-страницы с поддержкой JavaScript

  • deep_crawl_site - Краулинг нескольких страниц сайта с настраиваемой глубиной

  • crawl_url_with_fallback - Краулинг со стратегиями резервного копирования для сайтов с защитой от ботов

Извлечение данных (3)

  • intelligent_extract - Извлечение специфических данных с веб-страниц с помощью LLM

  • extract_entities - Извлечение сущностей (email, телефоны и т.д.) с веб-страниц

  • extract_structured_data - Извлечение структурированных данных с помощью CSS-селекторов или LLM

YouTube (4)

  • extract_youtube_transcript - Извлечение транскриптов YouTube с временными метками

  • batch_extract_youtube_transcripts - Извлечение транскриптов из нескольких видео YouTube (макс. 3)

  • get_youtube_video_info - Получение метаданных видео YouTube и доступности транскрипта

  • extract_youtube_comments - Извлечение комментариев к видео YouTube с пагинацией

Поиск (4)

  • search_google - Поиск в Google с фильтрацией по жанрам

  • batch_search_google - Выполнение нескольких поисковых запросов в Google (макс. 3)

  • search_and_crawl - Поиск в Google и краулинг топовых результатов

  • get_search_genres - Получение доступных жанров поиска

Обработка файлов (3)

  • process_file - Конвертация PDF, Word, Excel, PowerPoint, ZIP в markdown

  • get_supported_file_formats - Получение списка поддерживаемых форматов файлов и возможностей

  • enhanced_process_large_content - Обработка большого контента с чанкингом и фильтрацией BM25

Пакетные операции (2)

  • batch_crawl - Краулинг нескольких URL с резервными стратегиями (макс. 3 URL)

  • multi_url_crawl - Краулинг нескольких URL с конфигурацией на основе шаблонов (макс. 5 шаблонов URL)

💾 Сохранение больших результатов на диск (экономия токенов)

Все инструменты сбора информации принимают необязательный параметр output_path, который записывает полностью полученный контент прямо на диск и возвращает компактный ответ, содержащий только метаданные. Это позволяет LLM получать огромные страницы, длинные транскрипты YouTube или целые пакеты данных, не превышая лимит контекста — читайте из сохраненного файла только тогда, когда это необходимо.

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

  • Инструменты для одного файла (например, crawl_url, extract_youtube_transcript) записывают один .md (или .json для инструментов типа JSON) — передайте абсолютный путь к файлу; расширение добавляется автоматически, если оно опущено. Существующий обычный файл по этому пути будет отклонен, если не указано overwrite=true.

  • Пакетные инструменты (batch_crawl, multi_url_crawl, deep_crawl_site, search_and_crawl, batch_extract_youtube_transcripts) ожидают абсолютный путь к директории и записывают один .md на каждый URL плюс index.json. Любой несуществующий путь рассматривается как директория и создается — включая имена, содержащие точки, такие как /tmp/run.v1. Если путь уже существует как обычный файл, вызов будет отклонен. batch_crawl / multi_url_crawl сохраняют свою форму возврата list и встраивают ключ output_file в каждый успешный элемент.

  • Инструменты с словарем запросов (search_google, batch_search_google, search_and_crawl, batch_extract_youtube_transcripts) считывают ключи сохранения напрямую из своего словаря запросов.

  • Общие параметры: output_path (абсолютный; None или "" пропускает сохранение), include_content_in_response (по умолчанию false — если true, контент также включается в ответ, все еще подвергается любому нарезанию content_limit/content_offset/max_content_per_page), overwrite (по умолчанию false).

  • Запись атомарна для каждого файла (временный файл + os.replace); родительские директории создаются автоматически; полная неразрезанная полезная нагрузка сохраняется до любого нарезания или внутренней обрезки инструмента, поэтому копия на диске всегда полная, даже если ответ был обрезан.

  • Пакетные инструменты со словарем (deep_crawl_site, search_and_crawl, batch_extract_youtube_transcripts) пропускают сохранение для элементов, которые сообщают success=false; они все равно появляются в index.json с file: null, чтобы вызывающие стороны могли проанализировать список попыток.

Пример для одного Markdown-файла:

{
  "tool": "crawl_url",
  "arguments": {
    "url": "https://example.com/long-article",
    "output_path": "/tmp/crawl_out/article.md"
  }
}

Структурированное извлечение JSON (расширение добавляется автоматически):

{
  "tool": "extract_structured_data",
  "arguments": {
    "url": "https://example.com/products",
    "extraction_type": "css",
    "css_selectors": {"price": ".price", "name": "h1"},
    "output_path": "/tmp/crawl_out/products"
  }
}

Режим пакетной директории:

{
  "tool": "batch_crawl",
  "arguments": {
    "urls": ["https://a.example", "https://b.example"],
    "output_path": "/tmp/crawl_out/batch_run1"
  }
}

Каждый сохраненный markdown-файл начинается с блока YAML frontmatter, содержащего url, title, fetched_at и source_tool, поэтому артефакт является самоописываемым.

🎯 Типичные сценарии использования

Исследование контента:

search_and_crawl → extract_structured_data → analysis

Анализ документации:

deep_crawl_site → batch processing → extraction

Анализ медиа:

extract_youtube_transcript → summarization workflow

Картирование сайтов:

batch_crawl → multi_url_crawl → comprehensive data

🚨 Быстрое устранение неполадок

Проблемы с установкой:

  1. Перезапустите скрипты установки с соответствующими привилегиями

  2. Попробуйте метод установки для разработки

  3. Проверьте, установлены ли зависимости браузера

Проблемы с производительностью:

  • Используйте wait_for_js: true для сайтов с интенсивным использованием JavaScript

  • Увеличьте время ожидания (timeout) для медленно загружающихся страниц

  • Используйте extract_structured_data для целевого извлечения

Проблемы с конфигурацией:

  • Проверьте синтаксис JSON в claude_desktop_config.json

  • Убедитесь, что пути к файлам абсолютные

  • Перезапустите Claude Desktop после внесения изменений в конфигурацию

🏗️ Структура проекта

  • Оригинальная библиотека: crawl4ai от unclecode

  • MCP-обертка: Этот репозиторий (walksoda)

  • Реализация: Неофициальная сторонняя интеграция

📄 Лицензия

Этот проект является неофициальной оберткой вокруг библиотеки crawl4ai. Пожалуйста, обратитесь к оригинальной лицензии crawl4ai для получения информации о базовой функциональности.

🤝 Вклад в проект

Смотрите наше Руководство по разработке для получения рекомендаций по внесению вклада и инструкций по настройке среды разработки.

🔗 Связанные проекты

  • crawl4ai - Базовая библиотека для веб-краулинга

  • Model Context Protocol - Стандарт, который реализует этот сервер

  • Claude Desktop - Основной клиент для MCP-серверов

Available Tools

21 tools
batch_crawlBatch CrawlA

Crawl multiple URLs with fallback. Max 3 URLs per call. Use output_path (directory) to persist full per-URL markdown + index.json; the return shape stays a list, each success item gets an output_file key.

Inputs: urls (required), overwrite, output_path, wait_for_js, +4 more. Returns: result

batch_extract_youtube_transcriptsBatch Extract YouTube TranscriptsB
Read-only

Extract transcripts from multiple YouTube videos. Max 3 URLs per call. Supply output_path (directory) in the request to persist per-video markdown files + index.json and receive a slim response.

Inputs: request (required). Returns: object

batch_search_googleBatch Search GoogleA
Read-only

Deprecated alias of batch_search_web (same request keys and results). Use batch_search_web.

Inputs: request (required). Returns: object

batch_search_webBatch Search WebA
Read-only

Perform multiple web searches. Max 3 queries per call. Supply output_path in the request to persist the full result set to disk as JSON and receive a slim response.

Inputs: request (required). Returns: object

crawl_urlCrawl URLA

Extract web page content with JavaScript support. Use wait_for_js=true for SPAs. Use content_offset/content_limit to paginate the response. Use output_path to persist the full unsliced content to disk as markdown and receive a slim metadata-only response.

Inputs: url (required), timeout, overwrite, output_path, +12 more. Returns: object

crawl_url_with_fallbackCrawl URL with FallbackA
Read-only

Crawl with fallback strategies for anti-bot sites. Use content_offset/content_limit to paginate the response. Use output_path to persist the full unsliced content to disk as markdown and receive a slim response.

Inputs: url (required), timeout, overwrite, output_path, +10 more. Returns: object

deep_crawl_siteDeep Crawl SiteB
Read-only

Crawl multiple pages from a site with configurable depth. Use output_path (directory) to persist per-URL markdown files + index.json; the response is then slimmed to metadata only.

Inputs: url (required), max_depth, max_pages, overwrite, +8 more. Returns: object

enhanced_process_large_contentEnhanced Process Large ContentC
Read-only

Process large content with chunking and BM25 filtering. Use output_path to persist chunks + summaries to disk as JSON and receive a slim response.

Inputs: url (required), overwrite, output_path, filter_query, +10 more. Returns: object

extract_entitiesExtract EntitiesB
Read-only

Extract entities (emails, phones, etc.) from web pages. Use output_path to persist the full entity extraction output to disk as JSON and receive a slim response.

Inputs: url (required), entity_types (required), use_llm, llm_model, +7 more. Returns: object

extract_structured_dataExtract Structured DataC
Read-only

Extract structured data using CSS selectors or LLM. Use output_path to persist the full extraction (including table_data) to disk as JSON and receive a slim response.

Inputs: url (required), timeout, overwrite, output_path, +8 more. Returns: object

extract_youtube_commentsExtract YouTube CommentsA
Read-only

Extract YouTube video comments. Supports pagination via comment_offset. Use output_path to persist the full unsliced comment list to disk as JSON; the response is then slimmed to metadata only.

Inputs: url (required), sort_by, overwrite, output_path, +6 more. Returns: object

extract_youtube_transcriptExtract YouTube TranscriptA
Read-only

Extract YouTube transcripts with timestamps. Works with public captioned videos. Supports fallback to page crawl. Use output_path to persist the full unsliced transcript to disk as markdown.

Inputs: url (required), timezone, languages, llm_model, +16 more. Returns: object

get_search_genresGet Search GenresB
Read-only

Get available search genres for targeted searching.

Inputs: no named parameters. Returns: object

get_supported_file_formatsGet Supported File FormatsA
Read-only

Get supported file formats (PDF, Office, ZIP) and their capabilities.

Inputs: no named parameters. Returns: object

get_youtube_video_infoGet YouTube Video InfoA
Read-only

Get YouTube video metadata and transcript availability. Use output_path to persist the video info to disk as markdown and receive a slim response.

Inputs: video_url (required), timezone, llm_model, overwrite, +7 more. Returns: object

intelligent_extractIntelligent ExtractB
Read-only

Extract specific data from web pages using LLM. Use output_path to persist the full extraction output to disk as JSON and receive a slim response.

Inputs: url (required), extraction_goal (required), use_llm, llm_model, +8 more. Returns: object

multi_url_crawlMulti-URL CrawlB
Read-only

Multi-URL crawl with pattern-based config. Max 5 URL patterns per call. Use output_path (directory) to persist full per-URL markdown + index.json; the return shape stays a list, each success item gets an output_file key.

Inputs: url_configurations (required), overwrite, output_path, base_timeout, +4 more. Returns: result

process_fileProcess FileA
Read-only

Convert PDF, Word, Excel, PowerPoint, ZIP to markdown. A refused download is retried in a headless browser; error_code download_blocked means the site serves the file to neither, and not_a_document means the URL is a web page (use crawl_url). Use output_path to persist the full unsliced converted markdown to disk and receive a slim response.

Inputs: url (required), llm_model, overwrite, max_size_mb, +10 more. Returns: object

search_and_crawlSearch and CrawlB
Read-only

Search the web (engine as in search_web) and crawl top results. Combines search with full content extraction. Supply output_path (directory) in the request to persist per-page markdown (unsliced) + index.json and receive a slim response.

Inputs: request (required). Returns: object

search_googleSearch GoogleA
Read-only

Deprecated alias of search_web (same request keys and results; the engine is not limited to Google). Use search_web.

Inputs: request (required). Returns: object

search_webSearch WebA
Read-only

Search the web with Google Custom Search, Brave, Exa, SearXNG or TinyFish (engine key, or the server default). Optional search_genre filtering (file types or language; see get_search_genres). Supply output_path in the request to persist the full unsliced result set to disk as JSON and receive a slim response.

Inputs: request (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 21 tools

    Disambiguation3/5

    Several tools have overlapping purposes: crawl_url vs crawl_url_with_fallback, batch_crawl vs multi_url_crawl (both multi-URL with output_path), and intelligent_extract vs extract_structured_data (the latter also supports LLM). Deprecated aliases (search_google, batch_search_google) add further confusion even though descriptions redirect to the canonical tools.

    Naming Consistency3/5

    All names are snake_case, but verb conventions are mixed: crawl_url, deep_crawl_site, multi_url_crawl, batch_crawl, enhanced_process_large_content, and get_* variants don't follow a single predictable pattern. The deprecated *_google aliases also break the search_web naming family.

    Tool Count3/5

    21 tools is on the heavy side for this surface. Several earn their place (crawl, extract, YouTube, file processing), but deprecated aliases and near-duplicate crawl variants inflate the count without adding distinct capability.

    Completeness4/5

    The domain is broad (web search, single/batch/deep crawling, structured extraction, YouTube transcripts/comments/info, file conversion, large-content processing) and the surface covers most of it. Minor gaps like sitemap-aware crawling or explicit cache/robots handling are workable.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A locally-hosted MCP server that provides AI assistants with advanced web crawling capabilities, including structured data extraction, deep site crawling, and page screenshots. It enables users to convert single or multiple URLs into clean Markdown content for processing by LLMs without requiring external API keys for basic features.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server integrating Crawl4AI for universal web crawling and data extraction. Enables AI agents to crawl, extract markdown/HTML, take screenshots, generate PDFs, and execute JavaScript on web pages.
      45 npm
      7
      MIT