
scrapegraphai/scrapegraph-mcp 是从 https://github.com/scrapegraphai/scrapegraph-mcp. 导入的 MCP 候选服务器。
概览
scrapegraphai/scrapegraph-mcp 是从 https://github.com/scrapegraphai/scrapegraph-mcp. 导入的 MCP 候选服务器。
概述(AI 翻译)
一台就绪的建模上下文协议(MCP)服务器,提供与 ScrapeGraph AI API 的无缝集成。该服务器使语言模型能够以企业级可靠性利用先进的 AI 驱动的网页抓取能力。
目录
- 主要特征
- 快速入门
- 可用工具
- 设置说明
- 远程服务器使用
- 本地使用情况
- Google ADK 集成
- 示例用例
- 错误处理
- 常见问题
- 发展
- 贡献
- 文档
- 技术栈
- 许可证
API v2
该 MCP 服务器针对 ScrapeGraph API v2(https://v2-api.scrapegraphai.com/api),与 1:1 对齐
scrapegraph-py PR #84。认证使用
[SGAI-APIKEY 头部。环境变量镜像 Python SDK:
SGAI_API_URL— 覆盖基础URL(默认https://v2-api.scrapegraphai.com/api)SGAI_TIMEOUT— 请求超时(默认为120)SGAI_API_KEY— API 密钥(也可以通过 MCP [scrapegraphApiKey或X-API-Key头部传递)
遗产别名(仍被使用):
SCRAPEGRAPH_API_BASE_URL代表SGAI_API_URL,SGAI_TIMEOUT_S代表SGAI_TIMEOUT。
主要特色
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ScrapeGraph MCP Server
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.
Table of Contents
- Key Features
- Quick Start
- Available Tools
- Setup Instructions
- Remote Server Usage
- Local Usage
- Google ADK Integration
- Example Use Cases
- Error Handling
- Common Issues
- Development
- Contributing
- Documentation
- Technology Stack
- License
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 (defaulthttps://v2-api.scrapegraphai.com/api)SGAI_TIMEOUT— request timeout in seconds (default120)SGAI_API_KEY— API key (can also be passed via MCPscrapegraphApiKeyorX-API-Keyheader)
Legacy aliases (still honored):
SCRAPEGRAPH_API_BASE_URLforSGAI_API_URL,SGAI_TIMEOUT_SforSGAI_TIMEOUT.
Key Features
- Scrape & extract:
scrape(POST /scrape, multi-format),extract(POST /extract, URL + prompt) - Search:
search(POST /search;num_resultsclamped 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
Migration: v2 → v3
v3 renames every MCP tool that diverged from the v2 API docs. Hard rename, no aliases.
| v2 (old) | v3 (new) |
|---|---|
smartscraper |
extract |
searchscraper |
search |
smartcrawler_initiate |
crawl_start |
安装
npx -y @smithery/cli@latest run @ScrapeGraphAI/scrapegraph-mcp --config \"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\配置
{
"mcpServers": {
"@ScrapeGraphAI-scrapegraph-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@ScrapeGraphAI/scrapegraph-mcp",
"--config",
"\"{\\\"scrapegraphApiKey\\\":\\\"YOUR-SGAI-API-KEY\\\"}\""
]
}
}
}