Scraper.is MCP is a tool that integrates with AI assistants through the Model Context Protocol (MCP) to enable web scraping capabilities. It allows AI assistants to extract up-to-date information from websites, capture screenshots, and retrieve content in various formats.
npm install -g scraperis-mcp
Or with yarn:
yarn global add scraperis-mcp
Before using the package, you need to obtain a Scraper.is API key:
Create a .env
file with your Scraper.is API key:
SCRAPERIS_API_KEY=your_api_key_here
To use this package with Claude Desktop:
claude_desktop_config.json
file:{
"mcpServers": {
"scraperis_scraper": {
"command": "scraperis-mcp",
"args": [],
"env": {
"SCRAPERIS_API_KEY": "your-api-key-here",
"DEBUG": "*"
}
}
}
}
your-api-key-here
with your actual Scraper.is API keyFor testing purposes, you can use the MCP Inspector:
npx @modelcontextprotocol/inspector scraperis-mcp
Once properly configured, AI assistants that support the Model Context Protocol can use the following tool:
The scrape
tool extracts content from websites and supports various output formats:
When interacting with an AI that has access to the scrape tool, you can prompt it with:
Can you scrape the latest news from techcrunch.com and summarize it for me?
The scrape tool accepts the following parameters:
prompt
(string): Description of what to scrape, including the URLformat
(string): Format to return the content in (markdown
, html
, screenshot
, json
, quick
)Example JSON request:
{
"prompt": "Get me the top 10 products from producthunt.com",
"format": "markdown"
}
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "scraperis_scraper" '{"command":"scraperis-mcp","args":[],"env":{"SCRAPERIS_API_KEY":"your-api-key-here","DEBUG":"*"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"scraperis_scraper": {
"command": "scraperis-mcp",
"args": [],
"env": {
"SCRAPERIS_API_KEY": "your-api-key-here",
"DEBUG": "*"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"scraperis_scraper": {
"command": "scraperis-mcp",
"args": [],
"env": {
"SCRAPERIS_API_KEY": "your-api-key-here",
"DEBUG": "*"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect