ScrapeBadger MCP Server
OfficialThis MCP server lets AI agents call ScrapeBadger's scraping and AI-answer APIs for social media, search, marketplaces, code repositories, vehicle listings and brand visibility.
Retrieve Twitter/X profiles, followers/following, tweets, trends, places, lists and communities, and search users/tweets/places/communities.
Fetch public and full LinkedIn profiles.
Run Google web searches with structured results (organic, ads, knowledge graph, AI Overview, People Also Ask, shopping, forums, related searches) and optionally expand PAA answers.
Ask Google AI Mode for localized generative answers with markdown, text blocks and cited sources.
Resolve Google redirect links from search results without credits.
Search Facebook Marketplace and fetch listing details without a Facebook account.
Search Yelp businesses and list supported Yelp markets.
Get public GitHub repository details.
Get AutoScout24 listing details by URL or listing ID.
Ask Grok, measure brand visibility in Grok answers, fetch Grok conversations and list Grok modes.
Use the hosted server for broader coverage across 500+ tools/40+ ScrapeBadger products; the local server uses SCRAPEBADGER_API_KEY over stdio.
Provides Google web search through the ScrapeBadger API, returning structured search results including organic results, ads, knowledge graph, AI Overview, People Also Ask, shopping results, perspectives, discussions and forums, short videos, and related searches. Supports expanding People Also Ask questions to retrieve answers and references.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ScrapeBadger MCP Server Get the profile of @elonmusk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What is this?
ScrapeBadger is a web scraping API. This repository is the official Model Context Protocol (MCP) server for it, so that Claude, ChatGPT, Cursor, Windsurf, VS Code and other MCP clients can call ScrapeBadger as tools.
There are two ways to use it:
Hosted server | Local server (this package) | |
Where |
|
|
Transport | Streamable HTTP | stdio |
Sign-in | OAuth with your ScrapeBadger account, or an API key |
|
Tools | Every ScrapeBadger API: 500+ tools across 40+ products | 31 tools: Twitter/X, Google, LinkedIn, Grok, Facebook Marketplace, Yelp, GitHub, AutoScout24 |
Install | None | Python 3.10+ or Docker |
Both use the same credits as the REST API. Get an API key, or sign in with OAuth, at scrapebadger.com.
Related MCP server: Twitter MCP Server
Hosted server (recommended)
The hosted server at https://mcp.scrapebadger.com/mcp reaches every ScrapeBadger API,
including Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Reddit, Google (Search,
AI Mode, Maps, News, Shopping, Jobs, Hotels, Scholar and more), Bing, Yahoo, Baidu, DuckDuckGo,
Amazon, eBay, Walmart, Target, Etsy, AliExpress, Vinted, Zillow, Redfin, Idealista, ChatGPT,
Perplexity, Gemini, Copilot, Grok and the Web Scraping API for any URL. Nothing to install.
Claude (claude.ai and Claude Desktop): go to Settings > Connectors > Add custom
connector, enter https://mcp.scrapebadger.com/mcp, then sign in and approve. No API key
needed.
Claude Code:
claude mcp add --transport http scrapebadger https://mcp.scrapebadger.com/mcpThe first connection opens the ScrapeBadger sign-in in your browser (OAuth).
Cursor and other clients that take a URL: clients that support MCP OAuth sign in with
just the URL. Otherwise send your API key as a Bearer header (Windsurf names the URL field
serverUrl):
{
"mcpServers": {
"scrapebadger": {
"url": "https://mcp.scrapebadger.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}By default the hosted server lists a few free helper tools (search_endpoints,
describe_endpoint, call_endpoint and others) that reach every endpoint, which keeps your
agent's context small. Add ?apis=google,amazon to the URL to list those APIs' tools
directly, or ?apis=all for every tool. See the
MCP docs and the
client guides.
Local server (this package)
The local server runs on your machine over stdio and exposes the 31 tools listed under Available tools. It needs an API key from your ScrapeBadger dashboard.
Install
# Using uvx (recommended, nothing to install)
uvx scrapebadger-mcp
# Or with pip
pip install scrapebadger-mcp
# Or as a uv tool
uv tool install scrapebadger-mcpConfigure your MCP client
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS,
%APPDATA%\Claude\claude_desktop_config.json on Windows), Cursor (.cursor/mcp.json),
Windsurf and most other clients:
{
"mcpServers": {
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}VS Code (.vscode/mcp.json) uses servers instead of mcpServers:
{
"servers": {
"scrapebadger": {
"type": "stdio",
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}Claude Code:
claude mcp add scrapebadger -e SCRAPEBADGER_API_KEY=sb_live_your_api_key_here -- uvx scrapebadger-mcpDocker
The Dockerfile builds the server from this repository's source. Pass the API
key when you run the container; the image never contains it.
docker build -t scrapebadger-mcp .
docker run -i --rm -e SCRAPEBADGER_API_KEY=sb_live_your_api_key_here scrapebadger-mcp-i keeps stdin open, which the stdio transport needs. To use the image from an MCP client:
{
"mcpServers": {
"scrapebadger": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "SCRAPEBADGER_API_KEY", "scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}Try it
"Get the profile and recent tweets of @sama"
"Search Google for 'are noise cancelling headphones worth it' and answer the People Also Ask questions"
"Ask Google AI Mode for the best coffee near me, as if I were in Wonju, South Korea"
"Ask Grok what people on X say about the new iPhone, with sources"
"Find pizza places in Toronto on Yelp, sorted by rating"
"Show me used road bikes on Facebook Marketplace within 20 km of London, listed in the last two days"
Available tools
The local server has 31 tools. It lists a tool only while ScrapeBadger's live endpoint catalog lists its endpoint, and marks a deprecated or temporarily unavailable endpoint in the tool description. A call to a restricted endpoint returns the API's error and is not billed.
Twitter/X
Tool | Description |
| A user's profile by username: bio, followers, following, verification |
| Extended "About" info: account location, username history, verification details |
| Search users by query |
| A user's followers |
| Accounts a user follows |
| A single tweet by ID: text, author, metrics, media, polls, quoted tweet |
| A user's recent tweets |
| Search tweets, with Twitter's advanced search operators |
| Trending topics, optionally by category (news, sports, entertainment) |
| Trends for a location by WOEID |
| Search Twitter places by name |
| A list's name, description, member and subscriber counts, owner |
| Search lists |
| Recent tweets from a list's members |
| A community's name, description, member count, rules and admins |
| Search communities |
Tool | Description |
| Google web search ( |
| Google AI Mode ( |
| Real URLs for Google results ( |
search_google takes q, gl, hl, start, location, ai_overview and
expand_related_questions, plus Google's own request parameters. Google loads a People Also
Ask answer only when the question is clicked, so by default related_questions holds the
questions without answers. expand_related_questions: true opens every question the page
shows (usually four) and a number N opens the first N; each answered question then carries
text_blocks and references. Each answered question costs one more search
(credits = 20 x (1 + answered)), and a question whose answer does not come back is not billed.
See the Google web search docs.
Google can return a result's link as a redirect (https://www.google.com/goto?url=...) and
paces how fast the links of one result page can be followed. Such an organic result carries
link_token and retry_after_seconds (0 = can be resolved right away); both are null when
link is already the real URL. Pass the results that carry a link_token to
google_resolve_links, 1 to 25 per call. Other fields are returned unchanged and the rows come
back in the order sent, each as one of:
resolved:
linkis the result's own URL and the row has nolink_token.not ready: the row has
link_tokenandretry_after_seconds(1 or more). Wait that many seconds, then send the row again with its latestlink_token, which can differ from the one sent.failed: the row has
link_tokenanderror. Do not send it again.
A token sent early is not an error: the row comes back not ready with the wait that is left.
The response's own retry_after_seconds is the shortest wait among the not-ready rows, or
null when no row is waiting. One call makes one request and does not wait. Polling this way,
all ten links of a page are usually known 45 to 70 seconds after the search; once the result
page is about 160 seconds old, one call returns every remaining link.
google_ai_mode_search takes q, gl, hl, include_html (default false here:
markdown and text_blocks carry the whole answer) and one of location, uule, or
lat + lon. A location answers "near me" and other local questions as if the user were in
that place, down to the city or district, whatever the exit IP: location is a Google
canonical name such as Wonju-si,Gangwon-do,South Korea, a criteria ID such as 1009889, or
an unambiguous short name. With location and no gl, gl becomes the location's country;
gl itself is Google's market and does not choose the exit country. Located answers echo a
location object. Unknown or ambiguous names are rejected with canonical candidates, and a
located request that cannot be answered right now fails unbilled; retry it. See the
Google AI Mode docs.
Tool | Description |
| A public LinkedIn profile by vanity id ( |
| The full profile with paginated positions and richer sections |
Both take public_id (the part after linkedin.com/in/) and an optional country
(default us). See the LinkedIn docs.
Grok
Tool | Description |
| Ask the real Grok assistant: the answer with web citations, X post references, tool usage and follow-up suggestions. Pass an earlier |
| Measure a brand in a real Grok answer: mentions, share of voice, position, competitor breakdown and citation rank, with the full answer and sources. 25 credits |
| The messages of an existing Grok conversation, oldest first, with timestamps. 3 credits |
| Grok's assistant modes ( |
See the Grok docs.
Facebook Marketplace
Tool | Description |
| Search public Marketplace listings without a Facebook account. Verified filters enforce radius in kilometres and listing age; |
| One public listing: description, photo URLs, seller and approximate coordinates |
Follow the opaque end_cursor, including after empty filtered pages. Coverage is partial and
newest-first order applies within each page. See the
Facebook docs.
Yelp, GitHub and AutoScout24
Tool | Description |
| Yelp business search ( |
| The Yelp sites this API searches ( |
| A public repository on its default branch ( |
| Full AutoScout24 listing detail ( |
These tools return the API response unchanged, so every native field stays available. See the Yelp, GitHub and AutoScout24 docs.
For any other ScrapeBadger API (Amazon, Instagram, YouTube, TikTok, Reddit, ChatGPT, Perplexity, the Web Scraping API and the rest), use the hosted server.
Configuration
Variable | Required | Description |
| For tool calls | Your ScrapeBadger API key, from the dashboard |
The server starts and lists its tools without a key, so MCP clients and directories can
inspect it. Until the key is set, every tool call returns an error (MissingApiKeyError) that
says how to set it.
To run from a checkout without installing:
export SCRAPEBADGER_API_KEY="sb_live_your_key_here"
uv run scrapebadger-mcpError handling
Tool errors come back as MCP tool errors with an error message and an error_type:
Error | Meaning | What to do |
|
| Set it in the server's environment and restart the server |
| Invalid API key | Check your |
| Too many requests at the same time: your account is already running as many as its max concurrency allows | Wait a second and retry, run fewer tool calls in parallel, or upgrade your plan |
| Out of credits | Buy more at scrapebadger.com |
| User, tweet or listing not found | Check the username, ID or URL |
Development
git clone https://github.com/scrape-badger/scrapebadger-mcp.git
cd scrapebadger-mcp
uv sync --extra dev
uv run pytest # tests
uv run ruff check src/ tests/ # lint
uv run ruff format src/ tests/ # format
uv run mypy src/ # type checkTroubleshooting
"SCRAPEBADGER_API_KEY is not set"
Add the key to the server entry in your MCP client config and restart the client:
{
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_key_here"
}
}With Docker, pass -e SCRAPEBADGER_API_KEY=... to docker run.
Server not showing in Claude Desktop
Restart Claude Desktop after changing the config.
Check that the config file path is right for your OS.
Check that the JSON is valid (no trailing commas).
"uvx: command not found"
Install uv first:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex""Too many concurrent requests" (RateLimitError)
Every ScrapeBadger account has a max concurrency: how many requests it can run at the same time,
across all of its API keys. There is no per-minute limit. A tool call made while that many are
already running fails with RateLimitError and isn't billed. Retry it after a second, and have
your assistant run fewer tool calls in parallel. Requests your other apps send with the same
account count too. For more at once, upgrade your plan on the
pricing page. See Concurrency.
Related projects
Support
Documentation: docs.scrapebadger.com
Issues: GitHub Issues
Email: support@scrapebadger.com
Discord: Join our community
License
MIT License. See LICENSE.
Available Tools
29 toolsautoscout24_get_listingA
Get full AutoScout24 listing detail: native specifications, equipment, photos, prices and public seller data. Supply exactly one url or listing_id from vehicle search; the URL decides the market, otherwise de. 10 credits; removed or missing listings are unbilled 404s. Swiss listings are unsupported.
Inputs: url, market, listing_id.
facebook_marketplace_itemB
Get public Marketplace listing detail: description, exposed photo URLs, seller and approximate coordinates. No Facebook account needed.
Inputs: item_id (required).
facebook_marketplace_searchA
Search public Facebook Marketplace without an account. Verified filters enforce radius in km and age; include_details adds description and public photos. Coverage is partial. Follow opaque end_cursor; an empty filtered page can still have a continuation. Sort all collected pages for newest-first monitoring.
Inputs: query (required), after, radius, sort_by, +6 more.
get_twitter_community_detailB
Get details about a Twitter community including name, description, member count, rules, and admin information.
Inputs: community_id (required).
get_twitter_followersA
Get followers of a Twitter/X user. Returns list of follower profiles with their bios and follower counts.
Inputs: username (required), max_results.
get_twitter_followingA
Get accounts that a Twitter/X user is following. Returns list of following profiles with their bios and follower counts.
Inputs: username (required), max_results.
get_twitter_list_detailA
Get details about a Twitter list including name, description, member count, subscriber count, and owner information.
Inputs: list_id (required).
get_twitter_list_tweetsA
Get recent tweets from a Twitter list. Returns tweets from all list members with text, metrics, and media.
Inputs: list_id (required), max_results.
get_twitter_place_trendsA
Get trending topics for a specific location using WOEID. Common WOEIDs: US=23424977, UK=23424975, Japan=23424856.
Inputs: woeid (required).
get_twitter_trendsA
Get current trending topics on Twitter/X. Optionally filter by category (news, sports, entertainment). Returns trend names and tweet counts.
Inputs: category.
get_twitter_tweetA
Get a single tweet by ID. Returns tweet text, author, metrics (likes, retweets, replies), media, polls, and quoted tweets.
Inputs: tweet_id (required).
get_twitter_user_profileA
Get a Twitter/X user's profile by username. Returns name, bio, follower count, following count, verified status, and more.
Inputs: username (required).
get_twitter_user_tweetsB
Get recent tweets from a Twitter/X user. Returns tweets with text, metrics, media, and engagement data.
Inputs: username (required), max_results.
github_get_repositoryA
Get a public GitHub repository on its default branch: statistics, topics, license, native README, root files and latest commit. Pass owner and repo separately, not a URL. 10 credits per successful call.
Inputs: repo (required), owner (required).
google_ai_mode_searchA
Ask Google AI Mode (Google's generative AI answer) and get the answer as markdown and structured text_blocks with the sources it cited. To answer 'near me' or other local questions for a specific place, pass ONE of location (a Google location name or criteria ID), lat+lon, or uule: the answer is localised to that city or district, whatever the exit IP. With location and no gl, gl becomes the location's country. Located answers echo a location object. Failed requests (503) are not billed; retry them.
Inputs: q (required), gl, hl, lat, +4 more.
google_resolve_linksA
Get the real URLs of Google results whose link is a google.com/goto redirect. Send the organic results of search_google that carry a link_token, 1 to 25 per call; other fields come back unchanged. Rows come back in the order sent. A resolved row has the result's own URL in link and no link_token. A not-ready row has link_token and retry_after_seconds (1 or more): wait that many seconds, then send the row again with its latest link_token, which can differ from the one sent. A failed row has link_token and error: do not send it again. A token sent early is not an error; the row comes back not ready with the wait that is left. The top-level retry_after_seconds is the shortest wait among the not-ready rows, or null when no row is waiting. One call makes one request and does not wait. Polling this way, all ten links of a page are usually known 45 to 70 seconds after the search; once the result page is about 160 seconds old, one call returns every remaining link. Costs no credits.
Inputs: results (required).
grok_askA
Ask the real Grok assistant and get structured answers with web citations, X post references, tool usage and follow-up suggestions. Pass the complete conversation_id from an earlier response to retain context. mode: auto, fast or expert; web_search: auto, force or off. 20 credits.
Inputs: prompt (required), mode, web_search, conversation_id.
grok_brand_visibilityB
Measure a brand in a real Grok answer: mentions, share of voice, position, competitor breakdown and citation rank, with the full answer and sources. 25 credits.
Inputs: brand (required), prompt (required), mode, web_search, +2 more.
grok_get_conversationA
Fetch chronological user and assistant messages from an existing Grok conversation, including Unix and ISO timestamps. 3 credits.
Inputs: conversation_id (required).
grok_list_modelsA
List Grok's auto, fast and expert assistant modes. 1 credit.
Inputs: no named parameters.
linkedin_get_full_profileB
Get a full LinkedIn profile through the separately authenticated projection, with paginated positions and richer verticals when visible to the server session.
Inputs: public_id (required), country.
linkedin_get_profileB
Get a public LinkedIn profile with roles, education, public DOM verticals, recent posts and articles when LinkedIn exposes them.
Inputs: public_id (required), country.
search_googleA
Search Google and get the structured results page: organic results, ads, knowledge graph, AI Overview, People Also Ask, shopping results, perspectives, discussions and forums, short videos and related searches. Set expand_related_questions to also get the People Also Ask answers. Organic results whose link is a google.com/goto redirect carry link_token and retry_after_seconds; pass them to google_resolve_links to get the real URLs.
Inputs: q (required), cr, gl, hl, +44 more.
search_twitter_communitiesB
Search for Twitter communities by query. Returns matching communities with names, descriptions, and member counts.
Inputs: query (required).
search_twitter_placesA
Search for Twitter places by name. Returns place names, types, and full location details for use with geolocated tweets.
Inputs: query (required).
search_twitter_tweetsA
Search for tweets by query. Returns matching tweets with text, authors, metrics, and media. Supports advanced Twitter search operators.
Inputs: query (required), max_results.
search_twitter_usersB
Search for Twitter/X users by query. Returns matching profiles with bios, follower counts, and verification status.
Inputs: query (required), max_results.
yelp_list_marketsA
List the Yelp sites this API searches (us, ca). Free.
Inputs: no named parameters.
yelp_search_businessesA
Search Yelp businesses for a location (US or Canada) in Yelp's own order, with rating, review count, categories, price, address and opening hours; sponsored listings come back separately in ads. Ten per page, pages 1-11. 15 credits per page with results; empty searches and errors are free. Follow next_page while has_next_page is true.
Inputs: location (required), page, price, query, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Most tools target a distinct resource+action, but two clear overlap pairs exist: get_twitter_trends vs get_twitter_place_trends (global vs location-based trends), and linkedin_get_profile vs linkedin_get_full_profile, where the latter is described as a superset of the former with no guidance on when to pick the cheap one. The Twitter read tools (get_twitter_tweet, get_twitter_user_tweets, search_twitter_tweets, get_twitter_list_tweets) are distinguishable but require careful reading of descriptions.
Two conflicting conventions coexist: verb-first with domain infix (get_twitter_list_detail, search_twitter_users, get_twitter_trends) versus domain-prefixed (linkedin_get_profile, autoscout24_get_listing, github_get_repository, yelp_search_businesses). The Google group is internally inconsistent too (search_google, google_ai_mode_search, google_resolve_links). Names are readable but not predictable.
29 tools is heavy for a single server, but it is a multi-provider scraping aggregator spanning eight distinct APIs, so the volume is largely justified. The Twitter cluster alone accounts for 14 tools, which feels padded relative to the thinner single-tool providers (AutoScout24, GitHub).
Twitter, Grok and Facebook Marketplace have reasonable lifecycle coverage, but several providers are dead ends: GitHub exposes only get_repository (no repo/code search), AutoScout24 has only get_listing yet its description references a nonexistent 'vehicle search', and Yelp lacks business detail/reviews. LinkedIn also offers only two profile reads with no search.
Maintenance
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Publish and schedule tweets and threads on X (Twitter) from your AI assistant.
Twitter: Access real-time Twitter/X data as soon as it's posted! With the Twitter/X AIO API, you.
Social media data API for AI agents. Live data from any public link, handle or search.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with Twitter data access including tweets, user profiles, followers, and search functionality.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access Twitter/X data including user profiles, tweets, search, and follower events via a set of MCP tools.MIT
- FlicenseAqualityDmaintenanceAllows AI assistants to query Twitter data including user info, tweets, trends, and more via twitterapi.io API.126-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate Twitter/X actions through the X API v2, supporting over 50 tools for posting, searching, user management, and more.1-