Cursor Setup
Add this to your Cursor MCP settings (~/.cursor/mcp.json):
Authenticate
Restart Cursor, open its MCP settings, selectsgai, and start the login. In the browser window that 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 Cursor — the tools are ready.
With an API key instead
SetSGAI_API_KEY in Cursor’s environment and add bearer_token_env_var next to the url:
Verify
Ask Cursor to run thecredits tool. A balance response confirms that authentication and tool execution both work.