Scrappey MCP 服务器
一个模型上下文协议 (MCP) 服务器,用于与 Scrappey.com 的 Web 自动化和数据抓取功能进行交互。您可以直接访问smithery.ai/server/@pim97/mcp-server-scrappey进行试用。
概述
该 MCP 服务器在 AI 模型和 Scrappey 的 Web 自动化平台之间架起了一座桥梁,使您能够:
- 创建和管理浏览器会话
- 通过 Scrappey 的基础设施发送 HTTP 请求
- 执行浏览器操作(单击、键入、滚动等)
- 自动处理各种反机器人保护
设置
- 从Scrappey.com获取您的 Scrappey API 密钥
- 设置环境变量:
可用工具
1. 创建会话( scrappey_create_session
)
创建一个新的浏览器会话,以保留 cookie 和其他状态。
2. 销毁会话( scrappey_destroy_session
)
正确关闭浏览器会话。
3.发送请求( scrappey_request
)
通过 Scrappey 基础设施发送 HTTP 请求。
4. 浏览器操作( scrappey_browser_action
)
执行浏览器自动化操作。
典型工作流程
- 创建会话:
- 将返回的会话 ID 用于后续请求:
- 如果需要,执行浏览器操作:
- 完成后通过销毁会话进行清理:
特征
- 会话持久化以维护状态
- 自动反机器人保护处理
- 支持自定义代理
- 浏览器自动化功能
- HTTP 请求方法(GET、POST、PUT、DELETE、PATCH)
- 自定义标头和 Cookie 支持
最佳实践
- 每次使用完会话后都要销毁它们
- 向同一站点发出多个请求时重复使用会话
- 在动作之间使用适当的等待时间以实现更像人类的行为
- 使用会话前检查其是否存在
错误处理
出现错误时,服务器会返回包含详细信息的错误消息。常见错误包括:
- 无效的会话 ID
- 网络超时
- 浏览器操作的选择器无效
- 反机器人保护失败
资源
执照
MIT 许可证
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
连接 AI 模型与 Scrappey 的网络自动化平台的服务器,允许创建浏览器会话、执行 HTTP 请求以及自动化浏览器操作,同时处理反机器人保护。
Related MCP Servers
- AsecurityAlicenseAqualityA production-ready Model Context Protocol server that enables language models to leverage AI-powered web scraping capabilities, offering tools for transforming webpages to markdown, extracting structured data, and executing AI-powered web searches.Last updated -316PythonMIT License
- -securityFlicense-qualityA web browser automation server that allows AI assistants to control Chrome with persistent state management, enabling complex browsing tasks through asynchronous browser operations.Last updated -1Python
- -securityAlicense-qualityA server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.Last updated -2PythonGPL 3.0
- -securityAlicense-qualityEmpowers AI agents to perform web browsing, automation, and scraping tasks with minimal supervision using natural language instructions and Selenium.Last updated -1PythonApache 2.0