
ScrapeGraphAI Scrapegraph Mcp
ai.smithery由 smithery.ai 發布官方發布者v1.16.0更新於 Nov 3, 2026
Enable language models to perform advanced AI-powered web scraping with enterprise-grade reliabili…
發布方自己的服務:222wcnm Bilistalkermcp
概覽
封裝 ScrapeGraph AI API,讓助理擷取網頁、依提示抽出結構化資料、搜尋、爬取網站並設定排程監控。
- 可以做什麼
- 將單一網頁擷取為 markdown、HTML、截圖、連結、圖片、品牌資訊或摘要
- 依提示與可選輸出結構從指定網址抽出結構化資料
- 執行網頁搜尋,可設定結果數量、國家與輸出結構
- 啟動、輪詢、停止與恢復非同步多頁爬取
- 依提示產生或擴充 JSON Schema
- 建立、列出、暫停、恢復與刪除排程監控,並查詢額度與請求紀錄
- 適用情境
- 適合需要 AI 驅動網頁資料蒐集的情境:把頁面轉成 markdown、從商品或文章頁抽出結構化欄位、透過搜尋做主題研究,或爬取文件網站並依排程持續擷取。
- 執行需求
- 可作為託管遠端端點使用,也可在本機執行,需 Python 3.13 以上及 pip 或 uv。需要 ScrapeGraph 帳號與 API 金鑰,透過 SGAI_API_KEY 環境變數、scrapegraphApiKey 設定值或 X-API-Key 標頭提供;託管 Smithery 端點另需在 Authorization 標頭提供 OAuth 權杖。需能連線至 ScrapeGraph API。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ScrapeGraphAI Scrapegraph Mcp,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/ai.smithery%2FScrapeGraphAI-scrapegraph-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"scrapegraphai-scrapegraph": {
"type": "http",
"url": "https://server.smithery.ai/@ScrapeGraphAI/scrapegraph-mcp/mcp"
}
}
}README
ScrapeGraph MCP Server
[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.
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.
Quick Start
1. Get Your API Key
Sign up and get your API key from the ScrapeGraph Dashboard
2. Install with Smithery (Recommended)
3. Start Using
Ask Claude or Cursor:
- "Convert https://scrapegraphai.com to markdown"
- "Extract all product prices from this e-commerce page"
- "Research the latest AI developments and summarize findings"
That's it! The server is now available to your AI assistant.
Available Tools
Removed: sitemap, agentic_scrapper, async-status polling, and (in v3) markdownify — use scrape with output_format="markdown".
Setup Instructions
To utilize this server, you'll need a ScrapeGraph API key. Follow these steps to obtain one:
- Navigate to the ScrapeGraph Dashboard
- Create an account and generate your API key
Automated Installation via Smithery
For automated installation of the ScrapeGraph API Integration Server using Smithery:
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)
The configuration file is located at:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json - macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Cursor Integration
Add the ScrapeGraphAI MCP server on the settings:
Remote Server Usage
Connect to our hosted MCP server - no local installation required!
[!WARNING] The legacy MCP endpoint at
https://mcp.scrapegraphai.com/mcpwill be deprecated soon. New integrations should use the replacement MCP endpoint:https://sgai-mcp-main.onrender.com.
Claude Desktop Configuration (Remote)
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Cursor Configuration (Remote)
Cursor supports native HTTP MCP connections. Add to your Cursor MCP settings (~/.cursor/mcp.json):
Benefits of Remote Server
- No local setup - Just configure and start using
- Always up-to-date - Automatically receives latest updates
- Cross-platform - Works on any OS with Node.js
Local Usage
To run the MCP server locally for development or testing, follow these steps:
Prerequisites
- Python 3.13 or higher
- pip or uv package manager
- ScrapeGraph API key
Installation
- Clone the repository (if you haven't already):
- Install the package:
- Set your API key:
Running the Server Locally
You can run the server directly:
The server will start and communicate via stdio (standard input/output), which is the standard MCP transport method.
Testing with MCP Inspector
Test your local server using the MCP Inspector tool:
This provides a web interface to test all available tools interactively.
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):
Windows (%APPDATA%\Claude\claude_desktop_config.json):
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"}
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) orecho %SGAI_API_KEY%(Windows)
Tools not appearing:
- Check Claude Desktop logs:
- macOS:
~/Library/Logs/Claude/ - Windows:
%APPDATA%\Claude\Logs\
- macOS:
- 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)
Google ADK Integration
The ScrapeGraph MCP server can be integrated with Google ADK (Agent Development Kit) to create AI agents with web scraping capabilities.
Prerequisites
- Python 3.13 or higher
- Google ADK installed
- ScrapeGraph API key
Installation
- Install Google ADK (if not already installed):
- Set your API key:
Basic Integration Example
Create an agent file (e.g., agent.py) with the following configuration:
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_filterto limit which tools are available:
API Key Configuration:
- Set via environment variable:
export SGAI_API_KEY=your-key - Or pass directly in
envdict:'SGAI_API_KEY': 'your-key-here' - Environment variable approach is recommended for security
Usage Example
Once configured, your agent can use natural language to interact with web scraping tools:
For more information about Google ADK, visit the official documentation.
Example Use Cases
The server enables sophisticated queries across various scraping scenarios:
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"
Search and Research
- Search: "Research and summarize recent developments in AI-powered web scraping"
- Search: "Search for the top 5 articles about machine learning frameworks and extract key insights"
- Search: "Find recent news about GPT-4 and provide a structured summary"
- Search: v2 does not apply
time_range; phrase queries to bias recency in natural language instead
Website analysis
- Use
crawl_startpluscrawl_get_statusto map and capture multi-page content; there is no separate sitemap tool on v2.
Multi-page crawling
- Crawl: "Crawl the blog in markdown mode and poll until complete"
- For structured fields per page, run
extracton individual URLs (ormonitor_createon a schedule)
Monitors and account
- Monitor: "Run this extract prompt on https://example.com every day at 9am" (
monitor_createwith interval) - Credits / history:
credits,history - Agentic Scraper: "Execute a complex workflow: login, navigate to reports, download data, and extract summary statistics"
Error Handling
The server implements robust error handling with detailed, actionable error messages for:
- API authentication issues
- Malformed URL structures
- Network connectivity failures
- Rate limiting and quota management
Common Issues
Windows-Specific Connection
When running on Windows systems, you may need to use the following command to connect to the MCP server:
This ensures proper execution in the Windows environment.
Other Common Issues
"ScrapeGraph client not initialized"
- Cause: Missing API key
- Solution: Set
SGAI_API_KEYenvironment variable or provide via--config
"Error 401: Unauthorized"
- Cause: Invalid API key
- Solution: Verify your API key at the ScrapeGraph Dashboard
"Error 402: Payment Required"
- Cause: Insufficient credits
- Solution: Add credits to your ScrapeGraph account
Crawl not returning results
- Cause: Still processing (asynchronous operation)
- Solution: Keep polling
crawl_get_status()until status is "completed"
Tools not appearing in Claude Desktop
- Cause: Server not starting or configuration error
- Solution: Check Claude logs at
~/Library/Logs/Claude/(macOS) or%APPDATA%\Claude\Logs\(Windows)
For detailed troubleshooting, see the .agent documentation.
Development
Prerequisites
- Python 3.13 or higher
- pip or uv package manager
- ScrapeGraph API key
Installation from Source
Testing with MCP Inspector
Test your server locally using the MCP Inspector tool:
This provides a web interface to test all available tools.
Code Quality
Linting:
Type Checking:
Format Checking:
Project Structure
Contributing
We welcome contributions! Here's how you can help:
Adding a New Tool
- Add method to
ScapeGraphClientclass in server.py:
- Add MCP tool decorator:
- Test with MCP Inspector:
-
Update documentation:
- Add tool to this README
- Update .agent documentation
-
Submit a pull request
Development Workflow
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run linting and type checking
- Test with MCP Inspector and Claude Desktop
- Update documentation
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code Style
- Line length: 100 characters
- Type hints: Required for all functions
- Docstrings: Google-style docstrings
- Error handling: Return error dicts, don't raise exceptions in tools
- Python version: Target 3.13+
For detailed development guidelines, see the .agent documentation.
Documentation
For comprehensive developer documentation, see:
- .agent/README.md - Complete developer documentation index
- .agent/system/project_architecture.md - System architecture and design
- .agent/system/mcp_protocol.md - MCP protocol integration details
Technology Stack
Core Framework
- Python 3.13+ - Modern Python with type hints
- FastMCP - Lightweight MCP server framework
- httpx 0.24.0+ - Modern async HTTP client
Development Tools
- Ruff - Fast Python linter and formatter
- mypy - Static type checker
- Hatchling - Modern build backend
Deployment
- Smithery - Automated MCP server deployment
- Docker - Container support with Alpine Linux
- stdio transport - Standard MCP communication
API Integration
- ScrapeGraph AI API - Enterprise web scraping service
- Base URL:
https://v2-api.scrapegraphai.com/api - Authentication: API key-based
License
This project is distributed under the MIT License. For detailed terms and conditions, please refer to the LICENSE file.
Acknowledgments
Special thanks to tomekkorbak for his implementation of oura-mcp-server, which served as starting point for this repo.
Resources
Official Links
- ScrapeGraph AI Homepage
- ScrapeGraph Dashboard - Get your API key
- ScrapeGraph API Documentation
- GitHub Repository
MCP Resources
- Model Context Protocol - Official MCP specification
- FastMCP Framework - Framework used by this server
- MCP Inspector - Testing tool
- Smithery - MCP server distribution
- mcp-name: io.github.ScrapeGraphAI/scrapegraph-mcp
AI Assistant Integration
- Claude Desktop - Desktop app with MCP support
- Cursor - AI-powered code editor
Support
- GitHub Issues - Report bugs or request features
- Developer Documentation - Comprehensive dev docs
Made with ❤️ by ScrapeGraphAI Team
來源:README.md,提交 8372895
工具
0版本歷史
1- v1.16.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Smithery 整合

222wcnm Bilistalkermcp
ai.smithery官方發布者
Bilibili 創作者分析伺服器,讓助理查詢指定使用者的個人資料、影片、動態、專欄、字幕、追蹤清單與留言。

Zwldarren Akshare One Mcp
ai.smithery官方發布者
遠端 MCP 伺服器,讓助理以唯讀方式取得中國股市資料:歷史與即時行情、新聞和財務報表。

Zhaoganghao Hellomcp
ai.smithery官方發布者
一個小型遠端 MCP 伺服器,讓助理依名字向人問候,並介紹「Hello, World」的由來。

Zeta Chain Cli
ai.smithery官方發布者
一個遠端 MCP 伺服器,讓助理為任意姓名或受眾產生友善、可自訂的問候語。

Yuna0x0 Hackmd Mcp
ai.smithery官方發布者
一個連接 HackMD API 的 MCP 伺服器,讓助理讀取、建立、更新和刪除 HackMD 筆記並管理團隊。