Enable language models to perform advanced AI-powered web scraping with enterprise-grade reliabiliβ¦
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by ScrapeGraphAI Scrapegraph Mcp.
scrapePOST /scrape (`output_format`: markdown, html, screenshot, branding, links, images, summary)
extractPOST /extract (requires `website_url` + `user_prompt`; optional `output_schema`)
searchPOST /search (`num_results` 1β20; supports `country_search`, `time_range`, `output_schema`)
crawl_startPOST /crawl β `extraction_mode` markdown / html / links / images / summary / branding / screenshot
crawl_get_statusGET /crawl/:id (poll until `status: completed`)
schemaPOST /schema (generate or augment a JSON Schema from a prompt)
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.
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.
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/ folderv3 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 |
smartcrawler_fetch_results | crawl_get_status |
sgai_history | history |
generate_schema | schema |
markdownify | removed β use scrape with output_format="markdown" |
Sign up and get your API key from the ScrapeGraph Dashboard
Ask Claude or Cursor:
That's it! The server is now available to your AI assistant.
| Tool | Role |
|---|---|
scrape | POST /scrape (output_format: markdown, html, screenshot, branding, links, images, summary) |
extract | POST /extract (requires website_url + user_prompt; optional output_schema) |
search | POST /search (num_results 1β20; supports country_search, time_range, output_schema) |
crawl_start | POST /crawl β extraction_mode markdown / html / links / images / summary / branding / screenshot |
crawl_get_status | GET /crawl/:id (poll until status: completed) |
crawl_stop, crawl_resume | POST /crawl/:id/stop | resume |
schema | POST /schema (generate or augment a JSON Schema from a prompt) |
credits | GET /credits |
history | GET /history (paginated, service filter) |
monitor_create, monitor_list, monitor_get, monitor_pause, monitor_resume, monitor_delete | /monitor API |
monitor_activity | GET /monitor/:id/activity (paginated tick history: id, createdAt, status, changed, elapsedMs, diffs) |
Removed: sitemap, agentic_scrapper, async-status polling, and (in v3) markdownify β use scrape with output_format="markdown".
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:
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:
%APPDATA%/Claude/claude_desktop_config.json~/Library/Application\ Support/Claude/claude_desktop_config.jsonAdd the ScrapeGraphAI MCP server on the settings:

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.
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Cursor supports native HTTP MCP connections. Add to your Cursor MCP settings (~/.cursor/mcp.json):
To run the MCP server locally for development or testing, follow these steps:
You can run the server directly:
The server will start and communicate via stdio (standard input/output), which is the standard MCP transport method.
Test your local server using the MCP Inspector tool:
This provides a web interface to test all available tools interactively.
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.
In Cursor's MCP settings, add a new server with:
python["-m", "scrapegraph_mcp.server"]{"SGAI_API_KEY": "your-api-key-here"}Server not starting:
python --versionpip list | grep scrapegraph-mcpecho $SGAI_API_KEY (macOS/Linux) or echo %SGAI_API_KEY% (Windows)Tools not appearing:
~/Library/Logs/Claude/%APPDATA%\Claude\Logs\Import errors:
pip install -e . --force-reinstallpip install -r requirements.txt (if available)The ScrapeGraph MCP server can be integrated with Google ADK (Agent Development Kit) to create AI agents with web scraping capabilities.
Create an agent file (e.g., agent.py) with the following configuration:
Timeout Settings:
Tool Filtering:
tool_filter to limit which tools are available:
API Key Configuration:
export SGAI_API_KEY=your-keyenv dict: 'SGAI_API_KEY': 'your-key-here'Once configured, your agent can use natural language to interact with web scraping tools:
For more information about Google ADK, visit the official documentation.
The server enables sophisticated queries across various scraping scenarios:
time_range; phrase queries to bias recency in natural language insteadcrawl_start plus crawl_get_status to map and capture multi-page content; there is no separate sitemap tool on v2.extract on individual URLs (or monitor_create on a schedule)monitor_create with interval)credits, historyThe server implements robust error handling with detailed, actionable error messages for:
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.
"ScrapeGraph client not initialized"
SGAI_API_KEY environment variable or provide via --config"Error 401: Unauthorized"
"Error 402: Payment Required"
Crawl not returning results
crawl_get_status() until status is "completed"Tools not appearing in Claude Desktop
~/Library/Logs/Claude/ (macOS) or %APPDATA%\Claude\Logs\ (Windows)For detailed troubleshooting, see the .agent documentation.
Test your server locally using the MCP Inspector tool:
This provides a web interface to test all available tools.
Linting:
Type Checking:
Format Checking:
We welcome contributions! Here's how you can help:
ScapeGraphClient class in server.py:Update documentation:
Submit a pull request
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)For detailed development guidelines, see the .agent documentation.
For comprehensive developer documentation, see:
https://v2-api.scrapegraphai.com/apiThis project is distributed under the MIT License. For detailed terms and conditions, please refer to the LICENSE file.
Special thanks to tomekkorbak for his implementation of oura-mcp-server, which served as starting point for this repo.
Made with β€οΈ by ScrapeGraphAI Team
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/scrapegraphai-scrapegraph-mcp)<a href="https://allmcps.com/mcp/scrapegraphai-scrapegraph-mcp"><img src="https://allmcps.com/api/badge/scrapegraphai-scrapegraph-mcp?style=directory" alt="ScrapeGraphAI Scrapegraph Mcp on AllMCPs" /></a>