ScrapeBadger MCP Server
Give your AI agents access to Twitter/X data, Google Search, Yelp businesses, GitHub repositories and AutoScout24 listings via the Model Context Protocol
What is this?
ScrapeBadger MCP Server is a Model Context Protocol (MCP) server that enables AI assistants like Claude, ChatGPT, Cursor, Windsurf, and other MCP-compatible clients to access Twitter/X data, Google Search results, Yelp business search, GitHub repository detail and AutoScout24 listing detail through the ScrapeBadger API.
With this MCP server, your AI can:
- Get Twitter user profiles, followers, and following lists
- Search and retrieve tweets
- Access trending topics globally or by location
- Explore Twitter lists and communities
- Search for places and geolocated content
- Search Google and read the structured results page, including People Also Ask answers
- Search Yelp businesses in the US and Canada in Yelp's own order, with ads kept separate
- Read a public GitHub repository: README, root files, latest commit and statistics
- Read a full AutoScout24 vehicle listing: specifications, equipment, photos and seller data
Quick Start
1. Get Your API Key
Sign up at scrapebadger.com and get your API key.
2. Install
# Using uvx (recommended - no installation needed)
uvx scrapebadger-mcp
# Or install globally with pip
pip install scrapebadger-mcp
# Or with uv
uv tool install scrapebadger-mcp
3. Configure Your AI Client
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}
Cursor
Add to your Cursor MCP settings (.cursor/mcp.json):
{
"mcpServers": {
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}
Windsurf
Add to your Windsurf MCP configuration:
{
"mcpServers": {
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}
VS Code with Copilot
Add to your VS Code settings (.vscode/mcp.json):
{
"mcpServers": {
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_api_key_here"
}
}
}
}
4. Start Using It!
Once configured, simply ask your AI to fetch Twitter data:
"Get the profile of @elonmusk"
"Search for tweets about AI agents"
"What's trending on Twitter right now?"
"Find the top 10 Python developers on Twitter"
"Search Google for 'are noise cancelling headphones worth it' and answer the People Also Ask questions"
Available Tools
The MCP server provides 17 tools organized into categories:
User Tools
| Tool | Description |
|---|---|
get_twitter_user_profile |
Get a user's profile by username (bio, followers, following, etc.) |
get_twitter_user_about |
Get extended "About" info (account location, username history) |
search_twitter_users |
Search for users by query |
get_twitter_followers |
Get a user's followers |
get_twitter_following |
Get accounts a user follows |
Tweet Tools
| Tool | Description |
|---|---|
get_twitter_tweet |
Get a single tweet by ID |
get_twitter_user_tweets |
Get recent tweets from a user |
search_twitter_tweets |
Search for tweets (supports Twitter search operators) |
Trend Tools
| Tool | Description |
|---|---|
get_twitter_trends |
Get global trending topics (optionally by category) |
get_twitter_place_trends |
Get trends for a specific location (by WOEID) |
Geo Tools
| Tool | Description |
|---|---|
search_twitter_places |
Search for Twitter places by name |
List Tools
| Tool | Description |
|---|---|
get_twitter_list_detail |
Get details about a Twitter list |
search_twitter_lists |
Search for Twitter lists |
get_twitter_list_tweets |
Get tweets from a list |
Community Tools
| Tool | Description |
|---|---|
get_twitter_community_detail |
Get details about a Twitter community |
search_twitter_communities |
Search for communities |
Google Tools
| Tool | Description |
|---|---|
search_google |
Search Google (/v1/google/search): organic results, ads, knowledge graph, AI Overview, People Also Ask, shopping results, perspectives, discussions and forums, short videos, related searches |
search_google takes q, gl, hl, start, location, ai_overview and
expand_related_questions. 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.
Yelp, GitHub repository and AutoScout24 listing tools
| Tool | Description |
|---|---|
yelp_search_businesses |
Yelp business search (/v1/yelp/search) for a location in the US (market=us, default) or Canada (ca): rating, review count, categories, price, address and opening hours, ads in a separate ads list. Filters: query, category, sort_by, price, features. Ten per page, page 1-11. 15 credits per page with results; empty searches, errors and cache hits are free |
yelp_list_markets |
The Yelp sites this API searches (/v1/yelp/markets). Free |
github_get_repository |
A public repository on its default branch (/v1/github/repositories/{owner}/{repo}): statistics, topics, license, native README, root files and latest commit. Pass owner and repo separately, not a URL. 10 credits |
autoscout24_get_listing |
Full AutoScout24 listing detail (/v1/autoscout24/listing): native specifications, equipment, photos, prices and public seller data. Pass exactly one url or listing_id from a vehicle search; market is inferred from the URL, otherwise de. 10 credits; removed listings are unbilled 404s |
These tools return the API response unchanged, so every native field stays available. See the Yelp, GitHub and AutoScout24 docs.
The server 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.
Example Conversations
Research a Twitter Account
You: Get the profile and recent tweets from @sama
Claude: I'll fetch Sam Altman's Twitter profile and recent tweets.
Uses get_twitter_user_profile and get_twitter_user_tweets
Sam Altman (@sama)
- 3.2M followers, 1,847 following
- Bio: "ceo of openai"
- Joined: December 2008
Recent tweets:
1. "excited to share..." (245K likes)
2. "the future of ai..." (180K likes)
...
Monitor Trending Topics
You: What's trending in tech on Twitter today?
Claude: I'll check the current trending topics.
Uses get_twitter_trends with category="news"
Top Tech Trends:
1. #GPT5 - 125,000 tweets
2. Apple Vision Pro - 89,000 tweets
3. #AGI - 45,000 tweets
...
Competitive Analysis
You: Compare the Twitter engagement of Stripe, Square, and PayPal
Claude: I'll gather data on all three companies' Twitter profiles.
Uses get_twitter_user_profile for each company
| Company | Followers | Following | Engagement Rate |
|---------|-----------|-----------|-----------------|
| Stripe | 892K | 1,245 | 2.3% |
| Square | 1.2M | 567 | 1.8% |
| PayPal | 2.1M | 234 | 0.9% |
Configuration Options
Environment Variables
| Variable | Required | Description |
|---|---|---|
SCRAPEBADGER_API_KEY |
Yes | Your ScrapeBadger API key |
Using with Docker
FROM python:3.12-slim
RUN pip install scrapebadger-mcp
ENV SCRAPEBADGER_API_KEY=your_key_here
CMD ["scrapebadger-mcp"]
Using with Python Directly
# Set your API key
export SCRAPEBADGER_API_KEY="sb_live_your_key_here"
# Run the server
python -m scrapebadger_mcp.server
Error Handling
The MCP server handles common errors gracefully:
| Error | Description | Solution |
|---|---|---|
AuthenticationError |
Invalid API key | Check your SCRAPEBADGER_API_KEY |
RateLimitError |
Too many requests | Wait and retry, or upgrade your plan |
InsufficientCreditsError |
Out of credits | Purchase more at scrapebadger.com |
NotFoundError |
User/tweet not found | Verify the username or tweet ID |
Development
Setup
# Clone the repository
git clone https://github.com/scrape-badger/scrapebadger-mcp.git
cd scrapebadger-mcp
# Install dependencies
uv sync --dev
# Set your API key
export SCRAPEBADGER_API_KEY="sb_live_your_key_here"
Running Locally
# Run the MCP server directly
uv run python -m scrapebadger_mcp.server
# Or use the CLI
uv run scrapebadger-mcp
Testing
# Run tests
uv run pytest
# Run with coverage
uv run pytest --cov=src/scrapebadger_mcp
Code Quality
# Lint
uv run ruff check src/
# Format
uv run ruff format src/
# Type check
uv run mypy src/
Troubleshooting
"SCRAPEBADGER_API_KEY environment variable is required"
Make sure you've set the API key in your MCP configuration:
{
"env": {
"SCRAPEBADGER_API_KEY": "sb_live_your_key_here"
}
}
Server not showing in Claude Desktop
- Restart Claude Desktop after changing the config
- Check the config file path is correct for your OS
- Verify JSON syntax 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"
Rate limit errors
ScrapeBadger has usage limits based on your plan. If you're hitting limits:
- Reduce request frequency
- Use pagination with smaller
max_results - Upgrade your plan at scrapebadger.com
Related Projects
- ScrapeBadger Python SDK - Official Python SDK
- ScrapeBadger Node.js SDK - Official Node.js SDK
- ScrapeBadger API Docs - Full API documentation
Support
- Documentation: docs.scrapebadger.com
- Issues: GitHub Issues
- Email: support@scrapebadger.com
- Discord: Join our community
License
MIT License - see LICENSE for details.
Made with love by ScrapeBadger
Metadata
Release files for scrapebadger-mcp 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrapebadger_mcp-0.5.0.tar.gz | 113.6 kB | With provenance | Details for scrapebadger_mcp-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapebadger_mcp-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for scrapebadger_mcp-0.5.0-py3-none-any.whl |
Total release size: 129.1 kB
Release files / scrapebadger_mcp-0.5.0.tar.gz
| Download URL | scrapebadger_mcp-0.5.0.tar.gz |
|---|---|
| Size | 113.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58b49f62f5096d2813fc0d8879a28f623ab7d3879b05ffebb32f6b57caec37fe
|
|
BLAKE2b-256 checksum How to use checksums |
807564bf59b37f3fe88e0b036cb4ba6e1dddea389f9e3c2f9e36b5b235544aba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / scrapebadger_mcp-0.5.0-py3-none-any.whl
| Download URL | scrapebadger_mcp-0.5.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb09c81c47ac1b9a2fc366ce22f0f4fccd5473448beaf2d216afa1db761c1497
|
|
BLAKE2b-256 checksum How to use checksums |
35b9f5f36d76e6a14347290390f5518a5b8196983c224cefb0c791361df0d4e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for scrapebadger-mcp 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scrapebadger_mcp-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.