一个用于 Scrapezy 的模型上下文协议服务器,使 AI 模型能够从网站中提取结构化数据。
概览
一个用于 Scrapezy 的模型上下文协议服务器,使 AI 模型能够从网站中提取结构化数据。 - extract_structured_data - 从网站提取结构化数据 - 以URL和提示词为必要参数 - 返回基于提示从网站提取的结构化数据 - 提示应明确描述应从网站提取哪些数据 通过 Smithery 自动安装 Claude Desktop 的 Scrapezy MCP 服务器: 提供 Scrapezy API 密钥有两种方式: 要配合Claude Desktop使用,添加服务器配置: 在 macOS 上:~/library/Application support/Claude/claude_desktop_config.json 在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json 你可以在Claude中使用这个工具,提示如下: Claude 将使用 MCP 服务器从网站提取请求的结构化数据。
概述(AI 翻译)
一个用于 Scrapezy 的模型上下文协议服务器,使 AI 模型能够从网站中提取结构化数据。
特色
工具
extract_structured_data- 从网站提取结构化数据- 将URL和提示符作为必要参数
- 返回基于提示从网站提取的结构化数据
- 提示应清晰说明应从网站提取哪些数据
安装
通过Smithery安装
通过 Smithery 自动安装 Claude Desktop 的 Scrapezy MCP 服务器:
手动安装
用途
API 密钥设置
提供 Scrapezy API 密钥有两种方式:
-
环境变量:
-
命令行参数:
要配合Claude Desktop使用,添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
Windows版:%APPDATA%/Claude/claude_desktop_config.json
Claude 中的示例用法
你可以在Claude中使用这个工具,提示如下:
Claude 将使用 MCP 服务器从网站提取请求的结构化数据。
调试
由于MCP服务器通过stdio通信,调试可能具有挑战性。
本页由 AI 翻译,技术细节请以原文为准。
README
@scrapezy/mcp MCP Server
A Model Context Protocol server for Scrapezy that enables AI models to extract structured data from websites.
Features
Tools
extract_structured_data- Extract structured data from a website- Takes URL and prompt as required parameters
- Returns structured data extracted from the website based on the prompt
- The prompt should clearly describe what data to extract from the website
Installation
Installing via Smithery
To install Scrapezy MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Scrapezy/mcp --client claude
Manual Installation
npm install -g @scrapezy/mcp
Usage
API Key Setup
There are two ways to provide your Scrapezy API key:
-
Environment Variable:
export SCRAPEZY_API_KEY=your_api_key npx @scrapezy/mcp -
Command-line Argument:
npx @scrapezy/mcp --api-key=your_api_key
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"scrapezy": {
"command": "npx @scrapezy/mcp --api-key=your_api_key"
}
}
}
Example Usage in Claude
You can use this tool in Claude with prompts like:
Please extract product information from this page: https://example.com/product
Extract the product name, price, description, and available colors.
Claude will use the MCP server to extract the requested structured data from the website.
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
License
MIT
安装
npx -y @smithery/cli install @Scrapezy/mcp --client claude配置
{
"mcpServers": {
"scrapezy": {
"command": "npx @scrapezy/mcp --api-key=your_api_key"
}
}
}