# Connect Cursor

Use datacub in Cursor's chat and agent: check your setup, add events in code, and ask about your numbers without leaving the editor.

## Connect

1. In datacub, open [Settings, Connect and AI](https://datacub.to/en/settings?tab=integrations), pick **Cursor** and press **Add datacub to Cursor**. Cursor opens and asks to install it: accept.
2. In Cursor Settings, MCP, press **Connect** next to datacub, sign in and press **Allow**.
3. Ask in Cursor's chat.

Cursor did not open? Put these settings in `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` (this project only), then press **Connect** next to datacub:

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

## Good to know

- To install datacub in your code, ask: "Add datacub to this app." Cursor calls `get_sdk_setup`, follows the steps, then checks with `get_integration_status`. Without MCP, [Install with AI](https://docs.datacub.to/install-with-ai.md) does the same.
- 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 feature flags do we have, and which are on?"
- "Where do people drop off in sign-up?"

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