Web Crawler MCP logo

Web Crawler MCP

Community
laurentvv

Web crawling tool that integrates with AI assistants via the MCP

Publisherlaurentvv
Repositorycrawl4ai-mcp-llm
LanguagePython
Forks
17
Stars
42
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Web Crawler MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    42 stars and 17 forks from the linked repository.

Web Crawler MCP

English 中文 हिंदी Español Français العربية বাংলা Русский Português Bahasa Indonesia

Python License

A powerful web crawling tool that integrates with AI assistants via the MCP (Model Context Protocol). This project allows AI assistants to crawl websites, extract dynamic content, navigate through links, and save structured Markdown files directly.

📋 Features

  • Native integration with AI assistants via MCP
  • Return scraped Markdown content directly to the AI
  • Extracts and surfaces internal/external links for AI navigation
  • Website crawling with configurable depth
  • Detailed crawl result statistics
  • Error and not found page handling
  • Advanced Scraping Capabilities:
    • Magic Mode: Bypass anti-bots (like Cloudflare) and simulate real browser behavior
    • Targeted Extraction: Fetch only what you need using CSS selectors
    • Custom JavaScript: Execute code before extraction (clicks, scrolls, form fills)
    • Persistent Sessions: Keep cookies and state across requests for authenticated sites
    • SPA Support: Wait for dynamic CSS selectors or set explicit pre-extraction delays

🚀 MCP Configuration

The simplest and recommended way to use this tool is via uvx, which automatically fetches and runs the latest published version from PyPI.

Prerequisites

  • uv installed on your system.

Setup for AI Assistants (e.g., Claude Desktop, Cline)

Add the following to your AI Assistant's MCP configuration file (e.g., cline_mcp_settings.json or claude_desktop_config.json):

Note for Windows Users: It is highly recommended to specify --python 3.13 to avoid compilation issues with certain dependencies.

From PyPI (recommended):

json
{
  "mcpServers": {
    "crawl": {
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "crawl4ai-mcp-llm"
      ],
      "disabled": false,
      "autoApprove": [],
      "timeout": 600
    }
  }
}

From GitHub (latest unreleased):

json
{
  "mcpServers": {
    "crawl": {
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "git+https://github.com/laurentvv/crawl4ai-mcp-llm",
        "crawl4ai-mcp-llm"
      ],
      "disabled": false,
      "autoApprove": [],
      "timeout": 600
    }
  }
}

Important: Browser Installation

The crawler uses Playwright to handle dynamic content. You must install the required browsers after setting up the tool:

bash
uv run playwright install chromium

🖥️ Usage

Once configured, you can use the crawler by asking your AI assistant to perform a crawl.

Usage Examples with Claude/Cline

  • Simple Crawl: "Can you crawl the site example.com and give me a summary?"
  • Crawl with Options: "Can you crawl https://example.com with a depth of 3 and include external links?"
  • Dynamic Content: "Crawl this React app and wait for the .main-content selector to load."
  • Bypass Protections: "Crawl example.com but use 'magic mode' to bypass the anti-bot protection."
  • Targeted Extraction: "Crawl the docs site but only extract content matching the h1, p.lead CSS selector."

🛠️ Available Parameters (MCP Tool)

The crawl tool accepts the following parameters:

ParameterTypeDescriptionDefault Value
urlstringURL to crawl (required)-
max_depthintegerMaximum crawling depth2
include_externalbooleanInclude external linksfalse
verbosebooleanEnable detailed outputtrue
wait_for_selectorstringCSS selector to wait for before extracting content. Useful for single-page applications.None
return_contentbooleanWhether to return the extracted content directly in the MCP response (truncated to 50k chars if necessary).true
output_filestringOutput file pathautomatically generated
magicbooleanEnable magic mode to bypass anti-bots and simulate a real browserfalse
css_selectorstringSpecific CSS selector to extract only targeted elements from the pageNone
js_codestringCustom JavaScript code to execute on the page before extractionNone
session_idstringPersistent session identifier to keep cookies and browser state across requestsNone
delay_before_return_htmlnumberDelay in seconds to wait before extracting HTML (useful for heavy JS pages)None

👨‍💻 Development

If you want to modify the crawler or run it locally:

  1. Clone this repository:
bash
git clone https://github.com/laurentvv/crawl4ai-mcp-llm
cd crawl4ai-mcp-llm
  1. Install dependencies using uv:
bash
uv sync
  1. Test the MCP server locally using the official MCP Inspector:
bash
npx -y @modelcontextprotocol/inspector uv run crawl4ai-mcp-llm
  1. Run the automated test suite:
bash
uv run pytest tests/
  1. Run the MCP server directly (for standard usage):
bash
uv run crawl4ai-mcp-llm

🤝 Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Glama MCP

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "laurentvv-crawl4ai-mcp": {
      "command": "uvx",
      "args": [
        "crawl4ai-mcp"
      ]
    }
  }
}

Use Web Crawler MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Web Crawler MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Web Crawler MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Web Crawler MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "laurentvv-crawl4ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "crawl4ai-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Web Crawler MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Web Crawler MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Web Crawler MCP to help me with this task?
Web Crawler MCP
Sure. I read it.
Here is what I found using Web Crawler MCP.

Frequently asked questions

What is the Web Crawler MCP MCP server used for?

Web Crawler MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Web Crawler MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Web Crawler MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Web Crawler MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Web Crawler MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Web Crawler MCP MCP to TypingMind?

Web Crawler MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Web Crawler MCP MCP provide in TypingMind?

Web Crawler MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Web Crawler MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Web Crawler MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇