SC

sadiuysal/crawl4ai-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

119 stars 22 forks 品質 75 トレンド 0MIT

sadiuysal/crawl4ai-mcp-server は、https://github.com/sadiuysal/crawl4ai-mcp-server. からインポートされたMCPサーバー候補です。

概要

sadiuysal/crawl4ai-mcp-server は、https://github.com/sadiuysal/crawl4ai-mcp-server. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

🕷️ Crawl4AIのウェブスクレイピングおよびクロール機能をAIエージェント向けのツールとして公開する軽量なModel Context Protocol(MCP)サーバー。

FirecrawlのAPIに似ていますが、セルフホストで無料です。OpenAI Agents SDK、Cursor、Claude Code、その他のMCP互換ツールを使って、AIワークフローにウェブスクレイピングを統合するのに最適です。

特徴

  • ** 🔧 MCP Tools**:Stdio MCPサーバー経由で4つの強力なツールを公開します:scrape、crawl、crawl_site、crawl_sitemap]
  • ** 🌐 ウェブスクレイピング**:マークダウン抽出によるシングルページスクレイピング
  • ** 🕷️ ウェブクロール**:深さ制御付き複数ページの幅先クロール
  • ** 🧠 適応型クロール**:十分なコンテンツが集まると停止するスマートクロール
  • ** 🛡️ 安全性**:内部ネットワーク、localhost、プライベートIPをブロックします
  • ** 📱 Agent Ready**:OpenAI Agents SDK、カーソル、Claude コードに対応します
  • ** ⚡ Fast**:PlaywrightとCrawl4AIによる最適化された抽出によって駆動

🚀 クイックスタート

Docker(推奨)か手動インストールのどちらかを選びましょう:

オプションA:Docker(推奨) 🐳

Dockerはすべてのセットアップの複雑さを排除し、一貫した環境を提供します:

オプションA1:既製品イメージ(最⚡速)を使います

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Crawl4AI MCP Server

🕷️ A lightweight Model Context Protocol (MCP) server that exposes Crawl4AI web scraping and crawling capabilities as tools for AI agents.

Similar to Firecrawl’s API but self-hosted and free. Perfect for integrating web scraping into your AI workflows with OpenAI Agents SDK, Cursor, Claude Code, and other MCP-compatible tools.

Features

  • 🔧 MCP Tools: Exposes 4 powerful tools: scrape, crawl, crawl_site, crawl_sitemap via stdio MCP server
  • 🌐 Web Scraping: Single-page scraping with markdown extraction
  • 🕷️ Web Crawling: Multi-page breadth-first crawling with depth control
  • 🧠 Adaptive Crawling: Smart crawling that stops when sufficient content is gathered
  • 🛡️ Safety: Blocks internal networks, localhost, and private IPs
  • 📱 Agent Ready: Works with OpenAI Agents SDK, Cursor, and Claude Code
  • ⚡ Fast: Powered by Playwright and Crawl4AI’s optimized extraction

🚀 Quick Start

Choose between Docker (recommended) or manual installation:

Docker eliminates all setup complexity and provides a consistent environment:

Option A1: Use Pre-built Image (Fastest) ⚡

# No setup required! Just pull and run the published image
docker pull uysalsadi/crawl4ai-mcp-server:latest

# Test it works
python test-config.py

# Use directly in MCP configurations (see examples below)

Option A2: Build Yourself

# Clone the repository
git clone https://github.com/uysalsadi/crawl4ai-mcp-server.git
cd crawl4ai-mcp-server

# Quick build and test (simplified)
docker build -f Dockerfile.simple -t crawl4ai-mcp .
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0"}}}' | docker run --rm -i crawl4ai-mcp

# Or use helper script (full build with Playwright)
./docker-run.sh build
./docker-run.sh test
./docker-run.sh run

Docker Quick Commands:

  • ./docker-run.sh build - Build the image
  • ./docker-run.sh run - Run MCP server (stdio mode)
  • ./docker-run.sh test - Run smoke tests
  • ./docker-run.sh dev - Development mode with shell access

Option B: Manual Installation

# Clone and setup
git clone https://github.com/uysalsadi/crawl4ai-mcp-server.git
cd crawl4ai-mcp-server
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

# Install Playwright browsers
python -m playwright install chromium

# Test basic functionality
python -m crawler_agent.smoke_client

# Test adaptive crawling
python test_adaptive.py

Use with OpenAI Agents SDK

# Set your OpenAI API key
export OPENAI_API_KEY="your-key-here"

# Docker: Run the example agent
docker-compose run --rm -e OPENAI_API_KEY crawl4ai-mcp python -m crawler_agent.agents_example

# Manual: Run the example agent
python -m crawler_agent.agents_example
GitHub で README 全文を見る

インストール

docker run --rm -i --volume ./crawls:/app/crawls uysalsadi/crawl4ai-mcp-server:latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

// .mcp.json (project-scoped configuration) { "mcpServers": { "crawl4ai-mcp": { "command": "docker", "args": [ "run", "--rm", "-i", "--volume", "./crawls:/app/crawls", "uysalsadi/crawl4ai-mcp-server:latest" ], "env": { "CRAWL4AI_MCP_LOG": "INFO" } } } }