Connect data
Connect your database to an MCP server
To connect PostgreSQL, BigQuery or another database to Claude, ChatGPT or another AI client, add the database to Bonnard. Then give people access to it.
Data sources are on the Data page in the console at app.bonnard.ai. You need the Editor role or higher in your workspace to
connect a database, PostHog or the sample data. To start from your AI client, you also need Bonnard connected.
What you can connect
Tenancy is how a database keeps each customer’s data separate.
| Database | Credential | Tenancy options | SSL | Port |
|---|---|---|---|---|
| PostgreSQL | Read-only user | None, Row-level security | require | 5432 |
| BigQuery | Workspace account or service account key | None, Dataset per customer | No setting | None |
| Amazon Redshift | Read-only user | None, Row-level security | require | 5439 |
| ClickHouse | Read-only user | None | Protocol https | 8443 or 8123 |
| DuckDB / MotherDuck | MotherDuck access token | None | No setting | None |
| MySQL / MariaDB | Read-only user | None | require | 3306 |
| Microsoft SQL Server | Read-only login | None, Row-level security, Database per customer (Azure SQL Database only) | require | 1433 |
| Integration | Credential | Tenancy options | SSL | Port |
|---|---|---|---|---|
| PostHog | OAuth grant to one project, read-only | None. Team members only | No setting | None |
SSL: require encrypts with no validation. verify-ca and verify-full also validate the server certificate. Use disable only for a server with no TLS.
Add data source offers the sample data until the workspace has a connected data source.
A database with a port needs a public host. If the database has an IP allowlist, add Bonnard’s IP addresses to it for that port. Bonnard cannot reach a private network.
Start a connection
In your AI client
Ask your AI client to connect your database. The agent gives a link to the form, where you enter the password. It offers the link only while the workspace has no data source, or only the sample.
In the console
Select Data, then Add data source.
Your data sources on the Data page
Under Data sources (N), each data source has a card with its name, engine and tenancy (MSSQL · RLS). The footer gives the status.
| Status | Explanation |
|---|---|
| Connected | The last test or Re-scan tables worked. |
| Can’t connect | The last test or Re-scan tables failed. Select Edit connection on its Settings tab. A failed automatic read, at approximately 6-hour intervals, shows this on Settings only. |
| Access expired | PostHog refuses Bonnard’s access. Select Reconnect on its Settings tab. |
| Setup incomplete | The connect steps are not done. AI clients cannot use it until then. Select the card to finish them. |
| Connection test failed | The last test failed. Select the card to fix the details and test again. |
| Status unknown | The details changed after the last read of the tables. Select Re-scan tables on its Settings tab. |
After you connect
- Give access: on the data source’s Access tab, select who can use it.
- Connect your AI client: install Bonnard from the console sidebar.
- Hide tables from AI clients.