一个经过生产验证的 模型上下文协议 (MCP) 服务器,可与 ScapeGraph AI API 实现无缝集成。借助该服务器,语言模型能运用先进的 AI 驱动网络抓取功能,且具备企业级可靠性。
该服务器提供以下企业级工具:
markdownify(website_url: str):可将任意网页转换为简洁、结构化的 Markdown 格式。smartscraper(user_prompt: str, website_url: str):借助 AI 从任意网页中提取结构化数据。searchscraper(user_prompt: str):执行由 AI 驱动的网络搜索,获取结构化且可操作的结果。要使用此服务器,您需要一个 ScapeGraph API 密钥。按照以下步骤获取:
通过 工坊 可自动化安装 ScapeGraph API 集成服务器:
npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude
更新您的 Claude 桌面配置文件,添加以下设置(位于右侧的光标页面顶部): (记得在配置中添加您的 API 密钥)
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
]
}
}
}
配置文件的位置:
在设置中添加 ScrapeGraphAI MCP 服务器:
该服务器能够执行复杂的查询,例如:
如需了解更多信息,请参阅 ScapeGraph API 文档 和 MCP 服务规范。
本项目采用 MIT 许可证。