SC

sadiuysal/crawl4ai-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

118 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 번역)

🕷️ AI 에이전트를 위한 도구로서 Crawl4AI 웹 스크래핑 및 크롤링 기능을 제공하는 경량 모델 컨텍스트 프로토콜(MCP) 서버입니다.

Firecrawl의 API와 비슷하지만 셀프 호스팅이고 무료입니다. OpenAI 에이전트 SDK, 커서, Claude 코드 등 MCP 호환 도구와 함께 웹 스크래핑을 AI 워크플로우에 통합하기에 완벽합니다.

특징

  • ** 🔧 MCP 도구**: Stdio MCP 서버를 통해 scrape, crawl, crawl_site, crawl_sitemap 4개의 강력한 도구를 노출합니다
  • ** 🌐 웹 스크래핑**: 마크다운 추출을 이용한 단일 페이지 스크래핑
  • ** 🕷️ 웹 크롤링**: 깊이 제어가 가능한 다중 페이지 폭 우선 크롤링
  • ** 🧠 적응형 크롤링**: 충분한 콘텐츠가 수집되면 멈추는 스마트 크롤링
  • ** 🛡️ 안전**: 내부 네트워크, localhost, 사설 IP 차단
  • ** 📱 에이전트 준비**: OpenAI 에이전트 SDK, 커서, 클로드 코드 호환
  • ** ⚡ Fast**: Playwright와 Crawl4AI의 최적화된 추출 기능 구동

🚀 퀵 스타트

Docker(권장) 또는 수동 설치 중에서 선택하세요:

옵션 A: 도커 (권장) 🐳

도커는 모든 설정 복잡성을 없애고 일관된 환경을 제공합니다:

옵션 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" } } } }