AI Skill Hub 推荐使用:网页爬虫MCP 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
网页爬虫MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
网页爬虫MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ScrapeGraphAI/scrapegraph-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"----mcp": {
"command": "npx",
"args": ["-y", "scrapegraph-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 网页爬虫MCP 执行以下任务... Claude: [自动调用 网页爬虫MCP MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"____mcp": {
"command": "npx",
"args": ["-y", "scrapegraph-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="./assets/scrapegraphAI.svg" width="250" alt="ScrapegraphAI Logo"> </p>
A production-ready Model Context Protocol (MCP) server that provides seamless integration with the ScrapeGraph AI API. This server enables language models to leverage advanced AI-powered web scraping capabilities with enterprise-grade reliability.
scrape (POST /scrape, multi-format), extract (POST /extract, URL + prompt)search (POST /search; num_results clamped 3–20)crawl_start / crawl_get_status / crawl_stop / crawl_resumeschema (POST /schema) — generate or augment a JSON Schema from a promptmonitor_create, monitor_list, monitor_get, pause/resume/delete, monitor_activity (paginated tick history)credits, history.agent/ folderpip install -e ".[dev]"
npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude
To utilize this server, you'll need a ScrapeGraph API key. Follow these steps to obtain one:
For automated installation of the ScrapeGraph API Integration Server using Smithery:
npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude
git clone https://github.com/ScrapeGraphAI/scrapegraph-mcp
cd scrapegraph-mcp
```bash
scrapegraph-mcp
pip install google-adk
export SGAI_API_KEY=your-api-key-here
```bash
Connect to our hosted MCP server - no local installation required!
To run the MCP server locally for development or testing, follow these steps:
Create an agent file (e.g., agent.py) with the following configuration:
```python import os from google.adk.agents import LlmAgent from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset from google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParams from mcp import StdioServerParameters
Once configured, your agent can use natural language to interact with web scraping tools:
```python
The server enables sophisticated queries across various scraping scenarios:
Update your Claude Desktop configuration file with the following settings (located on the top rigth of the Cursor page):
(remember to add your API key inside the config)
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
]
}
}
}
The configuration file is located at: - Windows: %APPDATA%/Claude/claude_desktop_config.json - macOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"scrapegraph-mcp": {
"command": "npx",
"args": [
"mcp-remote@0.1.25",
"https://mcp.scrapegraphai.com/mcp",
"--header",
"X-API-Key:YOUR_API_KEY"
]
}
}
}
Cursor supports native HTTP MCP connections. Add to your Cursor MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"scrapegraph-mcp": {
"url": "https://mcp.scrapegraphai.com/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
To use your locally running server with Claude Desktop, update your configuration file:
macOS/Linux (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"scrapegraph-mcp-local": {
"command": "python",
"args": [
"-m",
"scrapegraph_mcp.server"
],
"env": {
"SGAI_API_KEY": "your-api-key-here"
}
}
}
}
Windows (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"scrapegraph-mcp-local": {
"command": "python",
"args": [
"-m",
"scrapegraph_mcp.server"
],
"env": {
"SGAI_API_KEY": "your-api-key-here"
}
}
}
}
Note: Make sure Python is in your PATH. You can verify by running python --version in your terminal.
In Cursor's MCP settings, add a new server with:
python["-m", "scrapegraph_mcp.server"]{"SGAI_API_KEY": "your-api-key-here"}Timeout Settings: - Default timeout is 5 seconds, which may be too short for web scraping operations - Recommended: Set `timeout=300.0 - Adjust based on your use case (crawling operations may need even longer timeouts)
Tool Filtering: - By default, all registered MCP tools are exposed to the agent (see Available Tools) - Use tool_filter to limit which tools are available:
tool_filter=['scrape', 'extract', 'search']
API Key Configuration: - Set via environment variable: export SGAI_API_KEY=your-key - Or pass directly in env dict: 'SGAI_API_KEY': 'your-key-here' - Environment variable approach is recommended for security
This MCP server targets ScrapeGraph API v2 (https://v2-api.scrapegraphai.com/api), aligned 1:1 with scrapegraph-py PR #84. Auth uses the SGAI-APIKEY header. Environment variables mirror the Python SDK:
SGAI_API_URL — override the base URL (default https://v2-api.scrapegraphai.com/api)SGAI_TIMEOUT — request timeout in seconds (default 120)SGAI_API_KEY — API key (can also be passed via MCP scrapegraphApiKey or X-API-Key header)Legacy aliases (still honored):SCRAPEGRAPH_API_BASE_URLforSGAI_API_URL,SGAI_TIMEOUT_SforSGAI_TIMEOUT.
Sign up and get your API key from the ScrapeGraph Dashboard
``` For more information about Google ADK, visit the official documentation.
export SGAI_API_KEY=your-api-key
https://v2-api.scrapegraphai.com/apiAdd the ScrapeGraphAI MCP server on the settings:

python -m scrapegraph_mcp.server ```
The server will start and communicate via stdio (standard input/output), which is the standard MCP transport method.
The ScrapeGraph MCP server can be integrated with Google ADK (Agent Development Kit) to create AI agents with web scraping capabilities.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Server not starting: - Verify Python is installed: python --version - Check that the package is installed: pip list | grep scrapegraph-mcp - Ensure API key is set: echo $SGAI_API_KEY (macOS/Linux) or echo %SGAI_API_KEY% (Windows)
Tools not appearing: - Check Claude Desktop logs: - macOS: ~/Library/Logs/Claude/ - Windows: %APPDATA%\Claude\Logs\ - Verify the server starts without errors when run directly - Check that the configuration JSON is valid
Import errors: - Reinstall the package: pip install -e . --force-reinstall - Verify dependencies: pip install -r requirements.txt (if available)
ScrapeGraph MCP Server 是一个基于 Model Context Protocol (MCP) 标准构建的服务端程序,旨在为 AI 助手提供强大的网页数据抓取与处理能力。通过该服务,你可以将 ScrapeGraphAI 的智能化爬虫能力无缝集成到 Claude 或 Cursor 等 AI 工具中,实现从网页中自动提取结构化信息。
本项目提供了丰富的自动化数据处理工具:支持通过 `scrape` 和 `extract` 接口进行多格式网页��取与智能信息提取;内置 `search` 功能实现联网搜索;支持异步多页面 `crawl` 任务,并具备任务状态监控与恢复能力;此外,还提供 `schema` 功能,可根据 Prompt 自动生成或增强 JSON Schema,并支持通过定时任务进行数据监控。
在使用本项目之前,请确保您的开发环境已安装 Python 3.13 或更高版本。此外,您需要准备好 pip 或 uv 包管理器,并前往 ScrapeGraph Dashboard 获取有效的 ScrapeGraph API key 以进行身份验证。若需集成 Google ADK,请确保已安装相关的 Google ADK 组件。
推荐使用 Smithery 进行自动化安装,只需在终端运行 `npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude` 即可快速完成配置。在开始之前,请务必先访问 ScrapeGraph Dashboard 创建账户并生成您的 API key。
您可以根据需求选择远程或本地模式。远程模式无需本地安装,直接连接托管的 MCP server 即可使用;本地模式则适用于开发与测试,通过 Python 模块启动后,服务器将通过 stdio(标准输入输出)进行标准 MCP 通信。
根据使用场景,您需要配置不同的客户端。对于 Claude Desktop,需在 `claude_desktop_config.json` 中��加远程连接配置并填入 API key;对于 Cursor,由于其支持原生 HTTP MCP 连接,请在 `~/.cursor/mcp.json` 中配置对应的 URL 与 Headers。请确保 API key 正确配置在配置文件中。
本 MCP Server 深度对接 ScrapeGraph API v2,其接口逻辑与 scrapegraph-py 保持 1:1 高度一致。身份验证通过 `SGAI-APIKEY` 请求头完成。开发者可以通过环境变量 `SGAI_API_URL` 来覆盖默认的 API 地址,以适应不同的部署环境。
本项目支持多种集成工作流:通过 Cursor 的 MCP 设置界面可快速接入 ScrapeGraphAI 能力;开发者也可以通过 Python 模块 `python -m scrapegraph_mcp.server` 启动服务;此外,它还完美适配 Google ADK (Agent Development Kit),帮助开发者构建具备强大网页抓取能力的 AI Agent。
如果遇到服务器无法启动的问题,请首先检查 Python 版本是否符合要求,并确认 `scrapegraph-mcp` 包已正确安装。同时,请务必检查环境变量 `SGAI_API_KEY` 是否已正确设置。若在 Claude Desktop 中看不到工具,请查看相关的系统日志以排查配置错误。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,网页爬虫MCP 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | scrapegraph-mcp |
| 原始描述 | 开源MCP工具:ScapeGraph MCP Server。⭐84 · Python |
| Topics | mcpwebcrawlerscrapingpython |
| GitHub | https://github.com/ScrapeGraphAI/scrapegraph-mcp |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-24 · 更新时间:2026-06-27 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端