Skip to content
MCP server

dbt-docs-mcp

MCP server that lets AI clients search and trace dbt project lineage and metadata

dbt-docs-mcp is an open-source MCP server for data quality. It is available on CLI and Self-hosted.

Pricing
Open source
Platforms
CLI, Self-hosted
What it can do
Read-only
GitHub stars
23
Last commit
Language
Python

Similar MCP servers

About dbt-docs-mcp

Gives AI assistants read access to a dbt project's manifest and catalog artifacts, so they can look up models, sources, tests and their attributes without opening the dbt Docs site. Nodes can be found by name, by column name, or by a fragment of their compiled SQL.

Lineage is covered at two levels. Direct upstream and downstream dependencies can be followed node by node, and column-level ancestors and descendants can be traced once a helper script has pre-computed a column lineage file from the manifest and catalog. That precomputation can take a long time on large projects.

The server is aimed at analytics engineers and data teams who want an assistant to answer questions about where a table or column comes from and what depends on it. It runs locally over stdio and is configured by pointing environment variables at the artifact files.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, all 8 tools only read data.

From the server's own tool labels and tool names; not verified by us.

search_dbt_node_namesName suggests: reads
Find nodes such as models, sources and tests by name.
search_dbt_column_namesName suggests: reads
Locate nodes based on column names.
search_dbt_sql_codeName suggests: reads
Search within the compiled SQL code of nodes.
get_dbt_node_attributesName suggests: reads
Retrieve detailed attributes for a node unique ID.
get_dbt_predecessorsName suggests: reads
Find direct upstream dependencies of a node.
get_dbt_successorsName suggests: reads
Find direct downstream dependents of a node.
get_column_ancestorsName suggests: reads
Trace upstream sources for a specific column in a model.
get_column_descendantsName suggests: reads
Trace downstream dependents of a specific column in a model.

What it does

Node name search
Finds models, sources, tests and other dbt nodes by their name.
Column name search
Locates the nodes that contain a given column.
Compiled SQL search
Searches inside the compiled SQL code of dbt nodes.
Direct lineage traversal
Lists the immediate predecessors and successors of any node.
Column-level lineage
Traces upstream sources and downstream dependents of a specific model column.
Node attribute lookup
Returns detailed attributes for a node by its unique ID.

Good for

  • Asking an AI assistant which upstream sources feed a given dbt model
  • Finding every model that uses a particular column before renaming it
  • Checking what downstream models would break if a source table changes
  • Locating models whose compiled SQL references a specific function or table

Pricing

Open source

Free and open source under the MIT license.

dbt-docs-mcp FAQ

What inputs does the server need?

It reads a dbt manifest.json and catalog.json, and for column-level lineage a generated column lineage file, all supplied as file paths in the environment configuration.

How is column-level lineage prepared?

A provided script takes the manifest, catalog and output paths and builds the column lineage file. On large dbt projects this can take hours.

Does dbt-docs-mcp query the warehouse directly?

The current tools work from dbt artifacts only. Tools for executing SQL and reading database metadata are listed as suggested extensions, not as existing features.

Is dbt-docs-mcp free?

Yes. dbt-docs-mcp is open source, so you can use and self-host it for free.

What are the best alternatives to dbt-docs-mcp?

The closest alternatives to dbt-docs-mcp are dbt-mcp, dbt-lineage, Dbt and MCP Datahub.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers