---
last_updated: "2026-11-13T13:21:25.000Z"
title: ClickHouse® interface
meta:
  description: Learn how to connect BI tools and SQL clients to Tinybird using the ClickHouse HTTP interface for data visualization and analysis.
headingMaxLevels: 2
---

# ClickHouse® interface

Tinybird is compatible with the ClickHouse® HTTP interface, so BI tools, SQL clients, and data visualization platforms can query Tinybird Data Sources directly.

Use the ClickHouse interface when a tool already supports ClickHouse and needs read-only SQL access to Tinybird.

{% callout type="info" %}
The ClickHouse connection to Tinybird is read-only. You can use it to query, visualize, and analyze data from your Tinybird Data Sources, but you cannot modify data through this connection.
{% /callout %}

## Connection parameters

To connect any ClickHouse®-compatible tool to Tinybird, use these standard connection parameters:

### Basic Connection settings
```text
Protocol: HTTPS
Host: clickhouse.<REGION>.tinybird.co
Port: 443 (HTTPS)
SSL/TLS: Required (enabled)
```

Replace `<REGION>` with your workspace region (e.g., `eu-west-1.aws`, `us-east-1`).

### ClickHouse interface hosts

Here are the ClickHouse HTTP hosts for each Tinybird region:

{% table %}
* Region
* Provider
* Provider region
* ClickHouse interface URL
---
* Europe
* GCP
* europe-west2
* clickhouse.europe-west2.gcp.tinybird.co
---
* Europe
* GCP
* europe-west3
* clickhouse.tinybird.co
---
* US East
* GCP
* us-east4
* clickhouse.us-east.tinybird.co
---
* North America
* GCP
* northamerica-northeast2
* clickhouse.northamerica-northeast2.gcp.tinybird.co
---
* Europe
* AWS
* eu-central-1
* clickhouse.eu-central-1.aws.tinybird.co
---
* Europe
* AWS
* eu-west-1
* clickhouse.eu-west-1.aws.tinybird.co
---
* US East
* AWS
* us-east-1
* clickhouse.us-east.aws.tinybird.co
---
* US West
* AWS
* us-west-2
* clickhouse.us-west-2.aws.tinybird.co
{% /table %}

### Authentication
```text
Username: <WORKSPACE_NAME>  # Optional, for identification purposes
Password: <TOKEN>           # A static token or a JWT
```

{% callout type="info" %}
The username field is not used for authentication but helps identify the connection. The actual authentication is done via the token in the password field.
{% /callout %}

You can use either of these token types as the password:

- A [static Token](/forward/core-concepts/static-tokens), for access to the Data Sources permitted by its scopes. Use `WORKSPACE:READ_ALL` to grant access to all Workspace Data Sources.
- A [JWT](/forward/core-concepts/jwt), for access to specific Data Sources. A JWT can include a `filter` that Tinybird applies to every query on the Data Source, and it expires after its TTL.

### Static token requirements
Your static token must have the following permissions:
- **Read access** to Workspace Data Sources
- **Read access** to Service Data Sources (if needed)
- **Read access** to Organization Data Sources (if needed)

Create a token with these permissions:

```shell
tb --cloud token create static <token_name> --scope "WORKSPACE:READ_ALL" --scope "ORG_DATASOURCES:READ"
```

### JWT requirements
Your JWT must have a `DATASOURCES:READ` scope for each Data Source you want to query:

```shell
tb --cloud token create jwt <token_name> --ttl 1h --scope DATASOURCES:READ --resource <datasource_name> --filter "<column_name>='<value>'"
```

A JWT can read only the Data Sources included in its scopes. Clients that query `system` tables during connection setup may fail with a JWT that only grants access to Workspace Data Sources.

To authorize supported `system` or `tinybird` tables, create a [self-signed JWT](/forward/core-concepts/jwt#create-a-jwt-in-production) with explicit `DATASOURCES:READ` scopes and fully qualified resource names, such as `system.tables`. The CLI and Token API cannot create JWT scopes for these virtual tables.

For Organization Service Data Sources, use a static Token with the required permissions.

### Tinybird Local

To connect to your local development environment using Tinybird Local, use these connection parameters:

```text
Protocol: HTTP
Host: localhost
Port: 7182
SSL/TLS: Disabled
```

You can test the connection using curl:

```shell
curl -H "X-ClickHouse-Key: your_token_here" \
     "http://localhost:7182/?query=SELECT%20*%20FROM%20system.tables"
```

## Available databases

The ClickHouse interface exposes four databases:

- **`<your_workspace_name>`**: Contains your Workspace's Data Sources.
- **`tinybird`**: Contains [Workspace Service Data Sources](/forward/monitoring/service-datasources#service-data-sources), such as `tinybird.datasources_ops_log` and `tinybird.pipe_stats_rt`.
- **`organization`**: Contains [Organization Service Data Sources](/forward/monitoring/service-datasources#organization-service-data-sources), such as `organization.workspaces` and `organization.pipe_stats_rt`.
- **`system`**: Contains a subset of system tables, including `system.tables`, `system.columns`, `system.parts`, `system.merges`, `system.part_log`, `system.query_views_log`, and `system.query_log`.

Before you deploy schema changes that drop or modify columns, check that `system.merges` has no running merges on the affected Data Sources.

{% callout type="tip" %}
Querying `system.query_log`, `system.query_views_log` or `system.part_log` without filters is too resource-intensive and times out. Always apply a time filter on the `event_time` column to query a reasonable time frame.
{% /callout %}

## Compatible tools

Tinybird's ClickHouse® interface works with BI tools and SQL clients that support ClickHouse:

### Business intelligence platforms
- **[Grafana](/forward/guides/connect-grafana)**
- **[Hex](/forward/guides/connect-hex)**
- **[Metabase](/forward/guides/connect-metabase)**
- **[Superset](/forward/guides/connect-superset)**
- **[Power BI](/forward/guides/connect-powerbi)**
- **[Redash](/forward/guides/connect-redash)**
- **[Chartbrew](/forward/guides/connect-chartbrew)**
- **[Deepnote](/forward/guides/connect-deepnote)**
- **[Draxlr](/forward/guides/connect-draxlr)**
- **[Fabi.ai](/forward/guides/connect-fabi)**
- **[Holistics](/forward/guides/connect-holistics)**
- **[Luzmo](/forward/guides/connect-luzmo)**
- **[Mitzu](/forward/guides/connect-mitzu)**
- **[Tableau](/forward/guides/connect-tableau)**

### SQL clients and IDEs
- **[DataGrip](/forward/guides/connect-datagrip)**
- **[DBeaver](/forward/guides/connect-dbeaver)**

### Application clients
- **[ClickHouse JS Client](/forward/guides/connect-clickhouse-js)**
- **[ClickHouse Go Client](/forward/guides/connect-clickhouse-go)**
- **[ClickHouse Python Client](/forward/guides/connect-clickhouse-python)**

### Other compatible tools
Any tool that supports ClickHouse® HTTP interface can potentially work with Tinybird, including:
- Looker (via custom connection)
- Other JetBrains IDEs
- Retool and other low-code platforms

## Limitations

The interface is **read-only**. You cannot perform `INSERT`, `UPDATE`, `DELETE`, or any DDL operations (`CREATE`, `ALTER`, `DROP`).

## Observability

Queries made through the ClickHouse® interface are logged as [Query API](/api-reference/query-api) requests in the pipe statistics Data Sources. You can monitor these queries using:

- `tinybird.pipe_stats_rt` and `tinybird.pipe_stats` - Workspace-level statistics
- `organization.pipe_stats_rt` and `organization.pipe_stats` - Organization-level statistics

ClickHouse® queries appear with `pipe_id` and `pipe_name` as `'query_api'`. The actual SQL query is available in the `parameters` column under the `q` field.

For more details, see [Service Data Sources](/forward/monitoring/service-datasources).

## Troubleshooting


**Invalid host or region**
```text
Error: Connection refused
```
Verify your region and use the correct host format: `clickhouse.<region>.tinybird.co`

**Authentication failures**
```text
Error: Authentication failed
```
- Check your Auth Token is valid and not expired
- Ensure the token has read permissions for the workspace
- Verify the token is entered in the password field

**SSL/TLS errors**
```text
Error: SSL connection error
```
- Ensure SSL/TLS is enabled in your client
- Use port 443 with HTTPS protocol
- Check that your client supports TLS 1.2 or higher.

**Query timeouts**
```text
Error: Query timeout
```
- Add appropriate WHERE clauses to filter data
- Use LIMIT to reduce result set size
- Consider querying Materialized Views instead of raw data

### Getting help

If you encounter issues not covered here:
1. Check the specific tool integration guide
2. Review your [Auth Token](https://cloud.tinybird.co/tokens) permissions
3. Test the connection with a simple query
4. Contact [Tinybird support](/forward/support) for additional assistance

## Next steps

Connect your BI tool and follow the specific integration guide to set up dashboards and visualizations with your Tinybird data.

- [ClickHouse JS](/forward/guides/connect-clickhouse-js)
- [ClickHouse Go](/forward/guides/connect-clickhouse-go)
- [ClickHouse Python](/forward/guides/connect-clickhouse-python)
- [Grafana](/forward/guides/connect-grafana)
- [Metabase](/forward/guides/connect-metabase)
