Connectors · Connectors

Connect a database to an MCP server: schema and column descriptions for AI agents

For engineers connecting a database, documents or dbt project so agents can read schema and column meaning over MCP.

Updated

BrainBox connectors read your database schema, SQL files, documents or dbt artifacts and turn them into entities, relationships, rules and metrics that agents read over MCP. By default the CLI reads schema metadata only, never rows. Pick a connector by source, run one command, review what ingestion proposes, and your agent can ask what a table or column means.

  • Postgres, Trino and Athena schemas, SQL files, documents (md, txt, html, pdf, docx) and dbt artifacts are supported.
  • MCP servers and NoSQL schemas can also be staged with `meta ingest`.
  • Column profiling is opt-in and off by default.

The one-command path

ingest takes one or more sources, runs the whole pipeline and publishes a new Brain version. Add --review to stop before publishing and get a review link. 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 postgres://user:pass@host:5432/mydb ./sql/ --review

Where the meaning comes from

The schema supplies structure. Meaning comes from documents you add, such as a data dictionary, and from people reviewing what ingestion proposes. Each element keeps its source.

Sources, commands and what each reads
SourceCommandWhat is read
Postgresingest postgres://…Schema metadata: tables, columns, keys, relationships
Trinoingest trino://…Tables and columns (no enforced keys or indexes)
Athenaingest athena://region/databaseTables and columns (no enforced keys or indexes)
SQL filesingest ./sql/ (with a database source)Referenced tables, columns, join patterns, named parameters
Documentsingest ./docs/ or sync ./docsmd, txt, html, pdf, docx
dbtmeta ingest dbt --artifacts ./targetmanifest.json, optional catalog.json and semantic_manifest.json
MCP servermeta ingest mcp <url>The server's tools
NoSQLmeta ingest nosql <file>A JSON file of collections

FAQ

How do I give an AI agent my database schema and column descriptions?
Connect the database with brainbox ingest, add a data dictionary of markdown files with brainbox sync, and connect your agent to the BrainBox MCP URL. The agent reads entities, fields and descriptions through recall_domain.
Does BrainBox read my table rows?
Not by default. Opt-in column profiling samples rows for statistics, and full mode also sends enum values and JSON key shapes.
Which sources can I connect?
Postgres, Trino and Athena, SQL files, documents, dbt artifacts, MCP servers and NoSQL schemas.
Is there a live Confluence or Notion connector?
No. Export your pages and sync the folder.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo