プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

ScrapingBee

作者:ScrapingBeeバージョン 2.2.1i★ 0iクラウドで動く
レジストリ名com.scrapingbee/mcp

インストール方法

概要

作者による説明(英語の原文)

Scrape any web page, search Google/Amazon/Walmart/YouTube and extract data via the ScrapingBee API.

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: クラウドで動く
  • トランスポート: Streamable HTTP
  • カテゴリ: ウェブ・ブラウザ
  • 入力が必要なもの:Authorization

インストール

使っているAIアプリを選んで、設定をコピーしてください。

チェック 4/5 合格 · 質問内容は提供元のサーバー(mcp.scrapingbee.com)を通ります

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげます · 約 5 分

ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · claude.ai かデスクトップアプリで一度設定すれば、チャットで使えます · 無料アカウントは 1 つまで

  1. ScrapingBee に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。費用がかかる場合があります。

    ScrapingBee のサイトを開く ↗

  2. Claude の Connectors ページを開く

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  3. 「+ Add」→「Add custom connector」を押し、この 2 つを入力

    ここからコピーして Claude の同じ名前の欄に貼り付け、Continue を押します

    Name · 名前ScrapingBee
    Remote MCP server URL · アドレスhttps://mcp.scrapingbee.com/mcp

    Request headers に、この名前と値を追加

    ヘッダー名Authorization
    値Bearer <ここにキーを貼り付け>

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

    Authentication は Claude が検出したままにして Add を押します

  4. チャットで有効にする

    +ConnectorsScrapingBee

  5. 試してみる

    ScrapingBee を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が ScrapingBee を使っていると言うか、回答に ScrapingBee のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ ScrapingBee につなげません

ScrapingBee は接続時に自分のキーが必要ですが、OpenAI のヘルプページは OAuth ログインしか説明しておらず、確認できたキー入力方法がありません

代わりにできること

A · ScrapingBee につなげるアプリを使う

  • ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · claude.ai かデスクトップアプリで一度設定すれば、チャットで使えます · 無料アカウントは 1 つまで
  • ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)
  • ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)
  • ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)

B · ウェブ・ブラウザ の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげます · 約 5 分

ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)

  1. ScrapingBee に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。費用がかかる場合があります。

    ScrapingBee のサイトを開く ↗

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --transport http scrapingbee https://mcp.scrapingbee.com/mcp --header 'Authorization: your-value'

    Enter の前に「your-value」を自分のキーに書き換えてください

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  4. Claude Code で /mcp と入力

    ScrapingBee が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    ScrapingBee を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が ScrapingBee を使っていると言うか、回答に ScrapingBee のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげます · 約 5 分

ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)

  1. ScrapingBee に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。費用がかかる場合があります。

    ScrapingBee のサイトを開く ↗

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. キーを入力

    ScrapingBee の設定で Authorization が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  4. Cursor の AI チャットを Agent モードで開く

  5. 試してみる

    ScrapingBee を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が ScrapingBee を使っていると言うか、回答に ScrapingBee のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげます · 約 5 分

ScrapingBee のキーが必要です(提供元のサイトで登録、費用がかかる場合あり)

  1. ScrapingBee に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。費用がかかる場合があります。

    ScrapingBee のサイトを開く ↗

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. キーを入力

    ScrapingBee の設定で Authorization が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  4. VS Code の AI チャットを Agent モードで開く

  5. 試してみる

    ScrapingBee を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が ScrapingBee を使っていると言うか、回答に ScrapingBee のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

Web 経由でつなぐアプリ用のアドレス

アドレスhttps://mcp.scrapingbee.com/mcp

JSON 設定は下の「開発者向け」にあります

つまずいたら?ScrapingBee を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

Web 経由

Claude Code

claude mcp add --transport http scrapingbee https://mcp.scrapingbee.com/mcp --header 'Authorization: your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "scrapingbee": {
      "url": "https://mcp.scrapingbee.com/mcp",
      "headers": {
        "Authorization": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "scrapingbee": {
      "type": "http",
      "url": "https://mcp.scrapingbee.com/mcp",
      "headers": {
        "Authorization": "your-value"
      }
    }
  }
}

自分で入力する値

  • Authorization 秘密 必須 HTTP header
    Bearer . Get the key from https://app.scrapingbee.com/account/manage/api_key

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
確認済みドメイン
✓ scrapingbee.com
ライセンスi
ライセンスの記載なし
接続方法
クラウドで動く
トランスポート
streamable-http
最新バージョンi
2.2.1
レジストリ公開日i
2026年10月9日
コードの最終更新i
2026年10月9日
作者
ScrapingBee
ウェブサイト
www.scrapingbee.com
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

インターネット経由でつなげるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

すべてのアプリと長所・短所 →

できること

ツールの名前と説明は、サーバーが2026年11月8日に返したそのままの内容です。書いたのは作者で、私たちではありません。プレーンテキストとして表示しています。

  • get_amazon_search_results

    Scrape Amazon search results using ScrapingBee. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

  • get_amazon_product_details

    Scrape Amazon product details using ScrapingBee. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

  • get_amazon_pricing

    Retrieve current Amazon product pricing and seller offers for a given ASIN. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir resul

  • ask_chatgpt

    This tool allows you to send a prompt to OpenAI's ChatGPT via ScrapingBee and get back the generated response. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-

  • fast_search

    Search the web using ScrapingBee's Fast Search API and return structured results. This is the PRIMARY tool for web searches — it returns clean organic results and top stories in under one second at a lower credit cost. USE THIS TOOL FIRST for any general web search. Only fall bac

  • ask_gemini

    Ask Gemini through ScrapingBee and receive citation objects when available. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir resul

  • get_google_search_results

    This is a FALLBACK tool — use fast_search first for general web searches. Only use this tool when you need specialized search types that fast_search does not support: news, maps, Google Lens, shopping, image search, or Google AI mode. Scrape Google search results using ScrapingBe

  • get_page_text

    Scrape a URL using ScrapingBee and return the page content in Markdown or Text format. Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the Scrap

  • get_page_html

    Scrape a URL using ScrapingBee and return the page content in HTML. Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the ScrapingBee CLI instead

  • extract_page_data

    Scrape a URL using ScrapingBee and extract specific data using CSS or XPath selectors. Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the Scrap

  • get_screenshot

    Scrape a URL using ScrapingBee and return it's screenshot. Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the ScrapingBee CLI instead — `scrapi

  • get_file

    Fetches a file from a URL and returns it in a format suitable for FastMcP. This tool can be used to fetch any file type, including images, PDFs, etc. The framework will handle the encoding and packaging of the file. Scope: one URL per call, with the result returned into the conve

  • get_scrapingbee_usage

    Read real-time credit and concurrency usage for the authenticated ScrapingBee account. Note: This endpoint is rate-limited to 6 calls per minute and does not count against the account's concurrency limit. Returns: max_api_credit, used_api_credit, max_concurrency, current_concurre

  • get_walmart_search_results

    Scrape Walmart search results using ScrapingBee. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

  • get_walmart_product_details

    Scrape Walmart product details using ScrapingBee. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

  • get_youtube_search_results

    Search YouTube and return structured results. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

  • get_youtube_video_metadata

    Fetch structured metadata for a YouTube video including title, description, views, likes, channel info, and technical details. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scra

  • get_youtube_video_subtitles

    Retrieve subtitles for one YouTube video. Scope: one query per call. To run many queries in one pass, or to write results to disk instead of into the conversation, use the ScrapingBee CLI — `scrapingbee --input-file queries.txt --output-dir results`.

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月12日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名はドメイン scrapingbee.com で確認済みです(レジストリがドメインの所有を確認しています)

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:33 日前

  • ✕ 不合格

    ライセンスがある

    リポジトリにライセンスファイルが見つかりません

  • ✓ 合格

    エンドポイントが応答する

    1281ミリ秒で応答(HTTP 200)

  • – 対象外

    OAuthでサインイン

    サインイン不要

  • ✓ 合格

    ツールの説明に隠れた指示がない

    18件のツールの説明を読み、AIへの隠れた指示は見つかりませんでした

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

Google でログインして投稿

ユーザーレビュー

まだレビューはありません

Google でログインしてレビューを書く

ウェブ・ブラウザのほかのサーバーとの比較i

  • このカテゴリのほかの1469件のうち0%よりスターが多い
  • このカテゴリのほかの1469件のうち48%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1469件のうち56%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

ScrapingBeeは安全ですか?

当てはまる基本チェック5項目のうち4項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:Authorization

パソコンで動きますか、それともクラウドですか?

作者のクラウドで動きます。インストール不要でインターネット経由でつながりますが、送った内容は作者のサーバーを通ります。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は33 日前、最新バージョン(2.2.1)がレジストリに届いたのは33 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URL で接続するので、リモート MCP に対応したアプリでも使えます(例:ChatGPT Business 以上)。

代わりに使えるものは?

同じカテゴリには:Browser Use, Scrapling MCP Server, Chrome DevTools MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Browser Use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

作者:browser-use広く使われている↓ 167.3万/週★ 12.1万22 日前更新

パソコンでもクラウドでも✓ browser-use.com

Scrapling MCP Server

Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.

作者:D4Vinci広く使われている↓ 39.7万/週★ 10.1万7 日前更新

パソコンで動く

Chrome DevTools MCP

MCP server for Chrome DevTools

作者:ChromeDevTools広く使われている↓ 186.9万/週★ 5.5万今日更新

パソコンで動く

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

ScrapingBee MCP Server

A production-ready Model Context Protocol (MCP) server that enables AI agents to access structured web data using ScrapingBee as a tool.

This project demonstrates how to transform ScrapingBee into an AI-native data layer. Instead of embedding scraping logic directly inside prompts, AI agents register ScrapingBee as a tool and request structured web data on demand.

If you are building:

• AI agents that require live web access • Autonomous research systems • Ecommerce intelligence bots • Market monitoring agents • LLM workflows with tool execution • AI-powered web scraping infrastructure

This repository provides a complete MCP integration blueprint.

Quick start

The server is hosted by ScrapingBee at `https://mcp.scrapingbee.com/mcp` (Streamable HTTP) — there is nothing to install. You need a ScrapingBee API key (get one here; trial credits included), sent as the header Authorization: Bearer . Registry name: com.scrapingbee/mcp.

Claude Code

claude mcp add --transport http scrapingbee https://mcp.scrapingbee.com/mcp \

--header "Authorization: Bearer YOUR_API_KEY"

Codex CLI

codex mcp add scrapingbee --url https://mcp.scrapingbee.com/mcp \

--bearer-token-env-var SCRAPINGBEE_API_KEY

Cursor, VS Code and other clients with a JSON config

{

"mcpServers": { "scrapingbee": { "url": "https://mcp.scrapingbee.com/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } }

Also available through Glama, Smithery and the MCP Registry.

Tools
ToolWhat it does
get_page_textFetch a URL and return its content as text or markdown (JavaScript rendered, blocks handled)
get_page_htmlFetch a URL and return the rendered HTML
get_screenshotFetch a URL and return a screenshot
get_fileDownload a file (PDF, image, …) from a URL
extract_page_dataFetch a URL and extract specific data with CSS or XPath selectors
fast_searchFast web search returning clean organic results and top stories — the first choice for general searches
get_google_search_resultsGoogle SERP as JSON for specialised searches: news, maps, Lens, shopping, images, AI mode
get_amazon_search_resultsAmazon search results as JSON
get_amazon_product_detailsAmazon product details by ASIN
get_amazon_pricingCurrent Amazon price and seller offers by ASIN
get_walmart_search_resultsWalmart search results as JSON
get_walmart_product_detailsWalmart product details by ID
get_youtube_search_resultsYouTube search results
get_youtube_video_metadataTitle, description, stats and more for a video
get_youtube_video_subtitlesSubtitles / transcript for a video
ask_chatgptSend a prompt to ChatGPT, optionally with web search
ask_geminiSend a prompt to Gemini, with citations when available
get_scrapingbee_usageRemaining credits and concurrency for your account

Each call consumes API credits exactly as the equivalent ScrapingBee API request would (see pricing and the API documentation). The server handles one page or query per call; for hundreds of URLs, crawling a site, writing results to files or scheduling recurring jobs, use the ScrapingBee CLI.

Relevant keywords: scrapingbee mcp model context protocol server mcp scraping ai agent web scraping mcp web scraping tool

What Is Model Context Protocol (MCP)?

Model Context Protocol (MCP) defines how AI systems interact with external tools in a structured way.

Instead of letting a language model guess how to scrape or browse the web, MCP allows it to:

  1. Discover available tools
  2. Call a tool using structured parameters
  3. Receive normalized JSON responses
  4. Inject results back into the reasoning loop

The ScrapingBee MCP server exposes web scraping capabilities as a formally registered tool that AI systems can use safely and predictably.

Why Use ScrapingBee with MCP?

AI models cannot reliably:

• Bypass anti-bot protections • Manage proxy rotation • Render JavaScript-heavy pages • Handle CAPTCHA challenges • Maintain scraping infrastructure

ScrapingBee handles all of that.

The MCP server acts as a bridge between your AI agent and ScrapingBee’s managed scraping infrastructure.

This enables true AI agent web scraping without fragile prompt-based hacks.

Architecture Overview

AI Agent → MCP Client → ScrapingBee MCP Server → ScrapingBee API → Target Website → Structured JSON Response → Injected Back Into Agent Context

The AI agent never scrapes directly. It calls tools. The MCP server executes them.

Installation

There is nothing to install or run: the server is operated by ScrapingBee at https://mcp.scrapingbee.com/mcp. The only setup is your API key, which every client below sends as a Authorization: Bearer header:

export SCRAPINGBEE_API_KEY=your_api_key
Connecting to the ScrapingBee MCP Server

You can connect in two ways:

  1. Via Claude Desktop (remote MCP)
  2. Via a custom Python MCP client

Option 1: Connect to Claude Desktop

Add the ScrapingBee MCP server to your claude_desktop_config.json file:

{

"mcpServers": { "scrapingbee": { "command": "npx", "args": [ "mcp-remote", "https://mcp.scrapingbee.com/mcp", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" } } } }

(The AUTH_HEADER variable works around mcp-remote's handling of spaces in arguments.)

This registers ScrapingBee as an MCP tool provider inside Claude Desktop.

After restarting Claude, the tools become available automatically.

Option 2: Custom Python MCP Client

For advanced AI workflows, you can build a minimal async MCP client using Python.

Below is a complete working example.

custom_mcp_client.py
import os

import re import json import asyncio import httpx import google.generativeai as genai from typing import Dict, Any, List

MCP_SERVER_URL = "https://mcp.scrapingbee.com/mcp" SCRAPINGBEE_API_KEY = os.environ.get("SCRAPINGBEE_API_KEY") GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")

MCP Client Implementation
class MCPClient:

def init(self, base_url: str, api_key: str): self.base_url = base_url self.session_id = None self.http_client = httpx.AsyncClient(timeout=300) self.headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json", "Accept": "application/json, text/event-stream", "User-Agent": "Minimal-MCP-Client/1.0", }

async def _send_request(self, payload: Dict[str, Any]): headers = self.headers.copy() if self.session_id: headers["Mcp-Session-Id"] = self.session_id

response = await self.http_client.post(self.base_url, json=payload, headers=headers) response.raise_for_status()

text = (await response.aread()).decode("utf-8")

if "data:" in text: match = re.search(r"data:\s*({.*})", text, re.DOTALL) if match: return json.loads(match.group(1))

if response.status_code in [202, 204] or not text: return {"status": "ok"}

return json.loads(text)

async def initialize(self): init_payload = { "jsonrpc": "2.0", "id": "1", "method": "initialize", "params": { "protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "MinimalClient"}, }, }

async with self.http_client.stream( "POST", self.base_url, json=init_payload, headers=self.headers ) as response: self.session_id = response.headers.get("Mcp-Session-Id")

notify_payload = { "jsonrpc": "2.0", "method": "notifications/initialized", "params": {} }

await self._send_request(notify_payload)

list_payload = { "jsonrpc": "2.0", "id": "2", "method": "tools/list", "params": {} }

return await self._send_request(list_payload)

async def call_tool(self, tool_name: str, arguments: Dict[str, Any]): payload = { "jsonrpc": "2.0", "id": "3", "method": "tools/call", "params": { "name": tool_name, "arguments": arguments } }

return await self._send_request(payload)

Converting MCP Tools for Gemini
def format_tools_for_gemini(tools: List[Dict[str, Any]]):

type_map = { "string": genai.protos.Type.STRING, "integer": genai.protos.Type.INTEGER, "number": genai.protos.Type.NUMBER, "boolean": genai.protos.Type.BOOLEAN, }

gemini_tools = []

for tool in tools: properties = {} input_schema = tool.get("inputSchema", {})

if "properties" in input_schema: for name, prop in input_schema["properties"].items(): properties[name] = genai.protos.Schema( type=type_map.get(prop.get("type", "string")), description=prop.get("description", "") )

func = genai.protos.FunctionDeclaration( name=tool["name"], description=tool["description"], parameters=genai.protos.Schema( type=genai.protos.Type.OBJECT, properties=properties, required=input_schema.get("required", []) ), )

gemini_tools.append( genai.protos.Tool(function_declarations=[func]) )

return gemini_tools

Full AI → MCP → Tool Execution Flow
async def main():

mcp_client = MCPClient(MCP_SERVER_URL, SCRAPINGBEE_API_KEY) tools_response = await mcp_client.initialize()

genai.configure(api_key=GEMINI_API_KEY) gemini_tools = format_tools_for_gemini(tools_response"result")

model = genai.GenerativeModel( model_name="gemini-2.5-pro", tools=gemini_tools )

user_prompt = input("Ask the AI to perform a task:\n> ")

response = model.generate_content(user_prompt) function_call = response.candidates[0].content.parts[0].function_call

tool_name = function_call.name tool_args = dict(function_call.args)

result = await mcp_client.call_tool(tool_name, tool_args)

print(json.dumps(result, indent=2))

What This Enables

With this architecture you can:

• Build AI agents that reason about available tools • Allow LLMs to dynamically choose scraping actions • Execute structured web data extraction • Inject real-world data into model context • Create scalable AI-native web scraping systems

Conclusion

The ScrapingBee MCP Server transforms web scraping into a structured, tool-driven data layer for AI systems.

Instead of brittle prompt scraping, you get:

• Model Context Protocol compliance • JSON-RPC structured execution • AI agent web scraping • Scalable tool

冒頭だけを表示しています。続きはリポジトリで読めます