dbt-agents
Provides tools for reviewing, querying, testing, and safely fixing dbt projects and their warehouses, with dbt as the only permitted path for writing warehouse relations in explicitly allowlisted datasets.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dbt-agentsinspect my dbt project and list any failing tests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dbt-agents
dbt-agents is an open-source, local-first toolkit for reviewing, querying,
testing, and safely fixing dbt projects and their warehouses with AI agents.
The initial warehouse implementation targets BigQuery, while the core contracts are designed for additional adapters. The primary interfaces are an MCP server for ChatGPT/Codex and a CLI for local use and GitHub Actions.
The same policy-enforced core powers:
a Model Context Protocol server for ChatGPT and Codex;
a local CLI for inspection and diagnostics; and
deterministic automation suitable for GitHub Actions.
Direct warehouse queries are read-only. dbt is the only tool path permitted to write warehouse relations, and only in explicitly allowlisted dbt datasets.
Quick start
python3 -m venv .venv
.venv/bin/pip install -e '.[all,dev]'
cp examples/keylo.dbt-agents.yml dbt-agents.yml
.venv/bin/dbt-agents check-config --config dbt-agents.yml
.venv/bin/dbt-agents project keylo --config dbt-agents.ymlSee Getting started for authentication, Codex, and ChatGPT setup. The architecture and acceptance criteria are in the design specification.
Project-scoped tools use the configured dbt-agents alias (for example,
keylo), not the warehouse project ID. Use the read-only project_list MCP
tool or dbt-agents projects CLI command to discover valid aliases. See the
project discovery specification.
For a repository that has not yet been configured, use the initial CLI-first project onboarding and readiness flow. It discovers a dbt project's configuration contract, collects operator-confirmed non-secret values, validates from offline checks through optional bounded warehouse access, and only then registers an MCP project alias.
Before approving dbt execution, run the offline and live readiness checks in Operational readiness. The same guide covers non-mutating IAM verification, the validation ladder, and trusted release publishing.
Related MCP server: bigquery-mcp
Safety model
strict repository roots and writable-path allowlists;
protected credential and environment files;
SHA-guarded atomic file replacement;
SQL AST validation, one-statement enforcement, dry runs, byte budgets, row limits, and IAM read-only query credentials;
exact short-lived plans plus out-of-band local approval for writes;
separate query and dbt-runner identities;
fixed dbt and Git command builders with no arbitrary shell tool; and
sanitized, owner-only JSONL audit events without file bodies or query results.
The initial warehouse provider is BigQuery. Provider contracts are intentionally small so other adapters can implement the same safety semantics.
Compatibility
The public names, safety defaults, and v1 support boundary are frozen in the v1 contract and ADR-0001. Additive changes remain possible; breaking configuration or MCP changes require a new contract version and migration guide.
v1 supports Python 3.11–3.13, dbt Core 1.10–1.11, BigQuery, macOS/Linux local
execution, and GitHub.com publishing through git and gh.
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
AI agents need permission before production SQL writes. Pilot $100 · Gateway $299. Lint≠authorize.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to explore BigQuery datasets and tables, run safe read-only queries, and optionally perform vector search using BigQuery embeddings.10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and analyze Google BigQuery data, including schema browsing, running queries, and comparing datasets through natural language.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to analyze BigQuery datasets through MCP, using tools to inspect datasets and execute read-only SQL queries.-
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to query governed data warehouses through plain language, returning grounded answers with SQL, confidence grades, and signed receipts while enforcing access, testing, and audit controls.174 PyPI15Apache 2.0