Scraping Bot Animated

scrapingbot

Web Scraping in general

How to Scrape Websites with Claude and MCP

· Updated November 23, 2026 · 10 min read

To scrape a website with Claude, connect the ScrapingBot MCP server to Claude once, then ask for the data in plain English: Claude calls the scraping API itself and answers with the result. On claude.ai the setup takes two minutes and needs no code and no API key. On November 10, 2026, we asked Claude for 6 pages this way: 5 came back, the sixth failed and was refunded, and the whole run used 14 credits. Product pages go through the ecommerce scraper, any other page through raw HTML.

In short:

  • MCP (Model Context Protocol) is the standard way to give Claude new tools. The ScrapingBot MCP server adds 10 of them: product, real estate, travel, grocery, raw HTML, Google results, social media, and three free ones for credits and pending results.
  • claude.ai: Settings, Connectors, Add custom connector, paste https://mcp.scraping-bot.io/mcp, sign in. Claude Desktop and Claude Code use your username and API key.
  • In our test of 6 requests, 3 product pages and 1 HTML page cost 1 credit each. One old Adidas link redirected to a category page and still cost 10 credits, because that site always needs a premium proxy.
  • Failed requests cost nothing, and Claude can check your remaining credits at no cost before a batch.

What MCP changes when you scrape with Claude

Without MCP, Claude can only read what you paste into the chat, or fetch a page with its own web tool, which gets blocked by many shops. With MCP, Claude gets a new set of tools and decides when to use them. You ask "What does this keyboard cost on Alternate?", Claude calls the ScrapingBot tool scrape_retail with the URL, reads the JSON that comes back, and answers in a sentence.

The protocol itself is public. The Model Context Protocol describes itself as "an open-source standard for connecting AI applications to external systems" (official introduction, read on October 22, 2026). A simple way to picture it: MCP is a plug, and the ScrapingBot server is the device you plug into Claude. Behind the plug runs the same API as for developers, with the same proxies, headless browsers and credits.

So you do not write code, and you do not copy HTML around. You keep the conversation; Claude does the requests.

What you need before you start

Three things, and none of them is technical:

  1. A ScrapingBot account. A free one is enough to follow this guide. Plans are on the pricing page.
  2. A Claude app: claude.ai in a browser or the mobile apps, Claude Desktop, or Claude Code for developers.
  3. For claude.ai only: a plan that allows custom connectors. Anthropic decides which plans have them; the setting is under Settings, Connectors.

You do not need Node.js, Python or a terminal for claude.ai or Claude Desktop.

How to connect ScrapingBot to Claude

Pick the app you use. The result is the same: the ScrapingBot tools show up in Claude.

claude.ai (web and mobile): sign in, no API key

  1. In Claude, open Settings, then Connectors, and choose Add custom connector.
  2. Name it ScrapingBot and paste this URL: https://mcp.scraping-bot.io/mcp
  3. Click Connect, sign in to your ScrapingBot account and click to allow Claude.

That is all. Claude receives a token, never your API key, and you can remove the access at any time from your ScrapingBot account settings. Once added, the connector also works in the Claude mobile apps.

Claude Desktop: one file to open

Download the extension scraping-bot.mcpb from the MCP server page and open it. Claude Desktop installs it and asks for your username and API key, which you find in your ScrapingBot dashboard. Restart Claude Desktop and the tools are there.

Claude Code: one command

Developers who use Claude Code in a terminal add the server with one command. Replace the two values with the ones from your dashboard:

claude mcp add scraping-bot \
  -e SCRAPING_BOT_USERNAME=your_username \
  -e SCRAPING_BOT_API_KEY=your_api_key \
  -- npx -y @sostag/scraping-bot-mcp

This one needs Node.js 18 or later. Cursor and other MCP clients take the same server through a short configuration block, given on the MCP server page.

Check that it works

Ask Claude: "How many ScrapingBot credits do I have left?" Claude calls get_account, which costs nothing, and answers with your plan, the credits used and the reset date. If it answers without calling a tool, the connector is not active in this conversation: check that it is switched on in the conversation's tools menu.

Your first scrape: ask in plain English

Start with one product page you know. A prompt that works well:

Scrape this product page and give me the title, price, currency and whether it is in stock: https://www.alternate.fr/Sharkoon/PureWriter-W100-RGB-clavier-gaming-m%C3%A9canique/html/product/100166282

We ran this request from a Claude session on November 10, 2026. Claude chose scrape_retail, sent the URL with no extra option, and got back a JSON object. These are a few of its fields, exactly as returned:

{
  "title": "PureWriter W100 RGB clavier gaming mécanique",
  "price": 61.9,
  "currency": "EUR",
  "isInStock": true,
  "EAN13": "4044951045686",
  "brand": "Sharkoon",
  "statusCode": 200
}

From that, the answer fits in one line: the Sharkoon keyboard costs 61.90 EUR on Alternate and is in stock. The call cost 1 credit. You never see the HTML of the page unless you ask for it.

The same call in Python, for when you want to automate it later, is a plain POST to the API described in the documentation:

import requests

response = requests.post(
    "https://api.scraping-bot.io/scrape/retail",
    auth=("your_username", "your_api_key"),
    json={"url": "https://www.alternate.fr/Sharkoon/PureWriter-W100-RGB-clavier-gaming-m%C3%A9canique/html/product/100166282"},
)
print(response.json())

Which tool Claude uses for which page

You do not have to name the tool: Claude picks it from your request and from the description each tool carries. Knowing them helps you ask well, and explains the cost.

What you ask for Tool Claude calls Credits per page
A product: price, stock, brand, EAN scrape_retail From 1
A property listing: price, surface, rooms scrape_real_estate From 1
A hotel or rental: Booking.com, Airbnb, Expedia scrape_booking From 1
A grocery product with nutrition values scrape_grocery From 1
Any other page, as HTML scrape_raw_html From 1
Google or Bing results scrape_search_engine 30
Instagram, TikTok, Facebook, LinkedIn, X, Threads scrape_social_media 30
Your credits, your usage, a pending social result get_account, get_usage_history, get_social_media_result 0

The page tools start at 1 credit and accept options. useChrome renders the page in a headless browser for sites built with JavaScript (5 credits). premiumProxy goes through a premium proxy for sites that block regular ones (10 credits). Both together cost 25. Claude starts without them and adds them only when a page comes back empty or blocked, as the tool descriptions tell it to. You can also ask for them: "use Chrome for this page".

What we got on 6 real requests

We ran this test on November 10, 2026, from a Claude session with the ScrapingBot connector, on 5 product pages and 1 HTML page taken from the example URLs in the ScrapingBot repository. One request per page, no option set by hand. The credits come from get_usage_history, which logs each request.

Page Tool Result Credits
books.toscrape.com (home page) scrape_raw_html HTML, 51,274 characters 1
Alo Yoga, a book scrape_retail 88 USD, in stock, EAN found 1
Alternate, a keyboard scrape_retail 61.90 EUR, in stock, EAN found 1
AS Discount, a processor scrape_retail 177.30 EUR, free shipping 1
Adidas, an old shoe link scrape_retail Redirected to a category page, no price 10
Amara, a cushion scrape_retail Site did not answer 0

The 6 requests were logged within 25 seconds and used 14 credits. Four answers carried the price we asked for. Two did not, for two different reasons, and both are worth knowing before your own first batch.

What this test does not prove: 6 pages on one day show how the setup behaves, not a success rate. For a measured comparison on 12 stores, read our test of Claude on ecommerce pages.

What to do when a scrape fails

Claude receives the error message from the API and usually tells you what went wrong. These are the cases we met, and the fix for each.

"Could not connect: it did not answer"

This is what Amara returned. The site did not respond to the request, so no page came back and no credit was used. Open the URL in your browser: if it loads, ask Claude to try again later or with premiumProxy. If it does not load, the problem is the site.

The answer is about the wrong page

Our Adidas link was an old product URL. The site redirected it to a category page, so the API returned the title "ADIDAS FR" and no price. The siteURL field gave it away: it had changed to https://www.adidas.fr/sl, so Claude could tell the product page no longer exists. The request still counted as a success, and it cost 10 credits because the API noticed that Adidas blocks standard proxies and retried with a premium one. The response said so in a notice field.

The fix is on your side: check that the product URL still opens before you send a list of old links. For a site that always needs the premium proxy, ask Claude to use premiumProxy from the start, which saves the first attempt.

An empty or blocked page

When a page comes back with no data, the page is often built with JavaScript, or the site blocks regular proxies. Claude can retry with useChrome or premiumProxy. These cost more, so it should tell you first. Our guide on how to scrape dynamic websites shows how to tell when rendering is really needed.

"Quota exceeded" (HTTP 402)

You have no credits left for the period. Claude should stop and tell you; retrying will not help. get_account gives the reset date, and the plans are on the pricing page.

Prompts that work well

Claude does what you ask, so precise prompts give cheaper and cleaner answers:

  • Name the fields you want. "Title, price, currency and stock in a table" gives a table. "Scrape this" gives a summary.
  • Give full URLs, starting with https://, one per line for a list.
  • Ask for a cost estimate first on a batch: "Before you start, tell me how many credits these 30 pages will cost." Claude knows the price of each tool and option.
  • Compare in one go: "Here are the same headphones on three stores. Which one is cheapest, and is it in stock?"
  • Ask for a file: in apps that can create files, "Put the results in a CSV" saves the copy and paste.
  • Check usage afterwards: "What did my last 10 requests cost?" calls get_usage_history, at no cost.

MCP or the REST API?

Both use the same API and the same credits. The MCP server suits research, comparisons and one-off extractions, when a person asks and reads the answer. For a job that runs every night on 10,000 URLs, write code against the REST API, or start from the Live Test to see the JSON before you write a line. The MCP server page has the full list of tools, options and supported apps.

To try it, connect the server, then send Claude a product page from the ecommerce scraper list or any page through the raw HTML scraper.

FAQ

What can Claude scrape without a connector?

Some public pages, with its own web tool, but it gets blocked by many shops and does not run JavaScript. Connected to a scraping API through MCP, it goes through proxies and headless browsers instead. For a measured comparison of both, read our 12-page test.

Do I need to know how to code to scrape with Claude?

No. On claude.ai you add the connector and sign in; on Claude Desktop you open one extension file. Then you ask in plain English. Code is only needed with Claude Code or for automated jobs.

Is my API key shared with Claude?

On claude.ai, no: you sign in to ScrapingBot and Claude gets a token you can revoke from your account settings. On Claude Desktop and Claude Code, the key stays in the configuration on your computer and is only sent to the ScrapingBot API.

How much does it cost to scrape with Claude?

The same as the API: from 1 credit per page, 5 with JavaScript rendering, 10 with a premium proxy, 30 for Google or social media. Failed requests are refunded. Plans are on the pricing page.

Does it work with ChatGPT or Cursor?

Cursor, Windsurf and other MCP clients work with the same server, locally or through the hosted URL. For ChatGPT, check in OpenAI's help pages whether your plan lets you add a custom MCP connector.

← All articles