feat!: migrate MCP server to ScrapeGraph API v2#16
Open
VinciGit00 wants to merge 1 commit intomainfrom
Open
Conversation
Align with scrapegraph-py PR #82: base URL /api/v2, Bearer + SGAI-APIKEY headers, X-SDK-Version, and v2 endpoints for scrape, extract, search, crawl, credits, history, and monitor. BREAKING CHANGE: Removes sitemap, agentic_scrapper, markdownify_status, and smartscraper_status. Crawl supports markdown/html only (no AI crawl mode). Adds crawl_stop, crawl_resume, credits, sgai_history, and monitor_* tools. Optional SCRAPEGRAPH_API_BASE_URL for custom API hosts. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the ScrapeGraph MCP server to API v2, matching scrapegraph-py#82.
Changes
https://api.scrapegraphai.com/api/v2(override withSCRAPEGRAPH_API_BASE_URL)Authorization: Bearer,SGAI-APIKEY,X-SDK-Version: scrapegraph-mcp@2.0.0/scrape,/extract,/search,/crawl(+ stop/resume),/credits,/history,/monitor(+ lifecycle)crawl_stop,crawl_resume,credits,sgai_history,monitor_create,monitor_list,monitor_get,monitor_pause,monitor_resume,monitor_deletemarkdownify,smartscraper,searchscraper,scrape(format options),smartcrawler_initiate(markdown/html crawl; defaultextraction_mode=markdown)sitemap,agentic_scrapper,markdownify_status,smartscraper_statusBreaking changes
Clients relying on removed tools or v1-only behavior must migrate per the README and
.agentdocs.Test plan
ruff check src/andmypy src/scrapegraph_mcp/server.pySGAI_API_KEYand smoke-testmarkdownify,credits(if deployed on target API)Made with Cursor