Skip to main content
Glama
Crawl4AI Complete MCP

Crawl4AI Complete MCP

by lexiismadd

Crawl4AI Complete MCP

Floating latest-stable Docker deployment of Crawl4AI with the official MCP Python SDK stdio and Streamable HTTP servers. Builds resolve exact releases and source commits into generated metadata; manual build overrides are available only for rollback/debugging. The bridge does not expose arbitrary Python, shell, or HTTP proxying.

Status

The current verified build resolves Crawl4AI 0.9.2 (7e801521428ee12509994d39151006f64055ebe3) and MCP Python SDK 2.0.0 (6f69a3758ebf2ee55ce050f58b470ce11af71133). These are build evidence, not permanent pins. The inspected source remains the implementation authority for each build. The upstream deploy/docker tree was inspected before implementation; its HTTP server is a separate FastAPI process with Redis-backed jobs and monitoring. This project provides a stdio-first runtime and a safe, typed subset/bridge of the same local Python capability surface, with unsupported operations explicitly reported rather than silently discarded.

Related MCP server: servo-fetch

Quick start

docker compose build crawl4ai-mcp-stdio
# equivalent profile-aware form:
docker compose --profile stdio build crawl4ai-mcp-stdio
docker compose --profile stdio run --rm crawl4ai-mcp-stdio

For the separated native/Redis/HTTP topology, choose an unused host port instead of assuming 8000:

CRAWL4AI_MCP_HTTP_PORT=37600 docker compose --profile redis --profile native-api --profile stdio --profile http-mcp up -d

The container speaks MCP JSON-RPC over stdin/stdout. Logs go to stderr. Configure CRAWL4AI_API_TOKEN only if your MCP host requires an application token; it is not printed or returned.

Security defaults

  • only http and https URLs;

  • private, loopback, link-local, and cloud-metadata destinations blocked by default;

  • optional domain allow-list;

  • bounded URLs, scripts, output, timeout, concurrency, and crawl count;

  • no arbitrary Python, shell, filesystem paths, Docker socket, or CAPTCHA/access-control bypass;

  • declarative hooks only, disabled by default unless CRAWL4AI_HOOKS_ENABLED=true;

  • proxy credentials must be supplied through environment-backed references, never MCP arguments;

  • webhook delivery is not enabled in stdio mode (use the native HTTP job service for operator-managed webhooks).

See docs/security.md, docs/configuration.md, and docs/deployment.md.

MCP

The complete tool inventory and parity claims are in docs/mcp-tools.md and docs/parity-matrix.md. The bridge exposes individual tools for crawling, streaming, rendering, JavaScript, extraction, configuration and capability inventory. It is not an arbitrary HTTP proxy: operations are explicit and documented. It does not claim that Redis jobs, webhooks, native monitoring, or the upstream artefact store are present in a single stdio process; those are documented as separate authenticated HTTP deployment operations.

Native HTTP server

The pinned upstream release includes deploy/docker/server.py, a separate FastAPI service with /health, /schema, /crawl, /crawl/stream, /md, /html, /screenshot, /pdf, /execute_js, /hooks/info, job routes, monitoring routes, artefacts, and MCP SSE/WebSocket routes. It is documented in docs/upstream-api.md. This image deliberately does not start a hidden background HTTP process alongside stdio; run the upstream HTTP deployment separately when REST, SSE, Redis jobs, or Prometheus monitoring are required.

Development

uv sync --locked
uv run pytest -q
uv run python -m crawl4ai_mcp.server < /dev/null

Docker integration requires Docker and a working Chromium sandbox configuration. See docs/testing.md.

Licence

Apache-2.0. Crawl4AI is used under its upstream Apache-2.0 licence.

Available Tools

15 tools
artifact_infoC

Retrieve a bounded Crawl4AI artefact by its opaque hexadecimal ID.

Inputs: artifact_id (required). Returns: object

capability_inventoryA

Return pinned runtime capability and the authenticated native-server bridge status; unsupported operations are not safely emulated.

Inputs: no named parameters.

crawlC

Crawl one or more URLs with validated Crawl4AI BrowserConfig and CrawlerRunConfig fields.

Inputs: urls (required), browser_config, crawler_config.

crawl_job_submitC

Submit a Crawl4AI Redis-backed crawl job through the configured native server.

Inputs: urls (required), confirm, browser_config, crawler_config, +1 more. Returns: object

crawl_streamB

Crawl multiple URLs; returns the completed result sequence (stdio-safe streaming equivalent).

Inputs: urls (required), browser_config, crawler_config. Returns: result

execute_jsA

Execute bounded page JavaScript through Crawl4AI; arbitrary Python/shell is never accepted.

Inputs: url (required), scripts (required), browser_config, crawler_config.

extractC

Use a named pinned extraction strategy: css, xpath, json_css, json_xpath, regex, cosine, or llm.

Inputs: urls (required), strategy (required), strategy_params (required), browser_config, +1 more.

htmlB

Fetch rendered HTML for a URL.

Inputs: url (required), browser_config, crawler_config.

job_statusA

Poll a Crawl4AI crawl or LLM job by its opaque task ID.

Inputs: task_id (required), job_type. Returns: object

llm_job_submitC

Submit a Crawl4AI LLM extraction job through the configured native server.

Inputs: url (required), query (required), schema, confirm, +2 more. Returns: object

mdC

Fetch Markdown and fit Markdown for a URL.

Inputs: url (required), browser_config, crawler_config.

monitoringC

Read native Crawl4AI monitoring data or explicitly confirm an administrative control.

Inputs: operation (required), confirm, payload. Returns: object

native_api_operationC

Call one explicit, authenticated, allow-listed native-server operation; never an arbitrary HTTP proxy.

Inputs: operation (required), payload, task_id, artifact_id. Returns: object

pdfC

Render a URL as PDF using Crawl4AI.

Inputs: url (required), browser_config, crawler_config.

screenshotB

Capture a screenshot using Crawl4AI's browser runtime.

Inputs: url (required), browser_config, crawler_config.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 15 tools

    Disambiguation3/5

    Crawl, crawl_stream, and crawl_job_submit present overlapping crawling functionality, while extract and llm_job_submit both offer LLM-based extraction. These clusters create ambiguity, though most other tools are clearly distinct.

    Naming Consistency3/5

    Tool names mix single nouns (screenshot, pdf, html), bare verbs (extract, crawl), verb_noun forms (execute_js, crawl_stream), and noun_verb constructions (crawl_job_submit, job_status). The inconsistent pattern makes it harder to predict tool names, though all are readable and lowercase.

    Tool Count5/5

    15 tools for a 'Complete' MCP covering crawling, extraction, rendering, and job management is well-scoped. Each tool adds a distinct capability without unnecessary bloat.

    Completeness4/5

    The surface covers core workflows: fetch content, crawl (sync/stream/async), extract (sync/LLM), check job status, and retrieve artifacts. Minor gaps like job cancellation or listing jobs are absent but not critical.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server that lets Claude Code fetch web content using real Chrome browsers. Renders JavaScript-heavy pages, handles bot mitigation, and runs up to 14 parallel browsers locally with zero API keys. Makes outbound HTTP requests only to URLs the user explicitly asks Claude to fetch.
      2
      14 npm
      91
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Servo-powered MCP server for JS-aware web fetching, content extraction, crawling, and software-rendered screenshots — Chromium-free single binary.
      6
      164
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Remote MCP server for web scraping with anti-bot evasion. Provides stealth HTTP fetching, headless browser with Cloudflare bypass, CSS selectors, YouTube transcripts, and Markdown conversion.
      1
      MIT