网页图AI智搜
一个生产就绪的模型上下文协议服务器,使语言模型能够利用人工智能驱动的网络爬虫功能,提供将网页转换为Markdown、提取结构化数据以及执行人工智能驱动的网络搜索的工具。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
],
"command": "npx"
}
}
}
该服务需要配置环境变量:scrapegraphApiKey
可用工具 (3 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
markdownify 1 个参数 需填 1 项
Convert a webpage into clean, formatted markdown. Args: website_url: URL of the webpage to convert Returns: Dictionary containing the markdown result
必填参数:website_url
smartscraper 2 个参数 需填 2 项
Extract structured data from a webpage using AI. Args: user_prompt: Instructions for what data to extract website_url: URL of the webpage to scrape Returns: Dictionary containing the extracted data
必填参数:user_prompt、website_url
searchscraper 1 个参数 需填 1 项
Perform AI-powered web searches with structured results. Args: user_prompt: Search query or instructions Returns: Dictionary containing search results and reference URLs
必填参数:user_prompt
服务介绍
ScrapeGraph MCP 服务器

一个生产就绪的 Model Context Protocol (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 密钥
通过 Smithery 自动安装
使用 Smithery 自动安装 ScrapeGraph API 集成服务器:
npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude
Claude 桌面配置
更新您的 Claude 桌面配置文件,添加以下设置(位于光标页面右上角):
(记得在配置中添加您的 API 密钥)
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
]
}
}
}
配置文件位于:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json - macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Cursor 集成
在设置中添加 ScrapeGraphAI MCP 服务器:

示例用例
该服务器支持复杂的查询,例如:
- "分析并提取 ScapeGraph API 的主要特性"
- "生成 ScapeGraph 主页的结构化 markdown 版本"
- "从 ScapeGraph 网站中提取并分析定价信息"
- "研究并总结 AI 支持的网络抓取领域的最新进展"
- "创建 Python 文档网站的全面摘要"
错误处理
该服务器实现了强大的错误处理机制,并为以下情况提供详细且可操作的错误消息:
- API 认证问题
- URL 结构不正确
- 网络连接故障
- 速率限制和配额管理
常见问题
Windows 特定连接
在 Windows 系统上运行时,您可能需要使用以下命令来连接 MCP 服务器:
C:\Windows\System32\cmd.exe /c npx -y @smithery/cli@latest run @ScrapeGraphAI/scrapegraph-mcp --config "{\"scrapegraphApiKey\":\"YOUR-SGAI-API-KEY\"}"
这确保了在 Windows 环境中的正确执行。
许可证
本项目遵循 MIT 许可证发布。有关详细的条款和条件,请参阅 LICENSE 文件。
致谢
特别感谢 tomekkorbak 实现的 oura-mcp-server,它作为本仓库的起点。
由 ScrapeGraphAI 团队用心制作 ❤️