scrapingrabbit-mcp
# ScrapingRabbit MCP server
Give your AI agent web data: YouTube transcripts and comments, TikTok, Instagram, X, Amazon, Walmart, Google, App Store and SEO data, through the [ScrapingRabbit API](https://scrapingrabbit.com/docs). One tool per API endpoint, so an agent can pick the right one.
- **31 tools**, generated from the API's own [OpenAPI file](https://scrapingrabbit.com/openapi.json), so they match the live API.
- **Pay for results only.** A call is charged credits only when it returns data. Failed calls are free.
- **Read-only.** Every tool only reads public data.
- **Free to start.** A new account gets 100 credits and a first API key, no card needed.
<a href="https://glama.ai/mcp/servers/pushkarsingh32/scrapingrabbit-mcp"><img width="380" height="200" src="https://glama.ai/mcp/servers/pushkarsingh32/scrapingrabbit-mcp/badges/card.svg" alt="scrapingrabbit-mcp MCP server on Glama" /></a>
## Get a key
Sign in at [scrapingrabbit.com/login](https://scrapingrabbit.com/login). Your first key is created for you and shown once on the dashboard. Keys start with `sr_live_`.
## Install
Node 18 or newer. The server reads your key from the `SCRAPINGRABBIT_API_KEY` environment variable and never logs it.
### Claude Code
```bash
claude mcp add scrapingrabbit --env SCRAPINGRABBIT_API_KEY=sr_live_your_key -- npx -y scrapingrabbit-mcp
```
### Claude Desktop, Cursor, Windsurf and other clients
Add this to the client's MCP config (for Claude Desktop, `claude_desktop_config.json`):
```json
{
"mcpServers": {
"scrapingrabbit": {
"command": "npx",
"args": ["-y", "scrapingrabbit-mcp"],
"env": { "SCRAPINGRABBIT_API_KEY": "sr_live_your_key" }
}
}
}
```
## Command line
The same package installs a `scrapingrabbit` command. It calls the same endpoints as the MCP tools, from the same generated list, and prints JSON.
```bash
npm install -g scrapingrabbit-mcp # or run once: npx -p scrapingrabbit-mcp scrapingrabbit credits
scrapingrabbit login # paste your key at the hidden prompt; it is checked, then saved to ~/.config/scrapingrabbit/config.json (mode 0600)
# prefer the prompt over `login --api-key <key>`, which leaves the key in shell history
scrapingrabbit credits # your balance (free)
scrapingrabbit list # every endpoint, its cost and parameters
scrapingrabbit domain_age_checker --help
```
Call any endpoint by its tool name or its API path. An endpoint with one required parameter also takes it as a plain value.
```bash
scrapingrabbit seo/domain-age example.com
scrapingrabbit youtube_transcript --url "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --pretty
scrapingrabbit google_autocomplete --query "web scraping" --fields data --output suggestions.json
```
| Option | What it does |
| --- | --- |
| `--api-key <key>` | Use this key. Otherwise `SCRAPINGRABBIT_API_KEY`, then the saved config. |
| `--pretty` | Indent the JSON. |
| `--fields a,b.c` | Print only these dot paths (array items by number, for example `data.items.0.title`). |
| `--output <file>` | Write the JSON to a file instead of stdout. |
| `--verbose` | Print the request URL and time to stderr. The key is never printed. |
Exit codes: `0` success, `1` API or network error (the API's code and message go to stderr), `2` usage error such as an unknown endpoint or parameter. Unlike the MCP tools, the command line never cuts long answers.
## Tools
| Area | Examples |
| --- | --- |
| YouTube | `youtube_transcript`, `youtube_comment_extractor`, `youtube_tag_extractor`, `youtube_channel_viewer` |
| TikTok | `tiktok_transcript`, `tiktok_profile_viewer`, `tiktok_engagement_rate_calculator` |
| Instagram, Snapchat, X | `instagram_profile_viewer`, `snapchat_profile_viewer`, `x_video_transcript` |
| Shopping | `amazon_product_search`, `walmart_keyword_tool`, `amazon_best_sellers_viewer` |
| Google and apps | `google_autocomplete`, `google_news_search`, `app_store_search` |
| SEO and checks | `domain_age_checker`, `website_traffic_checker`, `email_verifier` |
| Account | `account_credits` (free: shows your credit balance) |
Each tool's description says what it returns and what it costs in credits. The full list is in [`src/endpoints.generated.ts`](src/endpoints.generated.ts).
## Good to know
- Answers longer than 60,000 characters are cut, with a note, so one call cannot fill the agent's context.
- Rate limits depend on your plan (10 requests a minute on the free plan). A `RATE_LIMITED` answer says how long to wait.
- Some videos have no captions. That comes back as a normal error, not a crash, and is not charged.
## Develop
```bash
npm install
npm run generate # refresh src/endpoints.generated.ts from the live OpenAPI file
npm run build
npm test # end-to-end: runs the server over stdio and the CLI as a process, both against a fake API
```
## License
MIT
TDQS
Scored across 31 tools
Nearly every tool combines a specific platform/resource with a specific action, so overlapping concepts such as autocomplete or transcripts are cleanly separated by platform. No two tools appear to perform the same operation on the same target.
All names use snake_case and most follow a predictable platform_resource_action structure. Minor deviations like account_credits, google_autocomplete, and some bare transcript names are still readable and do not create confusion.
With 31 tools, the surface is very large and likely to overwhelm an agent choosing among many platform-specific variants. While each tool may earn its place in a broad scraping product, the count is well above the typical well-scoped range.
Core workflows are covered across many platforms, but coverage is uneven: X has only a video transcript tool, Snapchat only a profile viewer, and several platforms lack obvious companion endpoints such as reviews, profile content, or video search. These gaps are notable but not fatal for the most common scraping tasks.