
scrapingrabbit-mcp
io.github.scrapingrabbit/scrapingrabbit-mcp
YouTube transcripts, TikTok, Instagram, X, Amazon, Google and SEO data for AI agents.
Documentation
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. One tool per API endpoint, so an agent can pick the right one.
- 31 tools, generated from the API's own OpenAPI file, 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.
Get a key
Sign in at 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
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):
{
"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.
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.
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.
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_LIMITEDanswer 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
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
scrapingrabbit-mcpnpm install scrapingrabbit-mcp