r/DataBuildTool • • 10h ago

Show and tell dbt-bouncer — an open-source linter & guardrail tool for dbt projects (with presets, baselines, and an MCP server)

Post image
8 Upvotes

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 baseline support: 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 studio UI: Explore and configure your rules visually.
  • Beyond metadata checks: Supports run_results.json cost guardrails (e.g., max gigabytes billed on BigQuery), dynamic_table and materialized_view checks, 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

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!