scrape-do-mcp
# scrape-do-mcp
[中文文档](./README-ZH.md) | English
An MCP server that wraps Scrape.do's documented APIs in one package: the main scraping API, Google Search API, Amazon Scraper API, Async API, and a Proxy Mode configuration helper.
Official docs: https://scrape.do/documentation/
## Coverage
- `scrape_url`: Main Scrape.do API with JS rendering, geo-targeting, session persistence, screenshots, ReturnJSON, browser interactions, cookies, and header forwarding.
- `google_search`: Structured Google SERP API with `google_domain`, `location`, `uule`, `lr`, `cr`, `safe`, `nfpr`, `filter`, pagination, and optional raw HTML.
- `amazon_product`: Amazon PDP endpoint.
- `amazon_offer_listing`: Amazon offer listing endpoint.
- `amazon_search`: Amazon search/category endpoint.
- `amazon_raw_html`: Raw HTML Amazon endpoint with geo-targeting.
- `async_create_job`, `async_get_job`, `async_get_task`, `async_list_jobs`, `async_cancel_job`, `async_get_account`: Async API coverage with both MCP-friendly aliases and official field names.
- `proxy_mode_config`: Builds official Proxy Mode connection details, default parameter strings, and CA certificate references.
## Compatibility Notes
- `scrape_url` supports both MCP-friendly aliases and official parameter names:
- `render_js` or `render`
- `super_proxy` or `super`
- `screenshot` or `screenShot`
- `google_search` supports:
- `query` or `q`
- `country` or `gl`
- `language` or `hl`
- `domain` or `google_domain`
- `includeHtml` or `include_html`
- `async_create_job` accepts both alias fields like `targets`, `render`, `webhookUrl` and official Async API fields like `Targets`, `Render`, `WebhookURL`.
- `async_get_job`, `async_get_task`, and `async_cancel_job` accept both `jobId`/`taskId` and official `jobID`/`taskID`.
- `async_list_jobs` accepts both `pageSize` and official `page_size`.
- For header forwarding in `scrape_url`, pass `headers` plus `header_mode` (`custom`, `extra`, or `forward`).
- Screenshot responses preserve the official Scrape.do JSON body and also attach MCP image content when screenshots are present.
- `scrape_url` now defaults to `output="raw"` to match the official API more closely.
- `scrape_url` includes response metadata in `structuredContent`, which helps surface `pureCookies`, `transparentResponse`, and binary responses inside MCP.
## Installation
### Quick Install
```bash
claude mcp add-json scrape-do --scope user '{
"type": "stdio",
"command": "npx",
"args": ["-y", "scrape-do-mcp"],
"env": {
"SCRAPE_DO_TOKEN": "YOUR_TOKEN_HERE"
}
}'
```
### Claude Desktop
Add this to `~/.claude.json`:
```json
{
"mcpServers": {
"scrape-do": {
"command": "npx",
"args": ["-y", "scrape-do-mcp"],
"env": {
"SCRAPE_DO_TOKEN": "YOUR_TOKEN_HERE"
}
}
}
}
```
Get your token at https://app.scrape.do
## Available Tools
| Tool | Purpose |
|------|---------|
| `scrape_url` | Main Scrape.do scraping API wrapper |
| `google_search` | Structured Google search results |
| `amazon_product` | Amazon PDP structured data |
| `amazon_offer_listing` | Amazon seller offers |
| `amazon_search` | Amazon keyword/category results |
| `amazon_raw_html` | Raw Amazon HTML with geo-targeting |
| `async_create_job` | Create Async API jobs |
| `async_get_job` | Fetch Async job details |
| `async_get_task` | Fetch Async task details |
| `async_list_jobs` | List Async jobs |
| `async_cancel_job` | Cancel Async jobs |
| `async_get_account` | Fetch Async account/concurrency info |
| `proxy_mode_config` | Generate Proxy Mode configuration |
## Example Prompts
```text
Scrape https://example.com with render=true and wait for #app.
```
```text
Search Google for "open source MCP servers" with google_domain=google.co.uk and lr=lang_en.
```
```text
Get the Amazon PDP for ASIN B0C7BKZ883 in the US with zipcode 10001.
```
```text
Create an async job for these 20 URLs and give me the job ID.
```
## Development
```bash
npm install
npm run build
npm run dev
```
## License
MIT
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: the async_* family handles batch jobs, the amazon_* family targets specific Amazon data types, and google_search is its own SERP API. There is minor overlap since scrape_url is a general-purpose scraper that could technically reproduce amazon_raw_html or google_search output, but the specialized tools are clearly differentiated by their structured payloads.
All names are snake_case and grouped by prefixes (async_*, amazon_*), which makes them readable and organized. However the pattern is inconsistent: async_* follows verb_noun (create_job, get_job), while amazon_* uses noun-only resource names (amazon_product, amazon_search) and others mix styles (scrape_url, google_search, proxy_mode_config).
13 tools fall squarely within a well-scoped range, and each one earns its place by covering a distinct API surface (general scraping, Google SERP, four Amazon endpoints, the async job lifecycle, and proxy configuration). Nothing feels redundant or padded.
The async API is thoroughly covered with create/list/get-job/get-task/cancel/account operations, and scraping coverage spans generic, Google, and multiple Amazon surfaces plus proxy config. Coverage is strong with only minor gaps (e.g. no job-update or broader non-Amazon structured-data endpoints), which agents can largely work around.