The Scrappey MCP Server provides a bridge between AI models and Scrappey's web automation platform, allowing you to manage browser sessions, send HTTP requests through Scrappey's infrastructure, and execute browser actions while handling various anti-bot protections automatically.
To set up the Scrappey MCP Server, you need to:
SCRAPPEY_API_KEY=your_api_key_here
The server can be accessed directly at smithery.ai/server/@pim97/mcp-server-scrappey, or you can interact with it programmatically using the tools described below.
Use scrappey_create_session
to create a new browser session that persists cookies and other state:
{
"name": "scrappey_create_session",
"proxy": "http://user:pass@ip:port" // Optional: Custom proxy, leave empty for default
}
Use scrappey_destroy_session
to properly close a browser session:
{
"name": "scrappey_destroy_session",
"session": "session_id_here" // Required: The session ID to destroy
}
Use scrappey_request
to send HTTP requests through the Scrappey infrastructure:
{
"name": "scrappey_request",
"cmd": "request.get", // Required: request.get, request.post, etc.
"url": "https://example.com", // Required: Target URL
"session": "session_id_here", // Required: Session ID to use
"postData": "key=value", // Optional: POST data
"customHeaders": { // Optional: Custom headers
"User-Agent": "custom-agent"
}
}
Use scrappey_browser_action
to execute browser automation actions:
{
"name": "scrappey_browser_action",
"session": "session_id_here", // Required: Session ID to use
"browserActions": [ // Required: Array of actions to perform
{
"type": "click", // Action type: click, hover, type, scroll, wait
"cssSelector": ".button", // CSS selector for element
"text": "Hello", // Text to type (for type action)
"wait": 1000 // Wait time in ms
}
]
}
Here's how to use the server in a typical workflow:
{
"name": "scrappey_create_session"
}
{
"name": "scrappey_request",
"cmd": "request.get",
"url": "https://example.com",
"session": "returned_session_id"
}
{
"name": "scrappey_browser_action",
"session": "returned_session_id",
"browserActions": [
{
"type": "click",
"cssSelector": "#login-button"
},
{
"type": "type",
"cssSelector": "#username",
"text": "myuser"
}
]
}
{
"name": "scrappey_destroy_session",
"session": "returned_session_id"
}
For optimal performance and reliability:
The server returns error messages with details when something goes wrong. Common errors include:
When an error occurs, check the response message for details on how to resolve the issue.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "scrappey" '{"command":"npx","args":["-y","mcp-server-scrappey"]}'
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": {
"scrappey": {
"command": "npx",
"args": [
"-y",
"mcp-server-scrappey"
]
}
}
}
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": {
"scrappey": {
"command": "npx",
"args": [
"-y",
"mcp-server-scrappey"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect