MCP Catalogs
Homedbt-doctor screenshot

dbt-doctor

by Astoriel·134·Score 48

AI-driven quality & governance MCP server for dbt projects, offering auditing, profiling, drift detection, and documentation generation.

developer-toolsdatabaseai-llm
7
Forks
2
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

dbt-doctor is a specialized MCP server designed to enhance dbt project management through AI-assisted quality control and governance. It provides deep context about dbt project health, allowing users to interact with AI assistants for tasks like auditing coverage, profiling data models, detecting schema drift, and auto-generating documentation. The server operates as a complement to the official dbt-labs/dbt-mcp, focusing on analytics rather than command execution. The server's architecture consists of a read-only analysis layer that connects the AI assistant with dbt projects and data warehouses, combined with a secure generation toolkit that seamlessly merges changes into existing YAML schemas. It emphasizes security through read-only SQL execution, strict SQL validation, stateless connections, and preview-before-commit mechanisms for document generation, ensuring users maintain full control over their dbt configurations.

Try asking AI

After installing, here are 3 things you can ask your AI assistant:

you:Audit dbt project health with a 0-100% score based on documentation, testing, and naming conventions
you:Profile data models to generate column statistics and intelligent test suggestions
you:Automatically update schema.yml files with suggested tests and documentation

When to choose this

Choose this when you want AI-powered dbt project health auditing, data profiling, and auto-documentation without leaving your AI assistant interface.

When NOT to choose this

Don't choose this if you need direct write access to your database or if you prefer traditional CLI-based dbt workflow without AI integration.

Tools this server exposes

12 tools extracted from the README
  • list_models

    Overview of all models and their coverage status

  • get_model_details

    Detailed model information including SQL, columns, lineage, and tests

  • audit_project

    Project health score and naming convention violations

  • check_test_coverage

    Models ranked by their test coverage percentage

  • analyze_dag

    Detection of orphan models and high fan-out nodes

  • get_project_health

    Single-call dashboard summarizing project status

  • profile_model

    Batched column statistics for a model

  • execute_query

    Read-only SQL execution against your warehouse

  • detect_schema_drift

    Comparison of database columns against manifest definitions

  • suggest_tests

    Translation of profile data into dbt test recommendations

  • update_model_yaml

    Safe merging of documentation and tests to schema.yml

  • generate_model_docs

    Complete end-to-end documentation workflow

Comparable tools

dbt-labs/dbt-mcpdbt-project-evaluatordbt-coverage

Installation

Install dbt-doctor via pip:

pip install dbt-doctor

For Claude Desktop, add to your claude_desktop_config.json:

{
  "mcpServers": {
    "dbt-doctor": {
      "command": "dbt-doctor",
      "args": ["--project-dir", "/absolute/path/to/your/dbt/project"]
    }
  }
}

For Cursor, add to your .cursor/mcp.json:

{
  "mcpServers": {
    "dbt-doctor": {
      "command": "dbt-doctor",
      "args": ["--project-dir", "/absolute/path/to/your/dbt/project"]
    }
  }
}

Prerequisite: Run dbt compile prior to usage to ensure target/manifest.json is available.

Compare dbt-doctor with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.