SuperAPIAI Directory

webscraping-ai-mcp-server

github.com · AI developer platforms

🎖️ 📇 ☁️ - Web data extraction and scraping via WebScraping.ai.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

WebScraping.AI MCP Server is the official open-source Model Context Protocol (MCP) server implementation by WebScraping.AI, used to integrate WebScraping.AI's web data extraction capabilities into AI clients that support MCP. This repository is the stdio version, suitable for self-hosting and customization; the official also provides a hosted remote MCP server, which https://mcp.webscraping.ai/mcp add to an MCP client and log in with a WebScraping.AI account, OAuth handles authentication, no API key or local installation required.

Main capabilities The server provides the following tools:

  • Web page Q&A (webscraping_ai_question): ask questions about web page content.
  • Structured field extraction (webscraping_ai_fields): extract structured data from web pages according to instructions.
  • HTML retrieval (webscraping_ai_html): retrieve complete HTML with JavaScript rendering.
  • Plain text extraction (webscraping_ai_text): extract the visible text of a web page.
  • CSS selector extraction (webscraping_ai_selected): extract the content of a single element by CSS selector.
  • Multi-element selector extraction (webscraping_ai_selected_multiple): extract the content of multiple elements by CSS selector.
  • Google search results (webscraping_ai_serp): search Google and return parsed results as JSON, including organic_results (position, title, link, domain, displayed_link, snippet, date), related_searches, search_information, and pagination; 10 results per page, position restarts from 1 on each page; billed per search, failed searches are not billed.
  • Structured data (webscraping_ai_data): retrieve structured JSON from ordinary URLs of supported sites, such as YouTube videos/channels/playlists, TikTok videos/profiles, X posts/profiles, LinkedIn companies/jobs/profiles, Instagram posts/Reels/profiles, Reddit posts/subreddits/users, etc. The site (provider) and page type (type) are automatically identified from the URL; unsupported or page type mismatches return 400 and are not billed. Billed per site, including parse_failed and not_found results; failed scrapes are not billed.
  • Account information (webscraping_ai_account): query WebScraping.AI account information.

In addition, the server supports Chromium JavaScript rendering, rotating datacenter/residential/stealth proxies, country selection, concurrent request management and rate limiting, custom JavaScript execution on target pages, device emulation (desktop/mobile/tablet), and content sandboxing options. Content sandboxing wraps scraped content with security boundaries to help guard against prompt injection.

Usage Can be run via npx: npx -y webscraping-ai-mcp. Can also be installed manually. Configure in Cursor (requires Cursor 0.45.6+): for project-level configuration create .cursor/mcp.json, for global configuration create ~/.cursor/mcp.json, configuration example: { "servers": { "webscraping-ai": { "type": "command", "command": "npx -y webscraping-ai-mcp", "env": { "WEBSCRAPING_AI_API_KEY": "your-api-key", "WEBSCRAPING_AI_CONCURRENCY_LIMIT": "5", "WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING": "true" } } } } On Windows, if you encounter issues, try the command: cmd /c "set WEBSCRAPING_AI_API_KEY=your-api-key && npx -y webscraping-ai-mcp". In Claude Desktop, add the corresponding configuration to claude_desktop_config.json.

Environment variables

  • WEBSCRAPING_AI_API_KEY: WebScraping.AI API key, required for all operations.
  • WEBSCRAPING_AI_CONCURRENCY_LIMIT: maximum number of concurrent requests, default 5.
  • WEBSCRAPING_AI_DEFAULT_PROXY_TYPE: proxy type, default residential.
  • WEBSCRAPING_AI_DEFAULT_JS_RENDERING: Whether to enable JavaScript rendering, default true.
  • WEBSCRAPING_AI_DEFAULT_TIMEOUT: Maximum time for web page fetching (milliseconds), default 15000, maximum 30000.
  • WEBSCRAPING_AI_DEFAULT_JS_TIMEOUT: Maximum time for JavaScript rendering (milliseconds), default 2000.
  • WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING: Whether to enable content sandboxing, default false; when enabled, all scraped content and search results will be wrapped in security boundaries.

Common options for all scraping tools (except webscraping_ai_serp, webscraping_ai_data, webscraping_ai_account) include: timeout, js, js_timeout, wait_for, proxy (datacenter/residential/stealth, default residential), country (supports us, gb, de, it, fr, ca, es, ru, jp, kr, in), custom_proxy, device (desktop/mobile/tablet), error_on_404, error_on_redirect, js_script.

Applicable scenarios and limitations Suitable for scenarios that require AI clients to perform tasks such as web scraping, content question answering, structured data extraction, and search result retrieval, and is especially suitable for users who already use MCP clients such as Cursor and Claude Desktop. Usage requires a WebScraping.AI API key (a free trial is provided, no credit card required), and some operations are billed per search or per site. The project uses the MIT license. The repository also includes the bin/smoke.js live smoke test script, which consumes real credits.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools