Skip to content
MCP server

crawl4ai-mcp-llm MCP Server

A Model Context Protocol (MCP) server for Crawl4AI

crawl4ai-mcp-llm scores 49 (Fair), licensed MIT and written in HTML. It installs as a local process. It declares 17 tools. Filed under Web scraping, AI and memory. GitHub shows 45 stars. Package registries report about 214 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by laurentvvMITHTML45 stars
Trust score
49Fair
Trust score 49 of 100, Fair

Fair trust

49 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 49 comes from

0 + 20 + 5 + 10 + 4 + 10 = 49. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "laurentvv-crawl4ai-mcp-llm": {      "command": "uvx",      "args": [        "crawl4ai-mcp-llm"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools17Tool docs quality grade F

All capabilities
  • close_sessionresource

    Close a browser session opened with sessionid (idle sessions are also closed automatically after CRAWL4AIMCPSESSIONTTL)

  • crawl_pageresource

    Fetch exactly one page and return its Markdown, without following links or writing any file (faster for "read this page" requests; renders an inline MCP App card)

  • string

  • number

  • array of strings

  • boolean

  • array of strings

  • string

  • integer

  • integer

  • integer

  • open_crawl_explorerresource

    Open the interactive Crawl4AI Explorer (auxpane side panel / global full-page view) to browse/search saved results, inspect individual crawled pages, launch crawls, and manage sessions

About

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 and page limit
  • Detailed crawl result statistics, including the list of skipped pages
  • Live progress notifications during long crawls
  • Saved results exposed as MCP resources (crawl://results/...)
  • Interactive MCP Apps (Antigravity / SEP-1865) — pre-bundled in the wheel (no Node.js required):
    • Inline Crawl Cards on crawl and crawl_page (status, KPIs, rendered/raw Markdown, filterable links, skipped pages, one-click attach)
    • Crawl4AI Explorer (open_crawl_explorer, side panel & full page): paginated saved-results browser, filename/URL & full-text search, per-page TOC (copy/attach a single crawled page), interactive crawl launcher, and session manager
    • Custom File Viewer (view_crawl_file for .crawlmd / .crawl.md): per-page TOC, metadata, and one-click live re-crawl
    • 100% backward-compatible plain-text responses for non-UI MCP clients
  • Error and not found page handling
  • Secure by default: only public http(s) URLs, JavaScript disabled unless you opt in
  • Advanced Scraping Capabilities:
    • URL Glob Filtering: target or skip paths during deep crawls with include_patterns and exclude_patterns
    • Magic Mode: crawl4ai heuristics that simulate a real browser and help with some anti-bot protections (not a guaranteed bypass)
    • Targeted Extraction: Fetch only what you need using CSS selectors
    • Custom JavaScript (opt-in): Execute code before extraction (clicks, scrolls, form fills)
    • Persistent Sessions: One browser is shared across calls, so a session_id keeps cookies and state until it is closed (close_session) or stays idle too long
    • 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. The @latest suffix makes uvx check PyPI at each start and run the newest published version (without it, uvx keeps reusing the version it cached the first time).

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: Python 3.12 or 3.13 is required (crawl4ai does not support 3.14 yet). Specifying --python 3.13 is recommended, especially on Windows, to avoid compilation issues with certain dependencies.

From PyPI (recommended):

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

From GitHub (latest unreleased):

{
  "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
    }
  }
}

Claude Code:

claude mcp add crawl -s user -- uvx --python 3.13 crawl4ai-mcp-llm@latest

Google Antigravity (with interactive MCP Apps):

Use the same uvx entry in mcp_config.json, or install the bundled plugin from this repository:

agy plugin validate ./plugin --strict
agy plugin install ./plugin

Important: Browser Installation

The crawler uses Playwright to handle dynamic content. Install Chromium once after setting up the tool:

# When running the server with uvx (recommended setup)
uvx --python 3.13 --from crawl4ai-mcp-llm@latest playwright install chromium

# From a local clone
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

  • Single Page: "Fetch https://docs.python.org/3/library/re.html (just that page) and summarize it."
  • 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."
  • Anti-bot Heuristics: "Crawl example.com with magic mode enabled."
  • Targeted Extraction: "Crawl the docs site but only extract content matching the h1, p.lead CSS selector."

🧰 Tools and Resources

ToolPurpose
crawlCrawl a site (following links up to max_depth/max_pages), save the result as Markdown and return a summary with the content (renders an inline MCP App card on supporting hosts)
crawl_pageFetch exactly one page and return its Markdown, without following links or writing any file (faster for "read this page" requests; renders an inline MCP App card)
close_sessionClose a browser session opened with session_id (idle sessions are also closed automatically after CRAWL4AI_MCP_SESSION_TTL)
open_crawl_explorerOpen the interactive Crawl4AI Explorer (aux_pane side panel / global full-page view) to browse/search saved results, inspect individual crawled pages, launch crawls, and manage sessions
view_crawl_fileHost-invoked Antigravity custom file viewer (entrypoint: file) for .crawlmd / .crawl.md exports with per-page TOC, metadata, and one-click re-crawl
app_list_results / app_read_result / app_search_resultsRead-only app helpers (visibility: ["app"]) used by the MCP App UI for paginated listings, full-text search, and on-demand full Markdown loading
ResourceContent
crawl://resultsJSON list of saved results (URI, name, size, date, source URL), newest first
crawl://results/{path}Full Markdown of a saved result, e.g. crawl://results/crawl_example_com_20260101_120000_ab12cd.md
ui://crawl4ai/crawl-card.htmlSingle-file MCP App HTML bundle (text/html;profile=mcp-app) for inline crawl cards
ui://crawl4ai/explorer.htmlSingle-file MCP App HTML bundle (text/html;profile=mcp-app) for the Crawl4AI Explorer view
ui://crawl4ai/file-viewer.htmlSingle-file MCP App HTML bundle (text/html;profile=mcp-app) for the .crawlmd / .crawl.md file viewer

The crawl response includes the resource URI of its result: when the returned content is truncated, the assistant can read the complete file through that resource even if it has no access to the server's file system.

Progress: crawl sends an MCP progress notification after each page. Clients that reset their timeout on progress can use a shorter timeout; otherwise keep a generous one (e.g. 600 s).

🛠️ Available Parameters (crawl tool)

The crawl tool accepts the following parameters (crawl_page accepts url, css_selector, wait_for_selector, magic, session_id, delay_before_return_html and max_content_chars):

ParameterTypeDescriptionDefault Value
urlstringhttp(s) URL to crawl (required). A bare domain such as example.com is treated as https://example.com.-
max_depthintegerLink depth to follow (0-5): 0 = start page only, 1 = the start page and its links, and so on2
max_pagesintegerMaximum number of pages to crawl (1-500). 1 fetches exactly one page.50
include_externalbooleanAlso follow links to other domainsfalse
wait_for_selectorstringCSS selector to wait for before extracting content. Useful for single-page applications.None
return_contentbooleanReturn the extracted content directly in the MCP responsetrue
max_content_charsintegerMaximum number of content characters returned in the response (1,000-500,000); the file always holds everything50000
output_filestringMarkdown file name, always stored inside the results directory (.md is added if missing)automatically generated
overwritebooleanAllow replacing an existing output_filefalse
magicbooleanEnable crawl4ai magic mode (anti-bot heuristics)false
css_selectorstringSpecific CSS selector to extract only targeted elements from the pageNone
js_codestringCustom JavaScript code to execute before extraction (requires CRAWL4AI_MCP_ALLOW_JS=true)None
session_idstringReuse cookies and browser state across calls with the same idNone
delay_before_return_htmlnumberDelay in seconds (0-60) before extracting HTML (useful for heavy JS pages)None
include_patternsarray of stringsOnly follow URLs matching at least one glob pattern (e.g. ["/docs/*", "*/api/*"])None
exclude_patternsarray of stringsSkip URLs matching any glob pattern (e.g. ["/blog/*", "*.pdf"]); overrides include_patternsNone

⚙️ Configuration (environment variables)

Set these in the env section of your MCP configuration:

VariableDescriptionDefault
CRAWL4AI_RESULTS_DIRDirectory where Markdown results are written~/.crawl4ai_mcp_llm/results
CRAWL4AI_MCP_ALLOW_JSAllow js_code and JavaScript wait conditions (js:...)false
CRAWL4AI_MCP_ALLOW_PRIVATE_NETWORKSAllow crawling localhost and private/link-local addressesfalse
CRAWL4AI_MCP_CRAWL_TIMEOUTMaximum duration of one crawl, in seconds (pages crawled so far are kept)300
CRAWL4AI_MCP_MAX_CONCURRENT_CRAWLSMaximum number of crawls running at the same time2
CRAWL4AI_MCP_SESSION_TTLSeconds after which an unused browser session (session_id) is closed1800
CRAWL4AI_MCP_VERBOSEEnable crawl4ai's detailed progress logs (on stderr)false
CRAWL4AI_MCP_LOG_LEVELServer log level (DEBUG, INFO, WARNING, ...)INFO
CRAWL4AI_MCP_UI_DIROptional directory overriding bundled MCP App HTML files for fast local UI iterationpackaged assets

🔒 Security

The AI assistant decides which URLs are crawled, and crawled pages may contain prompt-injection attempts. The server therefore:

  • only accepts http/https URLs (no file://, raw:, data: ...), and rejects hosts resolving to loopback, private or link-local addresses unless CRAWL4AI_MCP_ALLOW_PRIVATE_NETWORKS=true;
  • runs no custom JavaScript (including js: wait conditions) unless CRAWL4AI_MCP_ALLOW_JS=true;
  • writes files only inside the results directory and never overwrites them without overwrite=true;
  • wraps returned page content in <untrusted-web-content> tags so the assistant treats it as data.

Redirects and links discovered during a deep crawl are filtered on their URL only (no DNS lookup): keep private-network access disabled when the server can reach sensitive internal services.

👨‍💻 Development

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

  1. Clone this repository:
git clone https://github.com/laurentvv/crawl4ai-mcp-llm
cd crawl4ai-mcp-llm
  1. Install dependencies using uv:
uv sync
  1. Test the MCP server locally using the official MCP Inspector:
npx -y @modelcontextprotocol/inspector uv run crawl4ai-mcp-llm
  1. Run the checks (unit tests never hit the network):
uv run pytest --cov                # unit tests + coverage report (80% minimum)
uv run pytest -m integration       # real crawls, needs network and Chromium
uv run ruff check . && uv run ruff format --check . && uv run mypy
  1. Run the MCP server directly (for standard usage):
uv run crawl4ai-mcp-llm
  1. Test and rebuild the MCP App UI bundles (requires Node.js 20+):
cd ui && npm install && npm test && npm run typecheck && npm run build
  1. Validate or install the Antigravity plugin bundle (plugin/):
agy plugin validate ./plugin --strict
agy plugin install ./plugin

Changes are listed in CHANGELOG.md.

🤝 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

Frequently asked questions

What is crawl4ai-mcp-llm MCP Server?

A Model Context Protocol (MCP) server for Crawl4AI

How do I install crawl4ai-mcp-llm MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. crawl4ai-mcp-llm MCP Server runs locally from the PyPI package crawl4ai-mcp-llm with the command uvx crawl4ai-mcp-llm.

Is crawl4ai-mcp-llm MCP Server free and open source?

Yes. crawl4ai-mcp-llm MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does crawl4ai-mcp-llm MCP Server support remote (HTTP) connections?

No remote endpoint is listed for crawl4ai-mcp-llm MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does crawl4ai-mcp-llm MCP Server provide?

crawl4ai-mcp-llm MCP Server provides 13 tools, including css_selector, delay_before_return_html, exclude_patterns, and include_external. See the full tool list for descriptions and parameters.

How is crawl4ai-mcp-llm MCP Server's trust score calculated?

crawl4ai-mcp-llm MCP Server scores 49 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server