Crawl4AI Complete MCP

Crawl4AI Complete MCP

Provides a secure, stdio-based MCP server for crawling, streaming, rendering, JavaScript execution, extraction, and configuration of web content, with domain allowlisting and private network protections.

Category
访问服务器

README

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.

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选