scrapling-mcp

scrapling-mcp

Exposes Scrapling web scraping framework as MCP tools for Claude Code, enabling URL scraping with CSS/XPath selectors, stealth mode, and batch processing.

Category
Visit Server

README

Scrapling MCP Server

MCP (Model Context Protocol) server that exposes Scrapling web scraping framework as tools for Claude Code and other MCP clients.

Setup Local

Prerequisites

  • Python 3.10+
  • pip

Install

cd scrapling-mcp
pip install -r requirements.txt
pip install "scrapling[fetchers]"
scrapling install

Run Locally

python server.py

Tools Available

1. scrape_url

Fetch and parse a single URL.

Parameters:

  • url (string, required): URL to scrape
  • use_stealth (boolean): Use stealth mode to bypass anti-bot (default: false)
  • include_html (boolean): Include raw HTML in response (default: false)
  • timeout (integer): Request timeout in seconds (default: 30)

Returns: URL content, status, and optional HTML

2. scrape_with_selector

Scrape URL and extract elements using CSS or XPath selector.

Parameters:

  • url (string, required): URL to scrape
  • selector (string, required): CSS selector or XPath expression
  • selector_type (string): "css" or "xpath" (default: "css")
  • use_stealth (boolean): Use stealth mode (default: false)

Returns: List of matching elements

3. batch_scrape

Scrape multiple URLs sequentially with rate limiting.

Parameters:

  • urls (array, required): List of URLs to scrape
  • use_stealth (boolean): Use stealth mode for all requests (default: false)

Returns: Results for all URLs

4. health_check

Check server health and availability.

Returns: Service status and version

Deploy to Render (Free)

Steps

  1. Create GitHub repo (if not already)

    cd scrapling-mcp
    git init
    git add .
    git commit -m "Initial scrapling-mcp"
    git push origin main
    
  2. Create Render service

    • Go to https://render.com
    • Sign up/login
    • Click "New +" → "Web Service"
    • Connect GitHub repo
    • Select "scrapling-mcp" directory
    • Name: scrapling-mcp
    • Environment: Docker
    • Plan: Free
    • Click "Create Web Service"
  3. Wait for deployment (~5 minutes)

  4. Get service URL

    • From Render dashboard: https://scrapling-mcp-xxxx.onrender.com

Configure Claude Code

  1. Get server URL from Render

  2. Update .mcp.json:

    {
      "mcpServers": {
        "scrapling": {
          "type": "url",
          "url": "https://scrapling-mcp-xxxx.onrender.com"
        }
      }
    }
    
  3. Restart Claude Code

  4. Test:

    • Use /mcp-inspect to see available tools
    • Ask Claude to scrape a URL

Environment Variables (Optional)

  • PYTHONUNBUFFERED=true (default on Render)

Notes

  • Free Render tier goes to sleep after 15 minutes of inactivity
  • First request after sleep takes 30-60 seconds
  • Stealth mode requires additional resources (more CPU/memory)
  • Batch scraping includes 1-second delays between requests

Troubleshooting

Server won't start:

pip install --upgrade scrapling
scrapling install

Import errors:

pip install -r requirements.txt --upgrade

Timeout on Render:

  • May be caused by free tier resource limits
  • Try increasing timeout parameter
  • Use use_stealth=false first

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured