Skip to content

feat!: migrate MCP server to ScrapeGraph API v2#16

Open
VinciGit00 wants to merge 1 commit intomainfrom
feat/migrate-v2-api
Open

feat!: migrate MCP server to ScrapeGraph API v2#16
VinciGit00 wants to merge 1 commit intomainfrom
feat/migrate-v2-api

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

Migrates the ScrapeGraph MCP server to API v2, matching scrapegraph-py#82.

Changes

  • Base URL: https://api.scrapegraphai.com/api/v2 (override with SCRAPEGRAPH_API_BASE_URL)
  • Auth: Authorization: Bearer, SGAI-APIKEY, X-SDK-Version: scrapegraph-mcp@2.0.0
  • Endpoints: /scrape, /extract, /search, /crawl (+ stop/resume), /credits, /history, /monitor (+ lifecycle)
  • New tools: crawl_stop, crawl_resume, credits, sgai_history, monitor_create, monitor_list, monitor_get, monitor_pause, monitor_resume, monitor_delete
  • Updated: markdownify, smartscraper, searchscraper, scrape (format options), smartcrawler_initiate (markdown/html crawl; default extraction_mode=markdown)
  • Removed: sitemap, agentic_scrapper, markdownify_status, smartscraper_status

Breaking changes

Clients relying on removed tools or v1-only behavior must migrate per the README and .agent docs.

Test plan

  • ruff check src/ and mypy src/scrapegraph_mcp/server.py
  • Run MCP server with SGAI_API_KEY and smoke-test markdownify, credits (if deployed on target API)

Made with Cursor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant