> ## Documentation Index
> Fetch the complete documentation index at: https://getskydive.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ClickHouse

> Let your agent query and analyze data in your ClickHouse Cloud database

ClickHouse is a columnar database built for real-time analytics. Connect it and your agent can run SQL queries, explore schemas, and surface analytical results from your ClickHouse Cloud data.

## What the agent can do

<CardGroup cols={2}>
  <Card title="Run SQL queries" icon="code">
    Execute analytical queries against your ClickHouse tables and return structured results.
  </Card>

  <Card title="Explore schemas" icon="table">
    List databases, tables, and columns to understand the shape of your data before querying.
  </Card>

  <Card title="Aggregate and summarize" icon="chart-bar">
    Run aggregations, group-by queries, and time-series rollups across large datasets.
  </Card>

  <Card title="Surface insights quickly" icon="bolt">
    Take advantage of ClickHouse's columnar architecture to answer analytical questions fast.
  </Card>
</CardGroup>

## Example agent tasks

```text theme={null}
What are the top 10 events by volume in our events table over the last 7 days?
```

```text theme={null}
Show me the daily active users trend for this month, broken down by country.
```

```text theme={null}
List all tables in the analytics database and describe each one.
```

## What you share

During the connect flow you sign in to your ClickHouse Cloud account. The agent works within the permissions your database user allows. The token is stored securely and never exposed to the model. See [Permissioning](/docs/integrations/permissions).

## Connecting

<Steps>
  <Step title="Add the ClickHouse connection">
    From the agent's connections, choose ClickHouse. The platform connects through ClickHouse Cloud's MCP server.
  </Step>

  <Step title="Sign in to ClickHouse Cloud">
    A connect card appears. Sign in to your ClickHouse Cloud account and approve access.
  </Step>

  <Step title="The agent gets to work">
    It can now run queries, explore your schema, and surface analytical results.
  </Step>
</Steps>

## Learn more

<CardGroup cols={2}>
  <Card title="ClickHouse docs" icon="arrow-up-right-from-square" href="https://clickhouse.com/docs">
    The full reference for what's possible.
  </Card>

  <Card title="How credentials stay safe" icon="shield-halved" href="/docs/integrations/permissions">
    The proxy model that keeps tokens out of the agent's reach.
  </Card>
</CardGroup>
