# Crawl4AI MCP — Web Crawling Server for AI Agents > MCP server that gives AI agents web crawling superpowers. Crawl4AI MCP enables Claude Code and Cursor to scrape, extract, and process web content through tool calls. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use ```json // claude_desktop_config.json or .cursor/mcp.json { "mcpServers": { "crawl4ai": { "command": "uvx", "args": ["crawl4ai-mcp"] } } } ``` ```bash # Or install and run directly pip install crawl4ai-mcp crawl4ai-mcp ``` Now your AI agent can crawl any website: ``` User: "Crawl the Anthropic docs and summarize the API pricing" Agent: [calls crawl4ai.crawl_url tool] → returns clean markdown → summarizes ``` ## What is Crawl4AI MCP? Crawl4AI MCP is a Model Context Protocol server that wraps the Crawl4AI web scraping library. It gives AI agents (Claude Code, Cursor, Cline) the ability to crawl websites, extract structured data, and process web content — all through standard MCP tool calls. The agent decides when to crawl and what to extract, making it ideal for research, data gathering, and RAG workflows. **Answer-Ready**: Crawl4AI MCP is an MCP server for AI agent web crawling. Gives Claude Code and Cursor the ability to scrape websites, extract markdown, and gather structured data via tool calls. Handles JavaScript rendering and anti-bot measures. Based on Crawl4AI (20k+ stars). **Best for**: AI agents that need web access for research or data extraction. **Works with**: Claude Code, Claude Desktop, Cursor, any MCP-compatible client. **Setup time**: Under 2 minutes. ## Core Tools ### 1. crawl_url Crawl a single page and return clean markdown. ### 2. smart_crawl Crawl with AI-powered content extraction — automatically identifies main content and removes noise. ### 3. extract_structured Extract structured data using CSS selectors or AI extraction. ### 4. batch_crawl Crawl multiple URLs in parallel. ## Configuration Options ```json { "mcpServers": { "crawl4ai": { "command": "uvx", "args": ["crawl4ai-mcp"], "env": { "CRAWL4AI_BROWSER": "chromium", "CRAWL4AI_HEADLESS": "true", "CRAWL4AI_MAX_CONCURRENT": "5" } } } } ``` ## Use Cases | Use Case | How | |----------|-----| | Research Assistant | Agent crawls sources, synthesizes findings | | Competitive Analysis | Crawl competitor sites, extract pricing | | Documentation Q&A | Crawl docs site, answer questions | | Content Aggregation | Batch crawl RSS feeds, summarize | | Lead Generation | Extract contact info from business pages | ## Crawl4AI MCP vs Other Web MCPs | Feature | Crawl4AI MCP | Puppeteer MCP | Firecrawl MCP | |---------|-------------|---------------|---------------| | JS Rendering | Yes | Yes | Yes | | AI Extraction | Built-in | No | API-based | | Batch Crawl | Yes | No | Yes | | Cost | Free (local) | Free (local) | API pricing | | Anti-bot | Good | Basic | Excellent | | Speed | Fast | Moderate | Fast | ## FAQ **Q: Does it handle JavaScript-heavy sites?** A: Yes, uses Playwright/Chromium for full JavaScript rendering before extraction. **Q: How is it different from the Puppeteer MCP?** A: Crawl4AI MCP is optimized for content extraction (clean markdown, structured data). Puppeteer MCP is lower-level (screenshots, DOM manipulation, form filling). **Q: Can I use it for full site crawling?** A: Yes, the batch_crawl tool supports crawling multiple pages. For full site discovery, combine with sitemap parsing. ## Source & Thanks > Built on [Crawl4AI](https://github.com/unclecode/crawl4ai) by unclecode. Licensed under Apache 2.0. > > [crawl4ai-mcp](https://pypi.org/project/crawl4ai-mcp/) — MCP wrapper for Crawl4AI (20k+ stars) ## Quick Start ```json {"mcpServers": {"crawl4ai": {"command": "uvx", "args": ["crawl4ai-mcp"]}}} ``` One line of configuration gives AI agents web crawling capabilities. ## What is Crawl4AI MCP? Crawl4AI MCP is an MCP-protocol-based web crawling server that lets Claude Code, Cursor, and other AI agents fetch and extract web content through tool calls. **In one sentence**: MCP web crawling server — AI agents fetch web pages and extract Markdown or structured data via tool calls, with JS rendering. Built on Crawl4AI (20k+ stars). **For**: AI agent users needing web access. ## Core Tools ### 1. crawl_url — single-page fetch ### 2. smart_crawl — AI-powered intelligent extraction ### 3. batch_crawl — bulk crawling ## FAQ **Q: Does it support JS rendering?** A: Yes — uses Playwright/Chromium. **Q: How is it different from Puppeteer MCP?** A: Crawl4AI MCP focuses on content extraction; Puppeteer MCP is lower-level DOM manipulation. ## Source & Thanks > Built on [crawl4ai](https://github.com/unclecode/crawl4ai) — 20k+ stars, Apache 2.0 --- Source: https://tokrepo.com/en/workflows/crawl4ai-mcp-web-crawling-server-ai-agents-b3396cdc Author: Crawl4AI