抓取易智搜
启用AI模型根据自然语言提示从网站提取结构化数据。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"scrapezy": {
"command": "npx @scrapezy/mcp --api-key=your_api_key"
}
}
}
该服务需要配置环境变量:SCRAPEZY_API_KEY
服务介绍
@scrapezy/mcp MCP 服务器
这是一个用于 Scrapezy 的模型上下文协议(MCP)服务器,使 AI 模型能够从网站中提取结构化数据。
功能
工具
extract_structured_data- 从网站中提取结构化数据- 需要 URL 和提示作为必填参数
- 根据提示返回从网站中提取的结构化数据
- 提示应清楚描述要从网站中提取的数据
安装
通过 Smithery 安装
要通过 Smithery 自动安装适用于 Claude Desktop 的 Scrapezy MCP 服务器:
npx -y @smithery/cli install @Scrapezy/mcp --client claude
手动安装
npm install -g @scrapezy/mcp
使用
API 密钥设置
有两种方法可以提供您的 Scrapezy API 密钥:
-
环境变量:
export SCRAPEZY_API_KEY=your_api_key npx @scrapezy/mcp -
命令行参数:
npx @scrapezy/mcp --api-key=your_api_key
要在 Claude Desktop 中使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"scrapezy": {
"command": "npx @scrapezy/mcp --api-key=your_api_key"
}
}
}
在 Claude 中的示例用法
您可以在 Claude 中使用如下提示来使用此工具:
Please extract product information from this page: https://example.com/product
Extract the product name, price, description, and available colors.
Claude 将使用 MCP 服务器从网站中提取请求的结构化数据。
调试
由于 MCP 服务器通过 stdio 进行通信,调试可能会比较困难。我们建议使用 MCP Inspector,它作为包脚本提供:
npm run inspector
Inspector 将提供一个 URL,以便您在浏览器中访问调试工具。
许可证
MIT