Skip to main content
Glama

Scrapy MCP Server

by ThreeFish-AI
setup.sh1.89 kB
#!/bin/bash # Setup script for Data Extractor with uv set -e echo "🚀 Setting up Data Extractor with uv..." # Check Python version PYTHON_VERSION=$(python --version 2>&1 | awk '{print $2}') PYTHON_MAJOR=$(echo $PYTHON_VERSION | cut -d. -f1) PYTHON_MINOR=$(echo $PYTHON_VERSION | cut -d. -f2) if [[ $PYTHON_MAJOR -lt 3 ]] || [[ $PYTHON_MAJOR -eq 3 && $PYTHON_MINOR -lt 12 ]]; then echo "❌ Python 3.12+ is required. Current version: $PYTHON_VERSION" echo " Please upgrade Python or use a virtual environment with Python 3.12+" exit 1 fi echo "✅ Python $PYTHON_VERSION found" # Check if uv is installed if ! command -v uv &> /dev/null; then echo "❌ uv is not installed. Please install uv first:" echo " curl -LsSf https://astral.sh/uv/install.sh | sh" exit 1 fi echo "✅ uv found" # Sync dependencies echo "📦 Installing dependencies..." uv sync echo "🔧 Installing development dependencies..." uv sync --extra dev # Copy environment configuration if it doesn't exist if [ ! -f .env ]; then echo "📝 Creating environment configuration..." cp .env.example .env echo "✏️ Please edit .env file to configure your settings" else echo "ℹ️ .env file already exists" fi # Install playwright browsers if playwright is available echo "🌐 Setting up browser dependencies..." if uv run python -c "import playwright" 2>/dev/null; then echo "Installing Playwright browsers..." uv run playwright install chromium else echo "⚠️ Playwright not available, skipping browser installation" fi echo "✅ Setup complete!" echo "" echo "Next steps:" echo "1. Edit .env file with your configuration" echo "2. Run: uv run data-extractor" echo "" echo "For development:" echo "- Format code: uv run ruff format extractor/ examples/ tests/" echo "- Run tests: uv run pytest" echo "- Type check: uv run mypy extractor/"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThreeFish-AI/scrapy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server