WebScraping.AI MCP Server

Interact with WebScraping.AI for web data extraction and scraping.

Remote serverstreamable-httpPython

What is the WebScraping.AI MCP server?

WebScraping.AI becomes available to MCP clients through the webscraping.ai mcp server. Interact with WebScraping.AI for web data extraction and scraping.

What WebScraping.AI does

A Model Context Protocol (MCP) server implementation that integrates with WebScraping.AI for web data extraction capabilities — Chromium JavaScript rendering, rotating datacenter/residential/stealth proxies, and AI-powered question answering and structured field extraction on any page.

Key capabilities

  • Question answering about web page content
  • Structured data extraction from web pages
  • HTML content retrieval with JavaScript rendering
  • Plain text extraction from web pages
  • CSS selector-based content extraction
  • Multiple proxy types (datacenter, residential, stealth) with country selection
  • JavaScript rendering using headless Chrome/Chromium
  • Concurrent request management with rate limiting

Tools it exposes

Once connected, the assistant can call these 12 tools directly:

  • timeout — Maximum web page retrieval time in ms (15000 by default, maximum is 30000)
  • js_timeout — Maximum JavaScript rendering time in ms (2000 by default)
  • wait_for — CSS selector to wait for before returning the page content
  • proxy — Type of proxy: datacenter, residential, or stealth (residential by default). Use stealth for the most heavily protected sites with advanced anti-bot detection
  • country — Country of the proxy to use (US by default). Supported countries: us, gb, de, it, fr, ca, es, ru, jp, kr, in
  • custom_proxy — Your own proxy URL in "http://user:password@host:port" format
  • device — Type of device emulation. Supported values: desktop, mobile, tablet
  • error_on_404 — Return error on 404 HTTP status on the target page (false by default)
  • error_on_redirect — Return error on redirect on the target page (false by default)
  • js_script — Custom JavaScript code to execute on the target page
  • Required — The Required tool exposed by this server
  • Contributing — 1. Fork the repository 2. Create your feature branch 3. Run tests: npm test 4. Submit a pull request

Installing the webscraping.ai mcp server

The server is distributed via npm as webscraping-ai-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 8 environment variables: WEBSCRAPING_AI_API_KEY, WEBSCRAPING_AI_CONCURRENCY_LIMIT, WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING, WEBSCRAPING_AI_DEFAULT_PROXY_TYPE, WEBSCRAPING_AI_DEFAULT_JS_RENDERING, WEBSCRAPING_AI_DEFAULT_TIMEOUT, WEBSCRAPING_AI_DEFAULT_JS_TIMEOUT, ANTHROPIC_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. WebScraping.AI sits in that group, and the shape of its toolset — timeout, js_timeout, wait_for among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This is a hosted server — you point your client at an endpoint rather than running a local process, so there is nothing to keep updated on your machine.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • With 12 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use WebScraping.AI.
  • Written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the webscraping.ai mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
timeoutMaximum web page retrieval time in ms (15000 by default, maximum is 30000)
js_timeoutMaximum JavaScript rendering time in ms (2000 by default)
wait_forCSS selector to wait for before returning the page content
proxyType of proxy: datacenter, residential, or stealth (residential by default). Use stealth for the most heavily protected sites with advanced anti-bot detection — costs more than residential, see the pricing page.
countryCountry of the proxy to use (US by default). Supported countries: us, gb, de, it, fr, ca, es, ru, jp, kr, in
custom_proxyYour own proxy URL in "http://user:password@host:port" format
deviceType of device emulation. Supported values: desktop, mobile, tablet
error_on_404Return error on 404 HTTP status on the target page (false by default)
error_on_redirectReturn error on redirect on the target page (false by default)
js_scriptCustom JavaScript code to execute on the target page
RequiredThe Required tool exposed by this server.
Contributing1. Fork the repository 2. Create your feature branch 3. Run tests: npm test 4. Submit a pull request

How to install the WebScraping.AI MCP server

{
  "mcpServers": {
    "mcp-server-webscraping-ai": {
      "command": "npx",
      "args": ["-y", "webscraping-ai-mcp"],
      "env": {
        "WEBSCRAPING_AI_API_KEY": "YOUR_API_KEY_HERE",
        "WEBSCRAPING_AI_CONCURRENCY_LIMIT": "5",
        "WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING": "true"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
WEBSCRAPING_AI_API_KEYCredential the server authenticates with.Yes
WEBSCRAPING_AI_CONCURRENCY_LIMITConfiguration value read at startup.Optional
WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXINGConfiguration value read at startup.Optional
WEBSCRAPING_AI_DEFAULT_PROXY_TYPEConfiguration value read at startup.Optional
WEBSCRAPING_AI_DEFAULT_JS_RENDERINGConfiguration value read at startup.Optional
WEBSCRAPING_AI_DEFAULT_TIMEOUTConfiguration value read at startup.Optional
WEBSCRAPING_AI_DEFAULT_JS_TIMEOUTConfiguration value read at startup.Optional
ANTHROPIC_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use WebScraping.AI to timeout.
  • Use WebScraping.AI to js timeout.
  • Use WebScraping.AI to wait for.

Frequently asked questions

It connects WebScraping.AI to MCP-compatible AI assistants such as Claude and Cursor, exposing 12 tools (timeout, js_timeout, wait_for, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with WebScraping.AI directly.