# HasData Web Scraping [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/HasData/web-scraping-mcp  
**GitHub Stars:** 5  
**npm Downloads (last month):** 453  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hasdata-web-scraping

## Description
Fetch any public web page through managed proxies, with optional JS rendering and extraction rules.

## Tools
Capabilities this server exposes over MCP:

- **hasdata_web_scraping_web_scraping_scrapeWebPage** — Scrape Web Page

Universal web scraper that fetches any public URL through managed proxies (datacenter or residential, geo-targeted) with optional JS rendering, custom headers, wait conditions, jsScenario actions (click, scroll, fill, waitFor), screenshots, resource/ad/URL blocking (these require JS rendering), and extractRules/aiExtractRules for LLM-driven structured extraction. Returns HTML, text, markdown, and/or JSON along with status code, extracted emails and links, CSS-selector extractions, and AI-structured fields per schema. Use as a fallback/universal fetcher for sites without a dedicated API, for scraping JS-heavy SPAs, capturing screenshots, or producing clean markdown/structured JSON to feed downstream parsers, RAG pipelines, or data warehouses.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hasdata-web-scraping": {
    "command": "npx",
    "args": ["-y","@hasdata/web-scraping-mcp"],
    "env": {
      "HASDATA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HASDATA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HasData Web Scraping MCP server does

HasData Web Scraping MCP server exposes one read-only MCP tool for fetching a public URL: `hasdata_web_scraping_web_scraping_scrapeWebPage`. Requests can use HasData-managed datacenter or residential proxies, including a selectable country from the supported list. The response can contain raw HTML, plain text, Markdown, JSON, the HTTP status code, extracted links, extracted email addresses, CSS-selector fields, and AI-generated fields matching a supplied schema.

It is suited to pages that lack a dedicated API, especially when the useful content is rendered in a browser. It can also produce screenshots and clean content for downstream parsing, retrieval-augmented generation, or warehouse ingestion.

## How it works

The hosted MCP endpoint is available at `https://mcp.hasdata.com/mcp?apis=web_scraping` over streamable HTTP. Clients authenticate with the `x-api-key` header. A plain fetch can retrieve a page directly; JavaScript rendering enables browser-based loading and the browser controls exposed by the tool.

The scraper can wait for a fixed interval or a CSS selector before reading the page. Ordered `jsScenario` actions support clicking, waiting, waiting for and clicking selectors, scrolling horizontally or vertically, filling fields, and evaluating JavaScript. Rendering is also required for resource, ad, and URL blocking, as well as screenshot capture.

CSS extraction rules map output field names to selectors, with `@attr` syntax for reading an element attribute instead of its text. `aiExtractRules` accepts typed fields such as strings, numbers, booleans, lists, and nested items, allowing the response to follow a requested structure.

## Setup and configuration

Create a HasData API key through the HasData dashboard, then configure an MCP client with the hosted URL and `x-api-key: HASDATA_API_KEY`. Clients with OAuth support can add the URL as a connector and authenticate without placing the key in a configuration file.

For clients that only support stdio, use the npm launcher `@hasdata/web-scraping-mcp` with `npx`, or the PyPI package `hasdata-web-scraping-mcp` with `uvx`. Both read the key from the `HASDATA_API_KEY` environment variable. Claude Desktop can also connect through its custom connector flow.

The tool accepts a required `url` and optional settings including `outputFormat`, `jsRendering`, `proxyType`, `proxyCountry`, custom `headers`, `wait`, `waitFor`, extraction rules, browser actions, screenshot capture, and content filters.

## Tools and capabilities

- Fetch one public URL through managed proxies.
- Return Markdown, text, HTML, JSON, or combinations of these formats.
- Render JavaScript-heavy pages and wait for content to appear.
- Run browser actions such as click, fill, scroll, wait, and JavaScript evaluation.
- Extract named fields with CSS selectors or typed AI extraction schemas.
- Collect links and email addresses from the page.
- Capture screenshots and remove or block selected page resources.
- Keep only selected tags, exclude unwanted tags, or remove inline base64 images.

A plain fetch costs one credit, while a call with JavaScript rendering costs ten credits. The service includes 1,000 free credits each month without requiring a card.

## Limitations and notes

The tool fetches one URL per call and is intended for public web pages. JavaScript rendering is the main cost factor, so it should be enabled when browser execution is needed rather than for every request. Browser-dependent options such as `jsScenario`, screenshots, resource blocking, ad blocking, and URL blocking require rendering.

Proxy country selection supports US, UK, DE, IE, FR, IT, SE, BR, CA, JP, SG, IN, and ID. The server is hosted, so a local container or browser is not required when using its HTTP endpoint. Its license is MIT.

_Full upstream README: https://allmcps.com/mcp/hasdata-web-scraping/readme_

