Installation
Prerequisites
Python 3.11 +
Claude (used in this guide)
Docker (optional)
Install the scraperapi-mcp-server
using pip:
pip install scraperapi-mcp-server
Setup
If you don't have an account with us yet, head over to scraperapi.com to create one and grab your API key from the Dashboard area. You will need it to authenticate the requests that your LLM client will be making.
Now that you have your API Key, add this JSON block to your client configuration file:
Using Python:
{
"mcpServers": {
"ScraperAPI": {
"command": "python",
"args": ["-m", "scraperapi_mcp_server"],
"env": {
"API_KEY": "<YOUR_SCRAPERAPI_API_KEY>"
}
}
}
}
Using Docker:
{
"mcpServers": {
"ScraperAPI": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"API_KEY=${YOUR_SCRAPERAPI_API_KEY}",
"--rm",
"scraperapi-mcp-server"]
}
}
}
Configuration for Claude Desktop App:
Open Claude Desktop Application
Access the Settings Menu
Click on the settings icon (typically a gear or three dots in the upper right corner)
Select the "Developer" tab
Click on "Edit Config" and paste the JSON block in the configuration file.
That's it, the MCP Server is fully configured! Include the keyword scrape
in a prompt, and the LLM will automatically use ScraperAPI to retrieve the data you need.
If you are interested in digging deeper, you can set up the MCP server locally on your machine. Here you will find instructions on how to setup, debug and customize the server for advanced development.
Last updated
Was this helpful?