Connectors · Trino

Connect Trino to AI agents: catalog and schema metadata over MCP

For engineers connecting a Trino catalog so agents understand its tables.

Updated

To connect Trino, run brainbox ingest with a trino:// URL naming the user, host, catalog and optionally the schema. The CLI reads tables and columns; Trino has no enforced keys or indexes, so declare keys and joins in your docs. Agents then read the result over MCP.

  • URL form: trino://user[:password]@host[:port]/catalog[/schema]
  • Tables and columns only: no enforced keys or indexes.
  • Schema metadata only by default.

Run it

Use the full URL. By default the CLI reads schema metadata only, never rows. Opt-in column profiling (--profile-data, on meta ingest db) samples rows to compute statistics, and full mode also sends enum values and JSON key shapes.

npx -y @brainbox-labs/cli@latest ingest trino://user:pass@trino.example.com:443/hive/sales

Add what Trino cannot say

Because keys and joins are not enforced, write them in a data dictionary (which column is the key, how tables join, units and rules) and sync it. See the schema documentation template.

Trino URL parts
PartExample
User and optional passworduser:pass@
Host and porttrino.example.com:443
Cataloghive
Schema (optional)sales

FAQ

Why are there no keys or joins from Trino?
Trino has no enforced primary keys, foreign keys or indexes, so only tables and columns are staged. Add keys and joins in a data dictionary.
Is TLS used?
TLS is inferred when a password is present; add ?ssl=false to opt out.
Can I profile columns on Trino?
Yes, opt-in with --profile-data on meta ingest db.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo