
walksoda/crawl-mcp 是从 https://github.com/walksoda/crawl-mcp. 导入的 MCP 服务器候选服务器。
概览
walksoda/crawl-mcp 是从 https://github.com/walksoda/crawl-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
这是一个非官方的 crawl4ai 库 MCP 服务器。它与 crawl4ai 项目无关联。
一个模型上下文协议(MCP)服务器,封装 crawl4ai。它从网页、PDF、Office文档、YouTube视频和网页搜索结果(Google 自定义搜索、Brave或Exa)中提取内容。为了降低令牌使用率,它可以用LLM总结内容(auto_summarize,选择加入),并将完整结果写入磁盘(output_path)。
主要特色
- 通过谷歌自定义搜索、Brave或Exa进行网页搜索,支持引擎和6种类型(文件类型和语言过滤器)之间的自动备份
- 利用JavaScript渲染、递归站点爬取和实体提取的网页爬取
- 从网页、PDF、Word、Excel、PowerPoint和ZIP格式的压缩包中提取内容
- 当
auto_summarize=true进行LLM摘要时。没有它,大型响应会被截断在约25000个令牌处,output_path保存完整内容 - 磁盘持久性:完整结果会发送到文件,响应仅包含元数据,因此代理在需要内容时读取文件
- 无API密钥的YouTube文字稿和摘要
- 21 返回结构化错误判定的失效工具
快速启动
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Crawl-MCP: Unofficial MCP Server for crawl4ai
This is an unofficial MCP server for the crawl4ai library. It is not affiliated with the crawl4ai project.
A Model Context Protocol (MCP) server that wraps crawl4ai. It extracts content from web pages, PDFs, Office documents, YouTube videos, and web search results (Google Custom Search, Brave, Exa, TinyFish, or a self-hosted SearXNG). To keep token usage low, it can summarize content with an LLM (auto_summarize, opt-in) and write full results to disk (output_path).
Key Features
- Web search through Google Custom Search, Brave, Exa, TinyFish, or a self-hosted SearXNG instance, with automatic fallback between engines and 6 genres (file type and language filters)
- Web crawling with JavaScript rendering, recursive site crawls, and entity extraction
- Content extraction from web pages, PDFs, Word, Excel, PowerPoint, and ZIP archives
- LLM summarization when
auto_summarize=true. Without it, large responses are truncated at about 25000 tokens, andoutput_pathsaves the full content - Disk persistence: full results go to a file and the response carries only metadata, so an agent reads the file when it needs the content
- YouTube transcripts and summaries without an API key
- 21 tools that return structured error dicts on failure
Quick Start
Prerequisites (Required First)
- Python 3.11 or later
Install the system dependencies for Playwright.
Ubuntu 24.04 LTS needs a manual setup:
# Manual setup required due to t64 library transition
sudo apt update && sudo apt install -y \
libnss3 libatk-bridge2.0-0 libxss1 libasound2t64 \
libgbm1 libgtk-3-0t64 libxshmfence-dev libxrandr2 \
libxcomposite1 libxcursor1 libxdamage1 libxi6 \
fonts-noto-color-emoji fonts-unifont python3-venv python3-pip
python3 -m venv venv && source venv/bin/activate
pip install playwright==1.64.1 && playwright install chromium
sudo playwright install-deps
Other Linux distributions (installs Chromium and its system libraries):
uvx --from playwright==1.64.1 playwright install --with-deps chromium
macOS / Windows:
uvx --from playwright==1.64.1 playwright install chromium
If Playwright is already installed in a Python environment, python -m playwright install --with-deps chromium (Linux) or playwright install chromium (macOS/Windows) works as well.
Installation
UVX (recommended):
# After system preparation above - that's it!
uvx --from git+https://github.com/walksoda/crawl-mcp crawl-mcp
Docker:
# Clone the repository
git clone https://github.com/walksoda/crawl-mcp
cd crawl-mcp
# Build and run with Docker Compose (STDIO mode)
docker-compose up --build
# Or build and run HTTP mode on port 8000
docker-compose --profile http up --build crawl4ai-mcp-http
# Or build manually
docker build -t crawl4ai-mcp .
docker run -it crawl4ai-mcp
安装
uvx --from git+https://github.com/walksoda/crawl-mcp crawl-mcp配置
{
"mcpServers": {
"crawl-mcp": {
"transport": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/walksoda/crawl-mcp",
"crawl-mcp"
]
}
}
}