Connectors · Athena

Connect AWS Athena to AI agents: database metadata over MCP

For engineers connecting an Athena database so agents understand its tables.

Updated

To connect Athena, run brainbox ingest with an athena://region/database URL. AWS credentials come from the standard AWS credential chain, not the URL. Athena has no enforced keys or indexes, so tables and columns are read and you declare keys and joins in your docs.

  • URL form: athena://region/database, with optional ?catalog=, ?workgroup= and ?output=.
  • Credentials come from the standard AWS credential chain.
  • Tables and columns only; schema metadata only by default.

Run it

Make sure your AWS credentials are available in the environment the CLI runs in, then ingest. 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 "athena://us-east-1/mydb?workgroup=primary" --review

Add what Athena cannot say

Write keys, joins, units and rules in a data dictionary and sync it, so agents can tell tables apart and join them correctly.

Athena URL options
OptionMeaning
region/databaseThe AWS region and the Athena database
?catalog=The data catalog
?workgroup=The workgroup to run in
?output=The query result location
?pollTimeoutMs=How long a query is polled before failing

FAQ

Where do the AWS credentials come from?
The standard AWS SDK credential chain, not the URL.
Does Athena provide keys and joins?
No. Athena has no enforced primary keys, foreign keys or indexes, so declare them in your documentation.
Which command do I use?
brainbox ingest. The step-by-step meta ingest db command lists Postgres and Trino for schema introspection.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo