# Connect Windsurf

Use datacub in Windsurf's Cascade: check your setup, add events in code, and ask about your numbers in the editor.

## Connect

1. In Windsurf, open the MCP settings (**View raw config**) and paste these settings into the file (`~/.codeium/windsurf/mcp_config.json`).
2. Refresh the MCP list, sign in to datacub and press **Allow**.
3. Ask in Cascade.

```json none
{
  "mcpServers": {
    "datacub": { "serverUrl": "https://datacub.to/mcp" }
  }
}
```

If the file already has other servers, add the `datacub` entry next to them inside `mcpServers`.

## Good to know

- To keep the connection read only, use `https://datacub.to/mcp?readonly=1` as the address.

## Try asking

- "Check datacub is set up right in this project."
- "Which events does this app send, and which are missing?"
- "How did visitors change this week?"

More in [Use cases](https://docs.datacub.to/mcp/use-cases.md).
