SuperAPIAI Directory

scraperapi-mcp

github.com · AI developer platforms

Web scraping via ScraperAPI with JavaScript rendering, geotargeting, premium proxies and auto-parsing.

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

About this tool

The ScraperAPI MCP server (scraperapi-mcp) is a local server implemented based on the Model Context Protocol (MCP) specification, used to enable large language model clients to initiate and handle web scraping requests through the ScraperAPI service. The project describes it as a self-hosted (local) server, and it also provides a hosted (remote) version.

Purpose The server is aimed at scenarios that require giving LLMs web scraping capabilities, serving as a bridge between LLM clients and ScraperAPI. After configuration, the LLM client will automatically start this local server, thereby calling ScraperAPI to complete scraping tasks.

Main capabilities

  • Fully implements the Model Context Protocol specification.
  • Seamlessly integrates with ScraperAPI to implement web scraping.
  • Scraping tool: can retrieve web page content or download images from a URL, returning the scraped content string, or returning image data when it is an image URL.
  • Structured data endpoints (SDEs): return pre-parsed JSON (or CSV) instead of raw HTML; each SDE tool also accepts output_format (default json, or csv), tld, and country_code parameters.
  • Redfin tools: each Redfin tool requires a complete Redfin URL matching the tool type (property, search, or agent page).
  • Asynchronous crawler: crawler_job_start immediately returns a job id, after which crawler_job_status is polled until the crawl is complete; each page result can also be pushed via callback_url webhook. Either max_depth or crawl_budget must be provided.
    • crawler_job_start returns JSON containing the job id and initial status (for example {"status": "initiated", "jobId": "..."}).
    • crawler_job_status returns JSON containing that task's page counts (done/failed/active).
  • AI parser: build a reusable parser from several example URLs, then apply it to any similar page for structured extraction. In two phases: ai_parser_create immediately returns a parser id, generation runs in the background, and ai_parser_get_details must be polled until the status is FINISHED, then ai_parser_parse_url is called.
    • ai_parser_create returns JSON with the new parser id and version; generation is asynchronous, and ai_parser_get_details must be polled until status is FINISHED.
    • ai_parser_get_details returns JSON of the parser status (GENERATING / FINISHED / FAILED), fields, and example results.
    • ai_parser_parse_url returns JSON {"parser": ..., "version": ..., "result": {...}}, and each call consumes 1 credit.
    • Tools with no parameters return a JSON array of parser summaries (id, name, status, version, generation time).
  • Prompt templates: the documentation provides example prompts, such as scraping a certain URL, and if a 500 error occurs, identifying the website's geolocation and adding the corresponding country_code to bypass geographic restrictions; if the error persists, adding premium=true to use premium proxies; if it still continues to fail, activating ultra_premium=true to use enhanced anti-blocking measures. There are also templates for extracting specified data, and if the returned data is missing or incomplete, setting render=true to enable JS rendering.

Usage The server is configured through environment variables, and only API_KEY is required. The documentation provides configuration steps for common clients such as Claude Desktop, Claude Code, Cursor, and Cline (VS Code). Usually, the JSON configuration needs to be pasted into the corresponding configuration file, or added using the command claude mcp add scraperapi -e API_KEY=<YOUR_SCRAPERAPI_API_KEY> -- python -m scraperapi_mcp_server. Installation and running methods include Python and Docker:

  • Clone the repository: git clone https://github.com/scraperapi/scraperapi-mcp,然后 cd scraperapi-mcp.
  • Using Poetry: poetry install.
  • Using pip: after creating and activating a virtual environment, install the local package in editable mode with pip install -e .
  • Using Docker: build the image with docker build -t scraperapi-mcp-server .
  • Run using Python: python -m scraperapi_mcp_server.
  • Run using Docker: docker run -e API_KEY=<YOUR_SCRAPERAPI_API_KEY> scraperapi-mcp-server. The project uses pytest for testing; to install development dependencies, use Poetry's poetry install --with dev, or pip install pytest pytest-mock pytest-asyncio.

Use cases Suitable for developers and teams that need to integrate web scraping, structured data extraction, asynchronous website crawling, or parser reuse into LLM workflows, and especially suitable for scenarios where scraping is triggered directly through MCP clients such as Claude Desktop, Cursor, Cline, etc.

Limitations The documentation does not provide further explanation about billing, pricing, specific scraping quotas, the range of supported platforms, or scraping success rates; this information is not currently provided. Usage requires bringing your own ScraperAPI API key.

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