Scrappey MCP Server
by pim97
Allow LLMs to control a browser with Scrappey
What is Scrappey MCP Server
Scrappey MCP Server
A Model Context Protocol (MCP) server for interacting with Scrappey.com's web automation and scraping capabilities. Try it out directly at smithery.ai/server/@pim97/mcp-server-scrappey.
Overview
This MCP server provides a bridge between AI models and Scrappey's web automation platform, allowing you to:
- Create and manage browser sessions
- Send HTTP requests through Scrappey's infrastructure
- Execute browser actions (clicking, typing, scrolling, etc.)
- Handle various anti-bot protections automatically
Setup
- Get your Scrappey API key from Scrappey.com
- Set up your environment variable:
SCRAPPEY_API_KEY=your_api_key_here
Available Tools
1. Create Session (scrappey_create_session
)
Creates a new browser session that persists cookies and other state.
{
"proxy": "http://user:pass@ip:port" // Optional: Custom proxy, leave empty for default
}
2. Destroy Session (scrappey_destroy_session
)
Properly closes a browser session.
{
"session": "session_id_here" // Required: The session ID to destroy
}
3. Send Request (scrappey_request
)
Send HTTP requests through the Scrappey infrastructure.
{
"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"
}
}
4. Browser Actions (scrappey_browser_action
)
Execute browser automation actions.
{
"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
}
]
}
Typical Workflow
- Create a session:
{
"name": "scrappey_create_session"
}
- Use the returned session ID for subsequent requests:
{
"name": "scrappey_request",
"cmd": "request.get",
"url": "https://example.com",
"session": "returned_session_id"
}
- Perform browser actions if needed:
{
"name": "scrappey_browser_action",
"session": "returned_session_id",
"browserActions": [
{
"type": "click",
"cssSelector": "#login-button"
},
{
"type": "type",
"cssSelector": "#username",
"text": "myuser"
}
]
}
- Clean up by destroying the session when done:
{
"name": "scrappey_destroy_session",
"session": "returned_session_id"
}
Features
- Session persistence for maintaining state
- Automatic anti-bot protection handling
- Support for custom proxies
- Browser automation capabilities
- HTTP request methods (GET, POST, PUT, DELETE, PATCH)
- Custom headers and cookies support
Best Practices
- Always destroy sessions when you're done with them
- Reuse sessions when making multiple requests to the same site
- Use appropriate wait times between actions for more human-like behavior
- Check if a session exists before using it
Error Handling
The server will return error messages with details when something goes wrong. Common errors include:
- Invalid session IDs
- Network timeouts
- Invalid selectors for browser actions
- Anti-bot protection failures
Resources
License
MIT License
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Fetch
Web content fetching and conversion for efficient LLM usage
Playwright
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
puppeteer-mcp-server
Puppeteer
Browser automation and web scraping
Playwright Universal MCP
A universal Playwright MCP server for browser automation in containerized environments
MCP Server Playwright
MCP Server Playwright - A browser automation service for Claude Desktop
OneNote MCP Server
MCP server for browsing and interacting with OneNote web app using browser-use automation
Playwright
๐ Fetcher MCP - Playwright Headless Browser Server
MCP server for fetch web page content using Playwright headless browser.
MCP Browser
NeoForge Browser MCP server - used to test the frontend
Submit Your MCP Server
Share your MCP server with the community
Submit Now