Skip to main content

Overview

The ScrapeGraphAI MCP Server is a hosted Model Context Protocol (MCP) server that connects Large Language Models (LLMs) to the ScrapeGraphAI API. It lets AI assistants like Cursor, Claude, and Codex scrape, extract, search, crawl, and schedule page monitors through natural language, without writing any code.

What is MCP?

The Model Context Protocol (MCP) is a standardized way for AI assistants to access external tools and data sources. By connecting the ScrapeGraphAI MCP Server, your AI assistant gains access to the full v2 API surface as callable tools.

Key Features

20 Tools

Scrape, extract, search, crawl, schedule page monitors, and inspect credits and request history

Hosted, No Install

One HTTPS endpoint — nothing to install, run, or keep up to date

Google or API Key

Sign in with Google over OAuth 2.1, or authenticate with a ScrapeGraphAI API key

Universal Compatibility

Works with Cursor, Claude Desktop, Claude Code, Codex, and any MCP-compatible client

Endpoint

The server speaks Streamable HTTP. The legacy HTTP+SSE transport is not supported — if your client offers a transport choice, pick HTTP (not SSE). Individual tool calls run up to 60 seconds; use the async crawl_* and monitor_* tools for longer jobs.

Quick Start

1

Choose how to sign in

Sign in with Google in the browser, or use an API key from the ScrapeGraph Dashboard.
2

Choose your client

Pick your assistant: Cursor, Claude Desktop, Claude Code, or Codex.
3

Add the server

Follow the setup guide for your client to register the sgai server and authenticate.
4

Verify

Ask your assistant to run the credits tool. A balance response confirms the connection works end to end.

Setup Guides

Cursor Setup

Configure ScrapeGraph MCP in Cursor

Claude Desktop Setup

Configure ScrapeGraph MCP in Claude Desktop

Claude Code Setup

Configure ScrapeGraph MCP in Claude Code

Codex Setup

Configure ScrapeGraph MCP in Codex

Authentication

Add the server without any credentials. On first connection the client discovers the OAuth metadata, registers itself, and opens the ScrapeGraphAI login page in your browser.
1

Restart your MCP client

Restart the client after saving its MCP configuration so that it loads the new sgai server.
2

Start authentication

Run /mcp in your client, select sgai, and choose the option to authenticate. In Claude Code and Codex you can also start the flow from the terminal with claude mcp login sgai or codex mcp login sgai.
3

Continue with Google

In the browser window that opens, select Continue with Google and use the Google account associated with your ScrapeGraphAI account.
4

Confirm the connection

Return to your client after you see Authentication successful. Connected to sgai. The server is ready to use.
The flow is standard OAuth 2.1 with PKCE (S256) and dynamic client registration, requesting the mcp:use scope. Tools run against the workspace tied to the account you signed in with.

Authenticate with an API key

Set your API key in the SGAI_API_KEY environment variable and reference it from the client config:
Clients that send raw headers instead can pass the key as Authorization: Bearer sgai-..., SGAI-APIKEY, or X-API-Key. Any request carrying an API key skips the OAuth flow entirely.

Verify the connection

Ask your assistant to run the credits tool. A successful balance response confirms that both authentication and tool execution are working.

Available Tools

Every tool maps to a v2 API endpoint and runs against the workspace you authenticated with.

Scraping

Crawling

Monitors

Account

Coming from the legacy scrapegraph-mcp package? The hosted server exposes the v2 API under its canonical names:

Use Cases

  • Research & Analysis — Extract data from multiple sources for research
  • Content Aggregation — Collect and structure content from websites
  • Market Intelligence — Monitor competitors and track page changes over time
  • Lead Generation — Extract contact information and company data
  • Data Collection — Build datasets from web sources

Next Steps

Ready to Start?

Choose your client and start scraping with AI!