Web Scraping MCP Server is a hosted Model Context Protocol (MCP) server that provides Claude, Cursor, Windsurf, and other MCP clients with a read-only tool for scraping any public web page. Requests are made through managed proxies, pages are rendered with JavaScript when needed, and clean Markdown, plain text, raw HTML, or structured JSON is returned, with no need for users to host any service themselves or configure a browser in their stack.
Purpose and positioning This tool is a fallback when there is no dedicated API for a website. When a dedicated tool for a website already exists in the HasData directory, the dedicated tool returns parsed fields, while this tool returns page content.
Main capabilities Provides a single tool that supports scraping web pages. Field names can be mapped to CSS selectors via extractRules (use @attr to read an attribute instead of text); jsScenario is an ordered array of actions, covering click, wait, waitFor, waitForAndClick, scrollX, scrollY, fill, and evaluate for arbitrary JavaScript, and requires jsRendering to be enabled; aiExtractRules describes the desired output structure, which the model fills from the HTML, where each key is an output field and the type can be string, number, boolean, list, or an item of a nested object. The server includes a built-in prompt for clients to directly provide a ready-made workflow. It also exposes 2 resources (corresponding to parameters), with the URI hasdata://web_scraping/<parameter>, and reading them is free and requires no API key.
Output formats and response structure outputFormat must explicitly specify one of markdown, text, or html, and the content is returned as a top-level text string. If json is included (alone or combined with other formats), all content moves into the json object, the top-level text becomes null, and the requested format appears as a key within json alongside page metadata. extractedData stores the results of extractRules; when a selector matches multiple elements, an array is returned. extractLinks and extractEmails only takes effect when outputFormat includes json; otherwise it is silently ignored.
How to use Requires an MCP client and an API key obtained from the HasData dashboard (free to create, no credit card required). This is a remote server, and the simplest way to connect is to provide the URL and the x-api-key request header, with no need to run a container. Clients that only support stdio can access it through the npm package @hasdata/web-scraping-mcp or the PyPI package hasdata-web-scraping-mcp launcher. The server URL is https://mcp.hasdata.com/mcp?apis=web_scraping,所有客户端通用。支持 OAuth clients can be added directly as connectors and logged in. Configuration methods include: Claude Desktop via the stdio launcher (written to claude_desktop_config.json), Cursor written to ~/.cursor/mcp.json or the project's .cursor/mcp.json, Windsurf written to ~/.codeium/windsurf/mcp_config.json (the field name is serverUrl), and VS Code written to .vscode/mcp.json.
Billing and Limits Rendering is enabled by default, and calls without configuration consume 10 credits; setting jsRendering: false to fetch static pages costs only 1 credit. 1,000 free credits are granted each month (no credit card required), i.e., 1,000 normal fetches or 100 rendered fetches, renewed with the billing cycle. Paid plans start at $59 per month and include 200,000 credits. Concurrency depends on the plan: 1 for Free, 5 for Startup, 15 for Basic, and 50 to 500 for Growth. Credits are deducted only for successful requests; a target page returning 404 or 403 still counts as a successful call and is billed. Residential proxy prices are 5 to 15 times those of data center proxies.
Use Cases Suitable for scenarios that need to obtain public page content from websites without a dedicated API, such as converting pages to Markdown for summarization, extracting code blocks from documentation, retrieving titles and links as JSON, waiting for a result list and then reading pages that require JavaScript rendering, comparing pricing through German residential proxies, and capturing page screenshots.
Limitations and Notes aiExtractRules runs a model, is neither free nor deterministic, and the wording may differ between two calls on the same page; when CSS selectors can be used, extractRules is cheaper and repeatable. waitFor is better than wait. includeOnlyTags and excludeTags use querySelectorAll selectors, and invalid selectors will not throw an error. screenshot: true must be used in a rendering call. The result includes requestMetadata.id, which can be used for support inquiries. Regarding compliance, email addresses collected by extractEmails are personal data under GDPRand are subject to marketing regulations such as CAN-SPAM; pages behind a login, behind a paywall, or excluded by robots do not become public just because they are accessible via a proxy. The project uses the MIT license.