Add the ScrapeGraphAI MCP server to Windsurf
Config last verified Jun 1, 2026
The exact config to run ScrapeGraphAI in Windsurf — paste it in, restart, and the tools load.
Prerequisites
- Windsurf installed.
- SGAI_API_KEY — ScrapeGraphAI API key used to authenticate requests and meter credits. Required. Can also be passed via the X-API-Key header on the remote endpoint.
Setup
1. Open ~/.codeium/windsurf/mcp_config.json
On Windows the file lives at %USERPROFILE%\.codeium\windsurf\mcp_config.json.
2. Add this configuration
Add to ~/.codeium/windsurf/mcp_config.json
~/.codeium/windsurf/mcp_config.json
json
{
"mcpServers": {
"scrapegraph": {
"command": "uvx",
"args": [
"scrapegraph-mcp"
],
"env": {
"SGAI_API_KEY": "<SGAI_API_KEY>",
"SGAI_API_URL": "<SGAI_API_URL>",
"SGAI_TIMEOUT": "<SGAI_TIMEOUT>"
}
}
}
}3. Restart Windsurf and confirm the ScrapeGraphAI tools load.
Gotchas
Windsurf's Cascade reads MCP servers from an "mcpServers" object in ~/.codeium/windsurf/mcp_config.json. Unlike most clients, remote servers are configured with the "serverUrl" field rather than "url", so a config that uses "url" silently fails to connect. Native remote transport is supported without an OAuth flow.