r/DataBuildTool • u/mattcristal • 1d ago
Show and tell dbt-bouncer — an open-source linter & guardrail tool for dbt projects (with presets, baselines, and an MCP server)
Hey everyone,
I’m a contributor to dbt-bouncer (MIT-licensed, maintained under godatadriven / Xebia Data), and I wanted to share what it does today—especially for teams running open-source dbt-oss / dbt Core or dealing with a wave of AI-generated dbt models and YAML files.
What is dbt-bouncer?
It’s a fast, configurable Python linter that validates your dbt project’s conventions, metadata, and execution artifacts without needing a warehouse connection for metadata checks. It inspects manifest.json, catalog.json, run_results.json, and Information Schema layers.
Basically, if you’ve ever stitched together dbt-checkpoint, dbt-project-evaluator, and dbt-score—or wished you had deterministic guardrails that AI coding assistants can check before opening a PR—dbt-bouncer brings all of those checks into a single tool.
What it ships with today (v4.8.0)
- Zero-config presets (
minimal,standard**,**strict**):** Start enforcing best practices immediately without writing hundreds of lines of YAML upfront. - Legacy
baselinesupport: Working on an older repo with 500+ models? Snapshot your current technical debt as a baseline so CI only blocks new violations while you clean up old ones incrementally. - Built-in MCP server (
dbt-bouncer mcp): Connects directly to Claude Code, Cursor, and other AI coding agents so they can validate naming conventions, descriptions, and structure before you even review the PR. - Interactive
studioUI: Explore and configure your rules visually. - Beyond metadata checks: Supports
run_results.jsoncost guardrails (e.g., max gigabytes billed on BigQuery),dynamic_tableandmaterialized_viewchecks, Information Schema validation, and custom Python u/check decorators for company-specific rules. - CI-ready outputs & PR feedback: Native pre-commit hook support, automated GitHub PR comment updates, and 6 CI output formats (
csv,gitlab,json,junit,sarif,tap).
Quickstart
Bash
pip install dbt-bouncer
dbt parse
dbt-bouncer init # generates a starter config with presets
dbt-bouncer run- GitHub:https://github.com/godatadriven/dbt-bouncer
- Docs:https://godatadriven.github.io/dbt-bouncer/stable/
Would love to hear how you currently enforce dbt conventions in CI (or with AI coding tools), and what checks or integrations are missing from your workflow!
2
u/DudeYourBedsaCar 1d ago
We are using dbt bouncer in CICD and precommit to try to enforce standards amid the AI onslaught and it has been working pretty well! We have a lot of different contributors across the company, with plenty outside of the core team, and it has done a decent job at providing some guardrails. If anything, we need to put more checks in place.
Haven't tried the MCP, but AI has been pretty good at adjusting conventions on the fly once precommit fails or by following existing patterns.