Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

ScrapingBee Server

БесплатноНе проверен

A Model Context Protocol (MCP) server that provides web scraping capabilities using the ScrapingBee API, allowing users to extract structured data from web page

GitHubEmbed

Описание

A Model Context Protocol (MCP) server that provides web scraping capabilities using the ScrapingBee API, allowing users to extract structured data from web pages using CSS/XPath selectors and other features.

README

A Model Context Protocol (MCP) server that provides web scraping capabilities using the ScrapingBee API. This server allows you to test and use ScrapingBee's extract rules feature to extract structured data from web pages.

Features

  • Test web scraping extract rules using CSS/XPath selectors
  • Support for JavaScript rendering
  • Premium and stealth proxy options
  • Custom wait conditions and browser events
  • Session management for consistent IP addresses
  • Full ScrapingBee API parameter support

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/scraping-bee-mcp.git
cd scraping-bee-mcp
  1. Install dependencies:
npm install
  1. Create a .env file with your ScrapingBee API key:
SCRAPINGBEE_API_KEY=your_api_key_here

Usage

With supermachine.ai

Simply provide the GitHub repository URL to supermachine.ai and it will automatically configure the MCP server.

With Claude Desktop

Add the following to your Claude Desktop MCP settings configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "scraping-bee": {
      "command": "node",
      "args": ["/path/to/scraping-bee-mcp/index.js"],
      "env": {
        "SCRAPINGBEE_API_KEY": "your_api_key_here"
      }
    }
  }
}

With ChatGPT (via supermachine.ai)

  1. Go to supermachine.ai
  2. Add this GitHub repository URL
  3. The MCP server will be automatically configured

Available Tools

test_extract_rules

Test web scraping extract rules using the ScrapingBee API.

Parameters:

  • url (required): The target page URL to scrape
  • extract_rules (required): JSON-encoded string describing what to extract (CSS/XPath selectors, lists, attributes, tables, etc.)
  • js_scenario (optional): JSON-encoded string of scripted actions (click/type/scroll/infinite-scroll/etc.) to run before extraction
  • render_js (optional): Enable a headless browser to execute JavaScript before extraction
  • wait (optional): Fixed delay in milliseconds before returning the response (0-35000)
  • wait_for (optional): CSS/XPath selector to wait for before returning
  • wait_browser (optional): Browser event to wait for (domcontentloaded, load, networkidle0, networkidle2)
  • premium_proxy (optional): Use residential proxy for scraper-resistant sites
  • stealth_proxy (optional): Use stealth proxy for the hardest-to-scrape sites (most expensive option)
  • country_code (optional): Proxy geolocation (e.g., us, de, br)
  • session_id (optional): Keep the same IP across multiple requests (sticky sessions)
  • custom_google (optional): Enable Google-specific handling (always true for Google domains)

Example:

{
  "url": "https://example.com",
  "extract_rules": "{\"title\": \"h1\", \"price\": \".price\"}",
  "render_js": true
}

Extract Rules Format

Extract rules are defined as a JSON object where keys are the names of the data you want to extract and values are the selectors or extraction configurations.

Simple Extraction

{
  "title": "h1",
  "price": ".product-price",
  "description": "#description"
}

Advanced Extraction

{
  "product_name": {
    "selector": "h1.product-title",
    "type": "text"
  },
  "all_images": {
    "selector": "img.product-image",
    "type": "list",
    "output": "@src"
  },
  "table_data": {
    "selector": "table.specs",
    "type": "table"
  }
}

Development

Run the server locally (stdio mode):

npm start

Run the HTTP/SSE server locally:

npm run start:http

Remote Hosting

The MCP server can be hosted remotely using the HTTP/SSE transport. The hosted version requires users to provide their own ScrapingBee API key with each request.

Railway (Recommended)

  1. Install Railway CLI: npm install -g @railway/cli
  2. Login: railway login
  3. Create project: railway init
  4. Deploy: railway up
  5. Your MCP server will be available at the Railway-provided URL

Render

  1. Connect your GitHub repository to Render
  2. Create a new Web Service
  3. Select the repository
  4. Render will automatically detect the render.yaml configuration
  5. Deploy

Fly.io

  1. Install Fly CLI: curl -L https://fly.io/install.sh | sh
  2. Login: fly auth login
  3. Launch: fly launch
  4. Deploy: fly deploy

Docker

Build and run locally:

docker build -t scraping-bee-mcp .
docker run -p 3000:3000 scraping-bee-mcp

Connecting to Hosted Server

Once deployed, connect to your MCP server using the SSE endpoint:

  • SSE Endpoint: https://your-server-url/sse
  • Message Endpoint: https://your-server-url/message
  • Health Check: https://your-server-url/health

Note: The hosted version requires the api_key parameter in each tool call, allowing users to use their own ScrapingBee API keys.

Requirements

License

MIT

Support

For issues or questions:

from github.com/igormidev/scrapping_bee_mcp

Установка ScrapingBee Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/igormidev/scrapping_bee_mcp

FAQ

ScrapingBee Server MCP бесплатный?

Да, ScrapingBee Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для ScrapingBee Server?

Нет, ScrapingBee Server работает без API-ключей и переменных окружения.

ScrapingBee Server — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить ScrapingBee Server в Claude Desktop, Claude Code или Cursor?

Открой ScrapingBee Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare ScrapingBee Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development