# Connect Zed

Use datacub in Zed's agent panel. Zed adds datacub as a remote MCP server and signs you in with OAuth.

## Connect

1. In Zed, open **Settings**, **AI**, **MCP Servers**, press **Add Server**, then **Add Remote Server**.
2. Use datacub as the name and the server address as the URL. Leave out any authorization header.
3. Zed asks you to sign in: sign in to datacub and press **Allow**.
4. Ask in the agent panel.

Or add it to your Zed settings file:

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

When datacub is running, its dot in **MCP Servers** is green.

## Good to know

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

## Try asking

- "Using datacub, how did we do this week?"
- "Check datacub is set up right in this project."
- "Which pages lead to sign-ups?"

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