# dbt-docs-mcp

> dbt-docs-mcp is an open-source MCP server for data quality. MCP server that lets AI clients search and trace dbt project lineage and metadata. It is available on CLI and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/mattijsdp/dbt-docs-mcp
- **GitHub stars:** 23
- **License:** MIT
- **Categories:** [data quality](https://ai-powered.com/categories/data-quality)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_names` (name suggests: reads): Find nodes such as models, sources and tests by name.
- `search_dbt_column_names` (name suggests: reads): Locate nodes based on column names.
- `search_dbt_sql_code` (name suggests: reads): Search within the compiled SQL code of nodes.
- `get_dbt_node_attributes` (name suggests: reads): Retrieve detailed attributes for a node unique ID.
- `get_dbt_predecessors` (name suggests: reads): Find direct upstream dependencies of a node.
- `get_dbt_successors` (name suggests: reads): Find direct downstream dependents of a node.
- `get_column_ancestors` (name suggests: reads): Trace upstream sources for a specific column in a model.
- `get_column_descendants` (name suggests: reads): Trace downstream dependents of a specific column in a model.

## 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.

## Alternatives

- [dbt-mcp](https://ai-powered.com/mcp/dbt-mcp): dbt-mcp is an open-source MCP server for databases.
- [dbt-lineage](https://ai-powered.com/mcp/dbt-lineage): dbt-lineage is an MCP server for analytics and data.
- [Dbt](https://ai-powered.com/mcp/dbt): Dbt is an open-source MCP server for databases.
- [MCP Datahub](https://ai-powered.com/mcp/mcp-datahub): MCP Datahub is an open-source MCP server for data quality.

---
Source: https://ai-powered.com/mcp/dbt-docs-mcp
