Power your AI client with our MCP Server

What if you could use your AI client as a personal agent that scrapes websites and retrieves the data for you? Well, ScraperAPI's MCP server makes that possible! It connects your LLM to ScraperAPI and enables you to scrape the web simply by prompting.

Installation

Install the scraperapi-mcp-server using pip:

pip install scraperapi-mcp-server

Setup (Claude Desktop App)

  1. Open Claude Desktop Application

  2. Access the Settings Menu

  3. Click on the settings icon (typically a gear or three dots in the upper right corner)

  4. Select the "Developer" tab

  5. Click on "Edit Config" and paste the JSON block below in the configuration file.

Python

{
  "mcpServers": {
    "ScraperAPI": {
      "command": "python",
      "args": ["-m", "scraperapi_mcp_server"],
      "env": {
        "API_KEY": "<YOUR_SCRAPERAPI_API_KEY>"
      }
    }
  }
}

Docker

{
  "mcpServers": {
    "ScraperAPI": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "API_KEY=${YOUR_SCRAPERAPI_API_KEY}",
        "--rm",
        "scraperapi-mcp-server"]
    }
  }
}

That's it! The MCP Server is now configured and is powering your AI Client. It starts automatically when the keyword scrape is used in a prompt.

Check out the full guide with prompt examples below:

MCP Server docs

Last updated

Was this helpful?