Bonnard

To analyse your ClickHouse data in Claude, ChatGPT or another AI client, connect it to Bonnard on the Data page. Then give people access to it.

ClickHouse at a glance
FactClickHouse
CredentialA read-only user
Port8443 (HTTPS) or 8123 (HTTP)
SSLhttps by default
NetworkA public hostname. Bonnard cannot reach private networks
TenancyNo tenancy

Requirements

  • The Editor role or higher in your Bonnard workspace.
  • To work from your AI client: Bonnard connected.
  • A ClickHouse user that can create users and grant privileges.
  • A ClickHouse server whose HTTP interface is reachable from the internet.

1. Create a read-only user

Agents can query only the tables that this user can read.

SQL

-- A user that can log in, with no privileges yet
CREATE USER mcp_reader IDENTIFIED BY '<password>';

-- Run this line once for each database you connect
GRANT SELECT ON <database>.* TO mcp_reader;

Connect one data source for each database. The grant covers tables that you add to the database later.

2. Allow Bonnard’s IP addresses

If your database has an IP allowlist, add Bonnard’s IP addresses to it for port 8443 (HTTPS) or 8123 (HTTP). On ClickHouse Cloud, add them to the IP access list in the service’s settings.

3. Start the connection

In your AI client

The agent offers a form link only while the workspace has no data source, or only the sample.

  1. Ask:

    Connect my ClickHouse server to Bonnard. The host is <host> and the user is mcp_reader.

  2. Open the link that the agent gives.

  3. Enter the password in the form. Never put it in the chat.

In the console

In the console at app.bonnard.ai, select Data, then Add data source, then ClickHouse.

4. Test and connect

In the console

Console only
  1. Enter the user’s details from the table below.
  2. Select Test and connect. Bonnard signs in as the user and reads its tables.
ClickHouse connection fields
FieldEnter
Connection nameA name for this database, for example Production.
Import from connection string (optional)For example, https://<user>:<password>@<host>:8443/<database>. Then select Fill fields.
ProtocolKeep https. Select http only for a self-managed server without TLS.
HostThe server’s public hostname, for example abc.eu-west-1.aws.clickhouse.cloud, without https:// or a port.
Port8443, or 8123 with http. A change to Protocol does not change the port.
DatabaseThe database to read.
User and PasswordThe read-only user from step 1, in place of default.
CA certificate (PEM)Leave it empty for ClickHouse Cloud. If your server is self-managed and uses a private CA, paste its bundle.

A failed test keeps a draft without the password. Select Continue setup on its card on the Data page. While no data source is connected, the agent also gives a resume link. Exit setup removes it. A refused host or a deleted data source’s name keeps no draft.

Make sure that it is connected

In your AI client

Ask:

Which tables can you read in <connection name>?

The agent calls explore_schema and shows the tables. An Editor first adds themselves on the Access tab.

In the console

A setup started in the console shows <name> is connected and who can use it. Select Give access to change that.

Troubleshooting

Host resolves to a private or reserved address.

Use the public hostname. Host is a private or reserved address. has the same fix.

Couldn't reach <host>

Make sure that Host, Port and your allowlist (step 2) are correct.

Signed in, but couldn't read the tables

The user cannot read the table list. Select Show details for the database’s own message.

A table is missing

Grant SELECT on it. Then select Re-scan tables on the data source’s Settings tab.

The test fails with a TLS or socket error

Make sure that Protocol and Port match: https with 8443, http with 8123. The native ports, 9000 and 9440, do not work.

Change or remove

In the console

Console only

On the data source’s Settings tab:

  • Edit connection changes the connection details.
  • Re-scan tables reads the table list now. Bonnard reads it at approximately 6-hour intervals.
  • Delete data source needs the Admin role. Select Delete, then Delete data source. Its dashboards and charts stop running until you connect one with the same name and engine. Then give access again.

To rename the data source, select its name in the page header.

Charts in your AI client