Crawl-MCP
This MCP server lets you crawl, extract, search, process documents, and retrieve YouTube data via crawl4ai, with disk persistence to save tokens.
Crawl web pages with JavaScript rendering, pagination, screenshots, media extraction, anti-bot fallback, recursive/deep crawls, and batch/multi-URL crawling.
Extract structured data with CSS selectors or LLM, intelligent LLM extraction, and entity extraction such as emails, phones, URLs, dates, and custom patterns.
Search the web using Google Custom Search, Brave, Exa, TinyFish, or self-hosted SearXNG, including genre filters, extra result types, batch searches, and search-and-crawl workflows.
Convert PDFs, Word, Excel, PowerPoint, and ZIP archives to markdown; process large content with chunking and BM25 filtering.
Retrieve YouTube transcripts, batch transcripts, video metadata, and comments with pagination and timezone conversion.
Persist full results to disk with
output_pathto keep responses slim, optionally include content in responses, auto-summarize large content, and receive structured errors on failure.
Enables Google Search integration with 7 optimized search genres using official Google operators, including tools for single searches, batch searches, and combined search-and-crawl operations with metadata extraction.
Extracts video transcripts and summaries from YouTube videos without requiring API keys, supporting multi-language transcript extraction and batch processing of multiple videos.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Crawl-MCP summarize this article about AI advancements from https://example.com/ai-news"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Crawl-MCP: Unofficial MCP Server for crawl4ai
This is an unofficial MCP server for the crawl4ai library. It is not affiliated with the crawl4ai project.
A Model Context Protocol (MCP) server that wraps crawl4ai. It extracts content from web pages, PDFs, Office documents, YouTube videos, and web search results (Google Custom Search, Brave, Exa, TinyFish, or a self-hosted SearXNG). To keep token usage low, it can summarize content with an LLM (auto_summarize, opt-in) and write full results to disk (output_path).
Key Features
Web search through Google Custom Search, Brave, Exa, TinyFish, or a self-hosted SearXNG instance, with automatic fallback between engines and 6 genres (file type and language filters)
Web crawling with JavaScript rendering, recursive site crawls, and entity extraction
Content extraction from web pages, PDFs, Word, Excel, PowerPoint, and ZIP archives
LLM summarization when
auto_summarize=true. Without it, large responses are truncated at about 25000 tokens, andoutput_pathsaves the full contentDisk persistence: full results go to a file and the response carries only metadata, so an agent reads the file when it needs the content
YouTube transcripts and summaries without an API key
21 tools that return structured error dicts on failure
Related MCP server: Crawl4AI MCP Server
Quick Start
Prerequisites (Required First)
Python 3.11 or later
Install the system dependencies for Playwright.
Ubuntu 24.04 LTS needs a manual setup:
# 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.64.1 && playwright install chromium
sudo playwright install-depsOther Linux distributions (installs Chromium and its system libraries):
uvx --from playwright==1.64.1 playwright install --with-deps chromiummacOS / Windows:
uvx --from playwright==1.64.1 playwright install chromiumIf Playwright is already installed in a Python environment, python -m playwright install --with-deps chromium (Linux) or playwright install chromium (macOS/Windows) works as well.
Installation
UVX (recommended):
# After system preparation above - that's it!
uvx --from git+https://github.com/walksoda/crawl-mcp crawl-mcpDocker:
# 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-mcpThe Docker image includes headless Chromium, Firefox, and WebKit, plus Google Chrome Stable. Browser flags are preset for running in a container, the server runs as a non-root user, and all required system libraries are installed.
Claude Desktop Setup
For a UVX installation, add this to your claude_desktop_config.json:
{
"mcpServers": {
"crawl-mcp": {
"transport": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/walksoda/crawl-mcp",
"crawl-mcp"
]
}
}
}For Docker in HTTP mode:
{
"mcpServers": {
"crawl-mcp": {
"transport": "http",
"baseUrl": "http://localhost:8000"
}
}
}The server supports MCP protocol 2026-07-28 and the earlier versions back to 2024-11-05 over both stdio and HTTP, so clients built for either can connect. The HTTP+SSE transport (--transport sse) is deprecated in MCP 2026-07-28. See the HTTP Integration Guide.
Documentation
Topic | Description |
Installation on each platform | |
Parameters and behavior of every tool | |
Client and platform configurations | |
Running the server over HTTP and calling it | |
Workflows that combine tools | |
Development setup and contributing |
Language-Specific Documentation
Tool Overview
Web Crawling (3)
crawl_url- Extract web page content with JavaScript support (remote.html/.htmURLs are rendered in the browser; document URLs are converted as files)deep_crawl_site- Crawl multiple pages from a site with configurable depth (max_depth1-2,max_pages1-10)crawl_url_with_fallback- Crawl with fallback strategies for anti-bot sites
Data Extraction (3)
intelligent_extract- Extract specific data from web pages using LLMextract_entities- Extract entities (emails, phones, etc.) from web pagesextract_structured_data- Extract structured data using CSS selectors or LLM
YouTube (4)
extract_youtube_transcript- Extract YouTube transcripts with timestamps and timezone-converted publish time (timezone)batch_extract_youtube_transcripts- Extract transcripts from multiple YouTube videos (max 3)get_youtube_video_info- Get YouTube video metadata (includingpublished_atin the requestedtimezone) and transcript availabilityextract_youtube_comments- Extract YouTube video comments with pagination
Search (6)
search_web- Web search with optional genre filteringbatch_search_web- Run multiple web searches (max 3)search_and_crawl- Web search and crawl of the top resultsget_search_genres- Get available search genres and the engine configurationsearch_google,batch_search_google- Deprecated aliases ofsearch_webandbatch_search_web
The search tools need at least one configured engine: GOOGLE_SEARCH_API_KEY and GOOGLE_SEARCH_ENGINE_ID (Google Custom Search, closed to new customers and ending on 2027-01-01), BRAVE_SEARCH_API_KEY, EXA_API_KEY, SEARXNG_URL (a self-hosted SearXNG instance, no API key), or TINYFISH_API_KEY (TinyFish Search API, free up to 12,000 searches per day). SEARCH_ENGINE sets the default engine (auto tries the configured engines in SEARCH_ENGINE_ORDER, default google_custom,brave,exa,searxng,tinyfish), and the engine request key overrides it for one call. See the API Reference.
search_web, batch_search_web and search_and_crawl accept the same search_genre values: pdf, documents, presentations, spreadsheets, japanese, english. Matching is case-insensitive. Any other value returns an invalid_search_genre error before the search runs. Exa cannot filter by file type, so auto skips Exa for the file type genres.
result_type adds other result types to a search: discussions (forum posts with forum name, answer count and score), faq (question and answer excerpts), videos, news, and research_paper (academic papers with authors, venue, year, citation count and PDF URL). Several can be requested at once, for example ["web", "discussions", "faq"]; the extra types come back in extra_results. discussions, faq and videos need the brave engine, share one Brave request and appear for some queries only. research_paper needs the tinyfish engine. news comes from brave (Brave News Search) or tinyfish, as a separate request. auto uses only the engines that return every requested type.
File Processing (3)
process_file- Convert PDF, Word, Excel, PowerPoint, ZIP to markdownget_supported_file_formats- Get supported file formats and capabilitiesenhanced_process_large_content- Process large content with chunking and BM25 filtering
Batch Operations (2)
batch_crawl- Crawl multiple URLs sequentially with fallback (max 3 URLs)multi_url_crawl- Multi-URL crawl with pattern-based config (max 5 URL patterns, processed sequentially)
Persist Large Results to Disk
All information-gathering tools accept an optional output_path parameter. The tool writes the full content to disk and returns only metadata. An LLM can then fetch large pages, long YouTube transcripts, or whole batches without filling its context, and read the saved file when it needs the content.
How it works:
Single-file tools (e.g.
crawl_url,extract_youtube_transcript) write one.md(or.jsonfor JSON-kind tools). Pass an absolute file path; the extension is added if omitted. An existing regular file at that path is rejected unlessoverwrite=true.Batch tools (
batch_crawl,multi_url_crawl,deep_crawl_site,search_and_crawl,batch_extract_youtube_transcripts) expect an absolute directory path and write one.mdper URL plusindex.json. Any non-existent path is treated as a directory and created, including names containing dots such as/tmp/run.v1. If the path already exists as a regular file, the call is rejected.batch_crawl/multi_url_crawlkeep theirlistreturn shape and embed anoutput_filekey on each success item.Request-dict tools (
search_google,batch_search_google,search_and_crawl,batch_extract_youtube_transcripts) read the persistence keys directly from their request dict.Common parameters:
output_path(absolute; defaultNone,""also skips persistence),include_content_in_response(defaultfalse; whentrue, the content is also included in the response, still subject to anycontent_limit/content_offset/max_content_per_pageslicing),overwrite(defaultfalse).Writes are atomic per file (temp file +
os.replace); parent directories are auto-created; the full unsliced payload is written before any slicing or tool-internal truncation, so the file is complete even when the response is sliced.Batch dict tools (
deep_crawl_site,search_and_crawl,batch_extract_youtube_transcripts) skip per-item persistence for items that reportsuccess=false; these still appear inindex.jsonwithfile: null, so callers can see every attempted item. (batch_crawl/multi_url_crawlalso skip failed items and record them inindex.jsonwithoutput_file: null.)
Single Markdown file:
{
"tool": "crawl_url",
"arguments": {
"url": "https://example.com/long-article",
"output_path": "/tmp/crawl_out/article.md"
}
}JSON structured extraction (the extension is added automatically):
{
"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"
}
}Batch directory mode:
{
"tool": "batch_crawl",
"arguments": {
"urls": ["https://a.example", "https://b.example"],
"output_path": "/tmp/crawl_out/batch_run1"
}
}Each persisted markdown file begins with a YAML frontmatter block containing url, title, fetched_at, and source_tool.
Common Use Cases
Content research:
search_and_crawl → extract_structured_data → analysisCollecting documentation:
deep_crawl_site → batch processing → extractionVideo analysis:
extract_youtube_transcript → summarization workflowSite mapping:
batch_crawl → multi_url_crawl → aggregated dataQuick Troubleshooting
Installation problems:
Re-run the Playwright install commands above with proper privileges
Try the development installation method
Check that the browser dependencies are installed
Slow or incomplete pages:
Use
wait_for_js: truefor JavaScript-heavy sitesIncrease timeout for slow-loading pages
Use
extract_structured_datafor targeted extraction
Configuration problems:
Check JSON syntax in
claude_desktop_config.jsonVerify file paths are absolute
Restart Claude Desktop after configuration changes
Project Structure
The underlying library is crawl4ai by unclecode. This repository (walksoda) is an unofficial third-party MCP wrapper around it.
License
This project is an unofficial wrapper around the crawl4ai library. See the crawl4ai license for the underlying functionality.
Contributing
See the Development Guide for development setup and contribution guidelines.
Related Projects
crawl4ai - The underlying web crawling library
Model Context Protocol - The standard this server implements
Claude Desktop - Primary client for MCP servers
Available Tools
21 toolsbatch_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 TranscriptsBRead-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 GoogleARead-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 WebARead-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 FallbackARead-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 SiteBRead-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 ContentCRead-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 EntitiesBRead-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 DataCRead-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 CommentsARead-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 TranscriptARead-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 GenresBRead-only
Get available search genres for targeted searching.
Inputs: no named parameters. Returns: object
get_supported_file_formatsGet Supported File FormatsARead-only
Get supported file formats (PDF, Office, ZIP) and their capabilities.
Inputs: no named parameters. Returns: object
get_youtube_video_infoGet YouTube Video InfoARead-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 ExtractBRead-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 CrawlBRead-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 FileARead-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 CrawlBRead-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 GoogleARead-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 WebARead-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
Scored across 21 tools
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.
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.
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.
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
Related MCP Connectors
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP Server for Web scraping and Crawling, built using Crawl4AI224-
- FlicenseNot gradedqualityDmaintenanceA 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.-
- AlicenseAqualityBmaintenanceWeb extraction MCP server for AI agents. Extract structured data from any URL with built-in Cloudflare bypass, JavaScript rendering, and intelligent parsing. Returns clean markdown or JSON.5794 npm2MIT
- AlicenseNot gradedqualityDmaintenanceMCP 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 npm7MIT