| title | Claude Code |
|---|---|
| description | Configure ScrapeGraph MCP in Claude Code |
| icon | /logo/claude-color.svg |
Add the server with the Claude Code CLI:
claude mcp add --transport http sgai \
https://mcp.scrapegraphai.com/mcpThe default local scope makes the server available in the current project. Add --scope user to use it in every project.
claude mcp login sgaiAlternatively, run /mcp inside Claude Code, select sgai, and choose Authenticate. Either way a browser window opens: choose Continue with Google and sign in with the Google account associated with your ScrapeGraphAI account.
Once the browser shows Authentication successful. Connected to sgai., return to Claude Code — the tools are ready.
claude mcp add --transport http sgai \
https://mcp.scrapegraphai.com/mcp \
--header "Authorization: Bearer $SGAI_API_KEY"A request carrying an API key skips the OAuth flow, so there is no claude mcp login step.
claude mcp get sgaiThen ask Claude Code to run the credits tool. A balance response confirms that authentication and tool execution both work.