能力标签
网页爬虫MCP
🔌
MCP工具

网页爬虫MCP

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:scrapegraph-mcp
⭐ 84 Stars 🍴 25 Forks 💻 Python 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
mcpwebcrawlerscrapingpython
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:网页爬虫MCP 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

网页爬虫MCP 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 网页爬虫MCP,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。网页爬虫MCP 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 网页爬虫MCP 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

网页爬虫MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 84
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
25

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

网页爬虫MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 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
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 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 生效
📑 README 深度解析 真实文档 完整度 90/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

ScrapeGraph MCP Server

<p align="center"> <img src="./assets/scrapegraphAI.svg" width="250" alt="ScrapegraphAI Logo"> </p>

License: MIT Python 3.13+ smithery badge

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.

Key Features

  • Scrape & extract: scrape (POST /scrape, multi-format), extract (POST /extract, URL + prompt)
  • Search: search (POST /search; num_results clamped 3–20)
  • Crawl: Async multi-page crawl with crawl_start / crawl_get_status / crawl_stop / crawl_resume
  • Schema: schema (POST /schema) — generate or augment a JSON Schema from a prompt
  • Monitors: Scheduled jobs via monitor_create, monitor_list, monitor_get, pause/resume/delete, monitor_activity (paginated tick history)
  • Account: credits, history
  • Easy integration: Claude Desktop, Cursor, Smithery, HTTP transport
  • Developer docs: .agent/ folder

Prerequisites

  • Python 3.13 or higher
  • pip or uv package manager
  • ScrapeGraph API key

Prerequisites

  • Python 3.13 or higher
  • Google ADK installed
  • ScrapeGraph API key

Prerequisites

  • Python 3.13 or higher
  • pip or uv package manager
  • ScrapeGraph API key

Install dependencies

pip install -e ".[dev]"

Setup Instructions

To utilize this server, you'll need a ScrapeGraph API key. Follow these steps to obtain one:

  1. Navigate to the ScrapeGraph Dashboard
  2. Create an account and generate your API key

Automated Installation via Smithery

For automated installation of the ScrapeGraph API Integration Server using Smithery:

npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude

Installation

  1. Clone the repository (if you haven't already):
git clone https://github.com/ScrapeGraphAI/scrapegraph-mcp
cd scrapegraph-mcp
  1. Install the package:

```bash

Using the installed command

scrapegraph-mcp

Installation

  1. Install Google ADK (if not already installed):
pip install google-adk
  1. Set your API key:
export SGAI_API_KEY=your-api-key-here

Installation from Source

```bash

Deployment

  • Smithery - Automated MCP server deployment
  • Docker - Container support with Alpine Linux
  • stdio transport - Standard MCP communication

Quick Start

Remote Server Usage

Connect to our hosted MCP server - no local installation required!

Local Usage

To run the MCP server locally for development or testing, follow these steps:

Basic Integration Example

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

Usage Example

Once configured, your agent can use natural language to interact with web scraping tools:

```python

- "Convert https://example.com to markdown"

Example Use Cases

The server enables sophisticated queries across various scraping scenarios:

Claude Desktop Configuration

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

Claude Desktop Configuration (Remote)

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 Configuration (Remote)

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"
      }
    }
  }
}

Configuring Claude Desktop for Local Server

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.

Configuring Cursor for Local Server

In Cursor's MCP settings, add a new server with:

  • Command: python
  • Args: ["-m", "scrapegraph_mcp.server"]
  • Environment Variables: {"SGAI_API_KEY": "your-api-key-here"}

Configuration Options

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

API v2

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_URL for SGAI_API_URL, SGAI_TIMEOUT_S for SGAI_TIMEOUT.

1. Get Your API Key

Sign up and get your API key from the ScrapeGraph Dashboard

- "Crawl this documentation site and extract all API endpoints"

``` For more information about Google ADK, visit the official documentation.

Single Page Scraping

  • Markdownify: "Convert the ScrapeGraph documentation page to markdown"
  • Extract: "Extract all product names, prices, and ratings from this e-commerce page"
  • Extract with scrolling: "Scrape this infinite scroll page with 5 scrolls and extract all items"
  • Basic Scrape: "Fetch the HTML content of this JavaScript-heavy page with full rendering"

Set your API key

export SGAI_API_KEY=your-api-key

API Integration

  • ScrapeGraph AI API - Enterprise web scraping service
  • Base URL: https://v2-api.scrapegraphai.com/api
  • Authentication: API key-based

Cursor Integration

Add the ScrapeGraphAI MCP server on the settings:

Cursor MCP Integration

Or using Python module

python -m scrapegraph_mcp.server ```

The server will start and communicate via stdio (standard input/output), which is the standard MCP transport method.

Google ADK Integration

The ScrapeGraph MCP server can be integrated with Google ADK (Agent Development Kit) to create AI agents with web scraping capabilities.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run linting and type checking
  5. Test with MCP Inspector and Claude Desktop
  6. Update documentation
  7. Commit your changes (git commit -m 'Add amazing feature')
  8. Push to the branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

AI Assistant Integration

Troubleshooting Local Setup

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)

🇨🇳 中文文档镜像 AI 翻译 2026-06-27
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

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 组件。

🛠 安装步骤(Docker/pip/源码)

推荐使用 Smithery 进行自动化安装,只需在终端运行 `npx -y @smithery/cli install @ScrapeGraphAI/scrapegraph-mcp --client claude` 即可快速完成配置。在开始之前,请务必先访问 ScrapeGraph Dashboard 创建账户并生成您的 API key。

🚀 使用教程

您可以根据需求选择远程或本地模式。远程模式无需本地安装,直接连接托管的 MCP server 即可使用;本地模式则适用于开发与测试,通过 Python 模块启动后,服务器将通过 stdio(标准输入输出)进行标准 MCP 通信。

⚙️ 配置说明(含 MCP / env)

根据使用场景,您需要配置不同的客户端。对于 Claude Desktop,需在 `claude_desktop_config.json` 中��加远程连接配置并填入 API key;对于 Cursor,由于其支持原生 HTTP MCP 连接,请在 `~/.cursor/mcp.json` 中配置对应的 URL 与 Headers。请确保 API key 正确配置在配置文件中。

🔌 API 说明

本 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。

❓ FAQ 摘要

如果遇到服务器无法启动的问题,请首先检查 Python 版本是否符合要求,并确认 `scrapegraph-mcp` 包已正确安装。同时,请务必检查环境变量 `SGAI_API_KEY` 是否已正确设置。若在 Claude Desktop 中看不到工具,请查看相关的系统日志以排查配置错误。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
scrapegraph-mcp 中文教程scrapegraph-mcp 安装报错怎么办scrapegraph-mcp MCP 配置scrapegraph-mcp 与同类工具对比scrapegraph-mcp 最佳实践scrapegraph-mcp 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

scrapegraph-mcp 是一款Python开发的AI辅助工具。开源MCP工具:ScapeGraph MCP Server。⭐84 · Python 主要应用场景包括:数据抓取和网页爬取。
💡 AI Skill Hub 点评

总体来看,网页爬虫MCP 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 网页爬虫MCP
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 scrapegraph-mcp
原始描述 开源MCP工具:ScapeGraph MCP Server。⭐84 · Python
Topics mcpwebcrawlerscrapingpython
GitHub https://github.com/ScrapeGraphAI/scrapegraph-mcp
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/ScrapeGraphAI/scrapegraph-mcp

收录时间:2026-06-24 · 更新时间:2026-06-27 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →