Crawl4AI

v1.0.0Search & Data Extractionstable

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 c

crawl4ai-mcp-servermcpai-integration
Share:
142
Stars
0
Downloads
0
Weekly
0/5

What is Crawl4AI?

Crawl4AI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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 conve...

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 c

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A locally-hosted MCP server that provides AI assistants with

Use Cases

A locally-hosted MCP server that provides AI assistants with advanced web crawli
weidwonder

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 11, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx crawl4ai-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Crawl4AI

The Crawl4AI MCP Server is a locally-hosted Python server that gives AI assistants powerful web crawling and content extraction capabilities built on top of the Crawl4AI library and FastMCP. It exposes two primary tools: a multi-engine web search (DuckDuckGo by default, Google with an API key) and a URL reader that converts any webpage into LLM-optimized Markdown with inline citations. The server intelligently filters navigation bars, ads, and other non-content elements while preserving source URLs for attribution. Developers and researchers use it to build AI workflows that require live web research, content summarization, and fact-checking.

Prerequisites

  • Python 3.9 or higher installed
  • pip and virtualenv for managing Python packages
  • Playwright browsers installed via 'playwright install' (required for JavaScript-heavy pages)
  • Optional: Google Custom Search API key and CSE ID for Google search support
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Download the Crawl4AI MCP Server source code to your local machine.

git clone https://github.com/weidwonder/crawl4ai-mcp-server.git
cd crawl4ai-mcp-server
2

Create and activate a virtual environment

Use a dedicated virtual environment to avoid dependency conflicts.

python -m venv crawl4ai_env
source crawl4ai_env/bin/activate  # Windows: .\crawl4ai_env\Scripts\activate
3

Install Python dependencies

Install the packages listed in requirements.txt, which includes crawl4ai, FastMCP, and search clients.

pip install -r requirements.txt
4

Install Playwright browsers

Crawl4AI uses Playwright for JavaScript rendering. Install the browser binaries with the following command.

playwright install
5

Configure optional Google search credentials

Copy the demo config and add your Google Custom Search credentials if you want Google search support. DuckDuckGo works with no config.

cp config_demo.json config.json
# Edit config.json and fill in:
# { "google": { "api_key": "YOUR_KEY", "cse_id": "YOUR_CSE_ID" } }
6

Start the MCP server

Run the main server entry point. It communicates via stdio with MCP clients.

python src/index.py

Crawl4AI Examples

Client configuration

Claude Desktop configuration that launches the Crawl4AI MCP server using the virtual environment's Python interpreter.

{
  "mcpServers": {
    "crawl4ai-mcp-server": {
      "command": "/absolute/path/to/crawl4ai-mcp-server/crawl4ai_env/bin/python",
      "args": ["/absolute/path/to/crawl4ai-mcp-server/src/index.py"],
      "env": {}
    }
  }
}

Prompts to try

Example prompts using the search and read_url tools once the server is running.

- "Search the web for 'Model Context Protocol best practices' and summarize the top 3 results"
- "Fetch the content of https://docs.python.org/3/library/asyncio.html and explain the key concepts"
- "Search for recent blog posts about Rust async programming and show me the titles and URLs"

Troubleshooting Crawl4AI

Playwright throws 'Executable doesn't exist' error when crawling

Run 'playwright install' again to download the browser binaries. If behind a corporate proxy, set HTTPS_PROXY before running the install command.

Google search returns an API error or no results

Verify config.json contains valid 'api_key' and 'cse_id' values. The Google Custom Search API must be enabled in your Google Cloud project, and the CSE ID must be configured to search the entire web.

read_url returns mostly empty or garbled content

Try changing the 'format' parameter to 'fit_markdown' which applies aggressive LLM-focused filtering. For sites that heavily rely on JavaScript, ensure Playwright browsers are installed so the crawler can render the page before extracting content.

Frequently Asked Questions about Crawl4AI

What is Crawl4AI?

Crawl4AI is a Model Context Protocol (MCP) server that 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 c It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Crawl4AI?

Follow the installation instructions on the Crawl4AI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Crawl4AI?

Crawl4AI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Crawl4AI free to use?

Yes, Crawl4AI is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "crawl4ai-mcp-server": { "command": "npx", "args": ["-y", "crawl4ai-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Crawl4AI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides