ScapeGraph MCP 服务器是一个经过生产验证的 模型上下文协议 (MCP) 服务器,可与 ScapeGraph AI API 实现无缝集成。它能让语言模型借助先进的 AI 驱动网络抓取功能,具备企业级可靠性。
要使用此服务器,您需要先获取一个 ScapeGraph API 密钥,具体步骤如下:
该服务器提供以下企业级工具:
markdownify(website_url: str):可将任意网页转换为干净、结构化的 Markdown 格式。smartscraper(user_prompt: str, website_url: str):利用 AI 从任意网页中提取结构化数据。searchscraper(user_prompt: str):执行 AI 驱动的网络搜索,得到结构化且可操作的结果。您可以使用 Smithery 进行自动化安装,命令如下:
npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude
更新您的 Claude Desktop 配置文件,添加以下设置(位于右上角的指针页面),记得在配置中添加您的 API 密钥:
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
]
}
}
}
配置文件的位置:
在 Windows 或 macOS 系统上,您可以使用以下命令进行安装:
npm install -g @smithery/cli@latest
smithery install @ScrapeGraphAI/scrapegraph-mcp --manual
然后按照提示完成安装。
访问 ScapeGraph 仪表盘 创建账户并生成 API 密钥。
目前支持 Windows 和 macOS 系统。
如果遇到错误,请参考 常见问题解答 或联系我们的支持团队。
此项目遵循 MIT 许可证。