ScrapeBadger

io.github.scrape-badger由 GitHub 帳號 scrape-badger 發布v0.6.0更新於 Nov 8, 2026

Twitter/X, Google Search, Yelp, GitHub repositories and AutoScout24 listings for AI agents.

發布方自己的服務:Scrape.ly

概覽

AI 產生的概覽

本機 MCP 伺服器,透過 ScrapeBadger API 讓助理取得 Twitter/X 資料、Google 搜尋結果、Yelp 商家、GitHub 儲存庫與 AutoScout24 車輛資訊。

可以做什麼
  • 讀取 Twitter/X 使用者:個人資料、About 資訊、使用者搜尋、追蹤者與追蹤中
  • 搜尋並讀取推文,並查看全球或依地點劃分的熱門話題
  • 瀏覽 Twitter 清單、社群與地點
  • 執行 Google 搜尋並讀取自然結果、廣告、知識圖譜、AI 概覽與「大家還在問」答案
  • 搜尋美國與加拿大的 Yelp 商家,並列出支援的 Yelp 站點
  • 讀取公開 GitHub 儲存庫的 README、根目錄檔案、最新提交與統計資料
適用情境
適合讓助理調查社群媒體帳號與趨勢、取得結構化的 Google 搜尋結果、查詢在地商家、檢視公開儲存庫,或讀取車輛資訊,而不必自行撰寫爬取程式。
執行需求
以 Python 套件(pypi scrapebadger-mcp)形式在本機執行,可透過 uvx、pip、uv 或 Docker 啟動。需要 ScrapeBadger 帳號,並以環境變數 SCRAPEBADGER_API_KEY 提供 API 金鑰。需要能連線至 ScrapeBadger API 的網路。
安裝前請注意
SCRAPEBADGER_API_KEY 是付費憑證,應避免寫入共用設定。呼叫會消耗額度(例如每個 GitHub 儲存庫或 AutoScout24 車輛資訊 10 點,每頁 Yelp 結果 15 點,每次 Google 搜尋 20 點並乘以已回答的「大家還在問」問題數),額度用完需另行購買。查詢內容與目標對象會傳送給第三方 ScrapeBadger 服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ScrapeBadger,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[ScrapeBadger]

ScrapeBadger MCP Server

[PyPI version] [Python versions] [License] [MCP Compatible]

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

bash
# Using uvx (recommended - no installation needed)uvx scrapebadger-mcp
# Or install globally with pippip install scrapebadger-mcp
# Or with uvuv 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

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):

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:

json
{  "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):

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

ToolDescription
get_twitter_user_profileGet a user's profile by username (bio, followers, following, etc.)
get_twitter_user_aboutGet extended "About" info (account location, username history)
search_twitter_usersSearch for users by query
get_twitter_followersGet a user's followers
get_twitter_followingGet accounts a user follows

Tweet Tools

ToolDescription
get_twitter_tweetGet a single tweet by ID
get_twitter_user_tweetsGet recent tweets from a user
search_twitter_tweetsSearch for tweets (supports Twitter search operators)

Trend Tools

ToolDescription
get_twitter_trendsGet global trending topics (optionally by category)
get_twitter_place_trendsGet trends for a specific location (by WOEID)

Geo Tools

ToolDescription
search_twitter_placesSearch for Twitter places by name

List Tools

ToolDescription
get_twitter_list_detailGet details about a Twitter list
search_twitter_listsSearch for Twitter lists
get_twitter_list_tweetsGet tweets from a list

Community Tools

ToolDescription
get_twitter_community_detailGet details about a Twitter community
search_twitter_communitiesSearch for communities

Google Tools

ToolDescription
search_googleSearch 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

ToolDescription
yelp_search_businessesYelp 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_marketsThe Yelp sites this API searches (/v1/yelp/markets). Free
github_get_repositoryA 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_listingFull 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 tweets2. Apple Vision Pro - 89,000 tweets3. #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

VariableRequiredDescription
SCRAPEBADGER_API_KEYYesYour ScrapeBadger API key

Using with Docker

dockerfile
FROM python:3.12-slim
RUN pip install scrapebadger-mcp
ENV SCRAPEBADGER_API_KEY=your_key_here
CMD ["scrapebadger-mcp"]

Using with Python Directly

bash
# Set your API keyexport SCRAPEBADGER_API_KEY="sb_live_your_key_here"
# Run the serverpython -m scrapebadger_mcp.server

Error Handling

The MCP server handles common errors gracefully:

ErrorDescriptionSolution
AuthenticationErrorInvalid API keyCheck your SCRAPEBADGER_API_KEY
RateLimitErrorToo many requestsWait and retry, or upgrade your plan
InsufficientCreditsErrorOut of creditsPurchase more at scrapebadger.com
NotFoundErrorUser/tweet not foundVerify the username or tweet ID

Development

Setup

bash
# Clone the repositorygit clone https://github.com/scrape-badger/scrapebadger-mcp.gitcd scrapebadger-mcp
# Install dependenciesuv sync --dev
# Set your API keyexport SCRAPEBADGER_API_KEY="sb_live_your_key_here"

Running Locally

bash
# Run the MCP server directlyuv run python -m scrapebadger_mcp.server
# Or use the CLIuv run scrapebadger-mcp

Testing

bash
# Run testsuv run pytest
# Run with coverageuv run pytest --cov=src/scrapebadger_mcp

Code Quality

bash
# Lintuv run ruff check src/
# Formatuv run ruff format src/
# Type checkuv run mypy src/

Troubleshooting

"SCRAPEBADGER_API_KEY environment variable is required"

Make sure you've set the API key in your MCP configuration:

json
{  "env": {    "SCRAPEBADGER_API_KEY": "sb_live_your_key_here"  }}

Server not showing in Claude Desktop

  1. Restart Claude Desktop after changing the config
  2. Check the config file path is correct for your OS
  3. Verify JSON syntax is valid (no trailing commas)

"uvx: command not found"

Install uv first:

bash
# macOS/Linuxcurl -LsSf https://astral.sh/uv/install.sh | sh
# Windowspowershell -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:

  1. Reduce request frequency
  2. Use pagination with smaller max_results
  3. Upgrade your plan at scrapebadger.com

Related Projects


Support


License

MIT License - see LICENSE for details.


Made with love by ScrapeBadger

來源:README.md,提交 f392aba

工具

19

get_twitter_user_profile

Get a Twitter/X user's profile by username. Returns name, bio, follower count, following count, verified status, and more.

輸入參數username必填

search_twitter_users

Search for Twitter/X users by query. Returns matching profiles with bios, follower counts, and verification status.

輸入參數query必填max_results

get_twitter_followers

Get followers of a Twitter/X user. Returns list of follower profiles with their bios and follower counts.

輸入參數username必填max_results

get_twitter_following

Get accounts that a Twitter/X user is following. Returns list of following profiles with their bios and follower counts.

輸入參數username必填max_results

get_twitter_tweet

Get a single tweet by ID. Returns tweet text, author, metrics (likes, retweets, replies), media, polls, and quoted tweets.

輸入參數tweet_id必填

get_twitter_user_tweets

Get recent tweets from a Twitter/X user. Returns tweets with text, metrics, media, and engagement data.

輸入參數username必填max_results

search_twitter_tweets

Search for tweets by query. Returns matching tweets with text, authors, metrics, and media. Supports advanced Twitter search operators.

輸入參數query必填max_results

search_twitter_places

Search for Twitter places by name. Returns place names, types, and full location details for use with geolocated tweets.

輸入參數query必填

get_twitter_list_detail

Get details about a Twitter list including name, description, member count, subscriber count, and owner information.

輸入參數list_id必填

get_twitter_list_tweets

Get recent tweets from a Twitter list. Returns tweets from all list members with text, metrics, and media.

輸入參數list_id必填max_results

get_twitter_community_detail

Get details about a Twitter community including name, description, member count, rules, and admin information.

輸入參數community_id必填

search_twitter_communities

Search for Twitter communities by query. Returns matching communities with names, descriptions, and member counts.

輸入參數query必填

search_google

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.

輸入參數q必填crglhlielroqsiibplatlonnum另有 36 個

autoscout24_get_listing

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.

輸入參數urlmarketlisting_id

github_get_repository

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 uncached call.

輸入參數repo必填owner必填

yelp_search_businesses

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, errors and cache hits are free. Follow next_page while has_next_page is true.

輸入參數pagepricequerymarketsort_bycategoryfeatureslocation必填

yelp_list_markets

List the Yelp sites this API searches (us, ca). Free.

無需輸入參數。

版本歷史

4
  1. v0.6.0最新Nov 8, 2026
  2. v0.4.0Nov 7, 2026
  3. v0.1.2Sep 30, 2026
  4. v0.1.1Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Scrape 整合