Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Dbt doctor

MCP server by Astoriel Verified · gh:astoriel

dbt-doctor is an MCP server that audits dbt projects, profiles warehouse data, detects schema drift, and writes documentation to schema.yml. It is for data teams who want to check dbt project health from an AI assistant.

  • Score 73
  • 102 stars
  • MIT
  • Updated

Install Dbt doctor

Built from the published package, never by AI.

claude mcp add dbt-doctor -- uvx dbt-doctor

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Dbt doctor in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the dbt-doctor block.

About

dbt-doctor is a Model Context Protocol server for dbt projects. It gives an AI assistant context about project health, so users can ask questions in natural language instead of running CLI commands and reading the output. The tools score a project from 0 to 100% based on documentation, testing, and naming conventions. They also rank models by test coverage, profile column statistics in a single batched SQL query per table, and compare warehouse columns with the definitions in manifest.json.

The server can turn profiling results into suggested dbt tests. It updates schema.yml with ruamel.yaml so that comments, existing tests, and formatting are kept, and it shows a difference preview before writing. The project is in active alpha. It is aimed at dbt users and analytics engineers who use Claude Desktop or Cursor. The source says it complements the official dbt-labs/dbt-mcp, which focuses on running dbt commands.

Written from the project's README and checked against it.

Tools it gives your assistant

  • audit_projectReturns a project health score and naming convention violations.
  • check_test_coverageRanks models by their test coverage percentage.
  • get_project_healthGives a single-call dashboard summarizing project status.
  • get_model_detailsShows model information including SQL, columns, lineage, and tests.
  • profile_modelReturns batched column statistics for a model.
  • execute_queryRuns read-only SQL against your data warehouse.
  • detect_schema_driftCompares database columns against manifest definitions.
  • suggest_testsTurns profile data into dbt test recommendations.
  • update_model_yamlSafely merges documentation and tests into schema.yml.
  • generate_model_docsRuns the full workflow: profile, suggest tests, preview, and write.

What you need

  • Python, for installation with pip
  • A dbt project with target/manifest.json (run dbt compile first)
  • Access to a data warehouse for profiling and drift detection
  • An MCP-compatible AI assistant such as Claude Desktop or Cursor

Try asking

  • What's the overall health of my dbt project?
  • Profile the fct_orders model and suggest appropriate tests.
  • Auto-document the models that have the lowest test coverage.

Good to know

  • Active alpha, with a snapshot dated 2025-12-25.
  • Requires target/manifest.json, so dbt compile must be run first.
  • execute_query runs in a read-only transaction.
  • Focuses on auditing, profiling, and documentation, not running dbt commands.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Dbt doctor

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Dbt doctor: common questions

Is dbt-doctor read-only?

The source says execute_query runs in a read-only transaction and that write processes are restricted at the database connector level. Schema.yml changes are made by the documentation tools after a difference preview.

Will dbt-doctor overwrite my schema.yml comments?

The source says it uses ruamel.yaml to retain hand-written comments, existing tests, and formatting. It only appends missing information.

How is dbt-doctor different from dbt-labs/dbt-mcp?

According to the source, dbt-labs/dbt-mcp focuses on running dbt commands, while dbt-doctor focuses on auditing, profiling, and documentation.

How do I install Dbt doctor?

In Claude Code run claude mcp add dbt-doctor -- uvx dbt-doctor. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Dbt doctor the official server?

Dbt doctor is published by gh:astoriel from its verified domain in the official MCP Registry.

Is Dbt doctor free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Dbt doctor safe to use?

It scores 73 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Dbt doctor?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Dbt doctor work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Dbt doctor Install

Add to stack

Loading.