Prototipo · Versión preliminar: todos los servidores del registro oficial, sincronizados cada 30 minutos. Inicia sesión con Google para escribir reseñas.
PopNx MCPServidores MCP para quienes usan IA · explicados con palabras sencillas

ScrapingBee

de ScrapingBeeversión 2.2.1i★ 0iSe ejecuta en la nube
Nombre en el registrocom.scrapingbee/mcp

Cómo instalar

Resumen

Descripción del creador (original en inglés)

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

Qué puedes hacer con él

Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.

  • Conexión: Se ejecuta en la nube
  • Transporte: Streamable HTTP
  • Categoría: Web y navegadores
  • Debes completar: Authorization

Instalación

Elige la app de IA que usas y copia la configuración.

Pasó 4/5 revisiones · Lo que preguntas pasa por el servidor del autor (mcp.scrapingbee.com)

Primero: ¿qué IA usas?

Elige tu app y los pasos aparecen abajo.

Funciona con Claude · unos 5 min

Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo) · Configúralo una vez en claude.ai o en la app de escritorio y úsalo en el chat · las cuentas gratis pueden añadir 1

  1. Regístrate y crea una clave de ScrapingBee

    Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.

    Abrir el sitio de ScrapingBee ↗

  2. Abre la página Connectors de Claude

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  3. Pulsa “+ Add” → “Add custom connector” y completa estos 2 campos

    Copia cada valor al campo con el mismo nombre en Claude y pulsa Continue

    Name · NombreScrapingBee
    Remote MCP server URL · Direcciónhttps://mcp.scrapingbee.com/mcp

    En Request headers, añade este nombre y valor

    Nombre del headerAuthorization
    ValorBearer <pega tu clave aquí>

    Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie

    Deja Authentication como lo detectó Claude y pulsa Add

  4. Actívalo en un chat

    +ConnectorsScrapingBee

  5. Pruébalo

    Usa ScrapingBee y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Claude dice que está usando ScrapingBee o muestra una herramienta de ScrapingBee en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión

ChatGPT todavía no puede conectar ScrapingBee

ScrapingBee necesita tu propia clave para conectarse, pero la ayuda de OpenAI solo describe el inicio de sesión con OAuth; no hay una opción de clave que hayamos podido verificar

Lo que puedes hacer en su lugar

A · Usa una app que pueda conectar ScrapingBee

  • Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo) · Configúralo una vez en claude.ai o en la app de escritorio y úsalo en el chat · las cuentas gratis pueden añadir 1
  • Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)
  • Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)
  • Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)

B · Otros en Web y navegadores que funcionan con ChatGPT

Elegidos entre los más usados de la misma categoría, solo los que se conectan con una dirección y sin clave

Funciona con Claude Code · unos 5 min

Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)

  1. Regístrate y crea una clave de ScrapingBee

    Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.

    Abrir el sitio de ScrapingBee ↗

  2. Abre la Terminal

    Mac: pulsa Command+Espacio y escribe Terminal · Windows: abre PowerShell

  3. Pega este comando y pulsa Enter

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

    Cambia “your-value” por tu clave antes de pulsar Enter

    Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie

  4. Escribe /mcp en Claude Code

    Deberías ver ScrapingBee en la lista como conectado

  5. Pruébalo

    Usa ScrapingBee y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Claude Code dice que está usando ScrapingBee o muestra una herramienta de ScrapingBee en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con Cursor · unos 5 min

Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)

  1. Regístrate y crea una clave de ScrapingBee

    Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.

    Abrir el sitio de ScrapingBee ↗

  2. Pulsa este botón para abrir Cursor

    Abrir en Cursor

    Cursor te pedirá confirmar; pulsa Install

  3. Escribe tu clave

    En la configuración de ScrapingBee, Authorization está vacío; añade tu clave y guarda

    Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie

  4. Abre el chat de IA de Cursor en modo Agent

  5. Pruébalo

    Usa ScrapingBee y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Cursor dice que está usando ScrapingBee o muestra una herramienta de ScrapingBee en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Cursor el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con VS Code · unos 5 min

Necesitas una clave de ScrapingBee (regístrate en el sitio del autor; puede tener costo)

  1. Regístrate y crea una clave de ScrapingBee

    Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.

    Abrir el sitio de ScrapingBee ↗

  2. Pulsa este botón para abrir VS Code

    Abrir en VS Code

    VS Code te pedirá confirmar; pulsa Install

  3. Escribe tu clave

    En la configuración de ScrapingBee, Authorization está vacío; añade tu clave y guarda

    Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie

  4. Abre el chat de IA de VS Code en modo Agent

  5. Pruébalo

    Usa ScrapingBee y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si VS Code dice que está usando ScrapingBee o muestra una herramienta de ScrapingBee en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de VS Code el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Otras apps que usan MCP, como Windsurf, Zed o Gemini CLI, añaden servidores de forma distinta. Míralo en la lista de apps

Ver todas las apps que usan MCP →

Dirección para apps que se conectan por la web

Direcciónhttps://mcp.scrapingbee.com/mcp

La configuración JSON está en “Para desarrolladores”, abajo

¿Te atascaste? Pregunta a quien usa ScrapingBee💬 Conversación →
Para desarrolladores: comandos de Terminal y configuración JSON

Por la 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"
      }
    }
  }
}

Valores que debes completar

  • Authorization secreto obligatorio HTTP header
    Bearer . Get the key from https://app.scrapingbee.com/account/manage/api_key

Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.

De un vistazo

Descargas por semanai
No está en npm/PyPI
Dominio verificado
✓ scrapingbee.com
Licenciai
Sin licencia indicada
Conexión
Se ejecuta en la nube
Transporte
streamable-http
Última versióni
2.2.1
Publicado en el registroi
9 oct 2026
Último cambio de códigoi
9 oct 2026
Creador
ScrapingBee
Estado en el registro
Activo

Qué apps pueden usarlo

Según cómo se conecta este servidor y la documentación de cada app, comprobado el 10 nov 2026.

Se conectan por internet en

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

Todas las apps, con ventajas y desventajas →

Qué puede hacer

Nombres y descripciones de las herramientas tal como los informó el servidor el 8 nov 2026. Los escribió el creador, no nosotros; los mostramos como texto sin formato.

  • 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`.

Revisiones básicasi

Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 11 nov 2026

  • ✓ Superada

    El creador coincide con el repo

    El nombre en el registro se verificó con el dominio scrapingbee.com (el registro comprueba quién es dueño del dominio)

  • ✓ Superada

    Sigue en mantenimiento

    Último cambio de código: hace 33 días

  • ✕ No superada

    Tiene licencia

    No se encontró ningún archivo de licencia en el repo

  • ✓ Superada

    El endpoint responde

    Respondió en 1281 ms (HTTP 200)

  • – No aplica

    Inicio de sesión con OAuth

    No hace falta iniciar sesión

  • ✓ Superada

    Sin instrucciones ocultas en las descripciones de herramientas

    Leímos 18 descripciones de herramientas y no encontramos instrucciones ocultas para la IA

Conversación

Pregunta, comparte un consejo o avisa de que no funciona. Ordenado por lo que la gente marcó como útil.

Aún no hay publicaciones. Sé la primera persona en preguntar o compartir.

Lo publicado aquí lo escriben usuarios, no el equipo de PopNx.

Inicia sesión con Google para publicar

Reseñas de usuarios

Aún no hay reseñas

Inicia sesión con Google para escribir una reseña

Comparado con otros en Web y navegadoresi

  • Más estrellas que el 0% de los otros 1465 servidores de esta categoría
  • Publicado en el registro más recientemente que el 48% de los otros 1465 servidores de esta categoría
  • Revisiones básicas iguales o mejores que el 54% de los otros 1465 servidores de esta categoría

Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.

Preguntas frecuentes

¿Es seguro ScrapingBee?

Superó 4 de 5 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.

¿Qué claves o códigos necesita?

Debes completar: Authorization

¿Se ejecuta en mi computadora o en la nube?

Se ejecuta en la nube del creador. Te conectas por internet sin instalar nada, pero lo que envías pasa por los servidores del creador.

¿Sigue en mantenimiento?

El repo de GitHub cambió por última vez hace 33 días, y la última versión (2.2.1) llegó al registro hace 33 días.

¿Qué apps pueden usarlo?

Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. Se conecta por URL, así que también funciona en apps que aceptan MCP remoto, como ChatGPT Business o superior.

¿Qué puedo usar en su lugar?

En la misma categoría: Browser Use, Scrapling MCP Server, Chrome DevTools MCP

Alternativas

Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.

Cómo leer una tarjeta:↓ Descargas por semanai★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi

Browser Use

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

de browser-useMuy usado↓ 1,7 M/sem★ 120,6 milActualizado hace 21 días

Computadora o nube✓ browser-use.com

Scrapling MCP Server

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

de D4VinciMuy usado↓ 396,9 mil/sem★ 101,2 milActualizado hace 7 días

Se ejecuta en tu computadora

Chrome DevTools MCP

MCP server for Chrome DevTools

de ChromeDevToolsMuy usado↓ 1,9 M/sem★ 55,1 milActualizado hace 20 días

Se ejecuta en tu computadora

README del creador

Abrir el README

Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.

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

Solo se muestra el principio; lee el resto en el repo