---
title: "MCP server for web scraping with AI agents | ScrapeCrate"
description: "Give Claude, Cursor or any MCP client live web data: YouTube, Google Maps, reviews, ads, Reddit and web pages through one MCP server, local or remote."
url: https://scrapecrate.com/blog/mcp-server-web-scraping
markdown: https://scrapecrate.com/blog/mcp-server-web-scraping.md
---

# An MCP server for web scraping, set up in five minutes

Give Claude, Cursor or any MCP client live web data: YouTube, Google Maps, reviews, ads, Reddit and web pages through one MCP server, local or remote.

Published November 28, 2026 · 7 min read

Large language models are good at reasoning and bad at knowing what happened this morning. Ask an assistant what customers say about a competitor, which videos a channel published this week or which ads a brand is running, and it either refuses or makes something up. The fix is not a bigger model: it is giving the model a way to fetch the data itself.

That is what the Model Context Protocol (MCP) is for. An MCP server exposes tools with a name, a description and a JSON schema of parameters. The assistant reads the list, picks a tool, fills the parameters and reads the result, all inside one conversation. This guide shows how to connect the ScrapeCrate MCP server to your assistant, what the tools are, what agents do well with them and how to keep costs under control.

## What the server gives your agent

The server exposes one tool per API endpoint, for every API of the gateway: YouTube, TikTok, Google Maps, reviews from Trustpilot, the App Store, Google Play, Tripadvisor, Booking, Yelp, G2 and Capterra, the Meta, Google and LinkedIn ad libraries, Google Search and Trends, Reddit and web pages converted to Markdown. That is more than 60 tools, plus `account_balance`, which returns your remaining credits for free.

Tools are named `api_endpoint`. A few examples:

| Tool | What it does |
| --- | --- |
| `youtube_transcript` | Transcript of a YouTube video, as text, segments or chunks |
| `youtube_video_comments` | Comments of a video, replies included on request |
| `maps_places_search` | Businesses on Google Maps for a query and a location |
| `maps_place_reviews` | Reviews of one Google Maps place |
| `reviews_trustpilot_company_reviews` | Trustpilot reviews of a company, filtered by stars or date |
| `ads_ads_search` | Ads in the Meta Ad Library for a keyword or a page |
| `google_search` | Google results for a query, with ads and related searches |
| `reddit_post_comments` | The comment tree of a Reddit post |
| `web_page` | Any web page as clean Markdown, with title and metadata |

Each tool takes the same parameters as the HTTP endpoint, documented in the [API reference](https://scrapecrate.com/docs/api.md), and its description states the price, so the model knows what a call costs before it makes it. The tool list comes from the live catalog when the server starts: new APIs appear without updating anything on your side.

## Option 1: the remote server (no install, OAuth)

The hosted server lives at `https://api.scrapecrate.com/mcp` and speaks Streamable HTTP. You add the URL to your assistant, sign in with your account and click Allow. There is no key to copy and nothing to install.

- **Claude** (web, Desktop, mobile): Settings, Connectors, Add custom connector, URL `https://api.scrapecrate.com/mcp`.
- **ChatGPT**: Settings, Apps & Connectors, Create (developer mode), URL `https://api.scrapecrate.com/mcp`, authentication OAuth.
- **Claude Code**: add the server, then run `/mcp` inside Claude Code to sign in.

```bash
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp
```

For Cursor, VS Code and other clients that accept remote servers, add this to the MCP configuration:

```json
{
  "mcpServers": {
    "scrapecrate": {
      "url": "https://api.scrapecrate.com/mcp"
    }
  }
}
```

Listing the tools needs no sign-in, so you can see what the server offers before connecting. Calls made through connected apps appear under the `MCP connector` key in your dashboard, with the same usage logs and limits as any API key. Deactivate that key and every connected app is cut off at once.

## Option 2: the local server (API key)

The local server is a Python package (Python 3.10 or later) run with `uvx`, so there is no install step: `uvx` downloads it on first use and keeps it cached. It talks to the client over stdio and reads your API key from the `SCRAPECRATE_API_KEY` environment variable. Create a key in the dashboard first, as explained in [authentication](https://scrapecrate.com/docs/authentication.md).

```bash
SCRAPECRATE_API_KEY=YOUR_API_KEY uvx scrapecrate-mcp
```

In Claude Desktop (`claude_desktop_config.json`), Cursor (`.cursor/mcp.json`) or Windsurf, add the server to the configuration file and restart the client:

```json
{
  "mcpServers": {
    "scrapecrate": {
      "command": "uvx",
      "args": [
        "scrapecrate-mcp"
      ],
      "env": {
        "SCRAPECRATE_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
```

In Claude Code it is one command:

```bash
claude mcp add scrapecrate -e SCRAPECRATE_API_KEY=YOUR_API_KEY -- uvx scrapecrate-mcp
```

The local server is the right choice for headless agents, CI jobs and anything that runs without a person to click through an OAuth screen. Keep the key out of shared repositories: the configuration file holds it in plain text.

## What agents do well with scraping tools

Once the server is connected, you stop writing scrapers and start writing requests in plain English. Some tasks that work well:

1. **Summarise a video without watching it.** "Get the transcript of this video and list the five claims it makes, with timestamps." The agent calls `youtube_transcript`, reads the segments and quotes them. Add "and what do the top comments disagree with?" and it calls `youtube_video_comments` too.
2. **Reputation check before a meeting.** "What do customers complain about at this company on Trustpilot in the last three months?" The agent calls `reviews_trustpilot_company_reviews` with a date filter and groups the complaints. Our guide to [scraping Trustpilot reviews](https://scrapecrate.com/blog/scrape-trustpilot-reviews.md) shows the same call in code.
3. **Local market scan.** "Find dental clinics in Lyon with fewer than 50 reviews and a website." The agent pages through `maps_places_search` and filters the results itself. This is the first step of a [lead generation pipeline](https://scrapecrate.com/blog/lead-generation-scraper.md).
4. **Competitor ads.** "Which ads has this brand been running for more than 30 days in Germany?" The agent calls `ads_ads_search` with a country and `min_days_active`, then describes the longest running creatives. See the [Meta Ad Library API guide](https://scrapecrate.com/blog/facebook-ad-library-api.md).
5. **Research with sources.** "Read these three pages and compare their pricing sections." The agent calls `web_page` on each URL and works from the Markdown, not from memory.
6. **Community sentiment.** "What do people on Reddit say about switching from this tool to that one?" The agent combines `reddit_search` and `reddit_post_comments`.

The model chooses tools from their descriptions, so a good prompt names the source ("on Google Maps", "in the Meta Ad Library") and the scope ("the last 50 reviews", "the first page of results").

## Keeping costs under control

An agent decides on its own how many calls to make, so it is worth setting a few guardrails:

- **Tools cost what the API costs.** The price of every endpoint is on the [pricing page](https://scrapecrate.com/pricing.md) and in each tool description; failed calls are free, as with the HTTP API. The first 100 credits of every month are free.
- **Ask for the balance first.** "Call account_balance, then tell me how many credits the plan will use before you start" makes the agent plan instead of loop.
- **Ask for small pages.** Long list results are truncated in the tool answer anyway. Tell the agent to use a small `limit` and follow the cursor only when it needs more.
- **Errors are readable.** A failed call returns the code and message of the [standard error format](https://scrapecrate.com/docs/errors.md), for example `Error 404 not_found`, so the agent can tell a missing resource from a temporary problem and does not retry blindly.
- **Feature switches.** A service that is temporarily switched off is left out of the tool list and its calls answer `503 feature_disabled`, free.

## MCP or the HTTP API?

Use MCP when a person or an agent decides at run time what to fetch: research, support, sales preparation, ad hoc analysis. Use the HTTP API or the [SDKs](https://scrapecrate.com/docs/sdks.md) when the job is fixed and repeated, such as a nightly export of reviews into a database or a [RAG ingestion pipeline](https://scrapecrate.com/blog/web-scraping-for-llm-rag.md). Both use the same account, the same credits and the same data, so most teams use both: the agent explores, then the code that works is turned into a script.

If you are still choosing a provider, our comparison of [what to look for in a web scraping API](https://scrapecrate.com/blog/best-web-scraping-api.md) covers coverage, billing models and reliability.

Ready to connect it? [Create a free account](https://scrapecrate.com/auth/sign-up), add the remote URL to your assistant, and ask it something it could not answer yesterday. The full setup, client by client, is in the [MCP documentation](https://scrapecrate.com/docs/mcp.md).

## Frequently asked questions

**What is an MCP server for web scraping?**

It is a small server that speaks the Model Context Protocol and exposes scraping endpoints as tools. An AI assistant such as Claude or Cursor reads the tool list, decides which tool answers your question and calls it, so it works with live data instead of what it remembers from training.

**Should I use the remote server or the local one?**

The remote server at https://api.scrapecrate.com/mcp needs no install and no API key, you sign in with OAuth. The local server, run with uvx scrapecrate-mcp, uses an API key from an environment variable and suits scripts, CI and clients without remote MCP support.

**How much does a tool call cost?**

Exactly what the same HTTP call costs, from the same credit balance. Every tool description states its price, failed calls are free and account_balance is free, so the agent can check your credits before a long task.

**Which clients work with it?**

Any MCP client. The remote server works in Claude (web, Desktop and mobile), ChatGPT in developer mode, Claude Code, Cursor and VS Code. The local server works in every client that can start a stdio server, including Claude Desktop, Cursor and Windsurf.

**Can the agent run up a big bill by mistake?**

It can only spend the credits you have; when they run out calls answer 402 and stop. Keep a modest balance while you experiment, ask the agent to call account_balance first, and tell it to use small limits.

## Try it with free credits every month

One API key for every source in this guide. No card needed, and only successful calls are billed.

[Create a free account](https://scrapecrate.com/auth/sign-up) [Read the docs](https://scrapecrate.com/docs.md)

## Related guides

- [Web scraping for LLMs, from web pages to a RAG index Turn web pages into clean Markdown and YouTube videos into timestamped chunks, then embed them for retrieval. A full RAG ingestion pipeline in Python.](https://scrapecrate.com/blog/web-scraping-for-llm-rag.md)
- [How to choose the best web scraping API What makes a web scraping API good in 2026, how per-request, credit, bandwidth and compute pricing compare, and when one API for every source wins.](https://scrapecrate.com/blog/best-web-scraping-api.md)
- [Build a lead generation scraper with Google Maps, websites and reviews A lead generation scraper in Python and JavaScript, from Google Maps search to each business's website and reviews, with costs per 1,000 leads.](https://scrapecrate.com/blog/lead-generation-scraper.md)

[← All guides](https://scrapecrate.com/blog.md)
