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.
Install Dbt doctor
Built from the published package, never by AI.
claude mcp add dbt-doctor -- uvx dbt-doctorRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"dbt-doctor": {
"args": [
"dbt-doctor"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"dbt-doctor": {
"args": [
"dbt-doctor"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"dbt-doctor": {
"args": [
"dbt-doctor"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add dbt-doctor -- uvx dbt-doctor{
"mcpServers": {
"dbt-doctor": {
"args": [
"dbt-doctor"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add dbt-doctor uvx dbt-doctorGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
