Dbt Docs MCP logo

Dbt Docs MCP

by mattijsdp

Query dbt project metadata, node details, graph lineage, and column-level lineage through MCP.

Install Dbt Docs MCP

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for mattijsdp/dbt-docs-mcp, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The mattijsdp/dbt-docs-mcp MCP server connects MCP clients to dbt project metadata and dbt Docs artifacts such as manifest.json and catalog.json. It provides search over nodes, columns, and compiled SQL, plus node inspection and upstream or downstream lineage queries. Optional preprocessing creates files needed for column-level lineage from a dbt manifest and catalog. Reach for it when an agent needs to understand an open-source dbt Core project rather than dbt Cloud.

Use cases

  • Search dbt models by name or column
  • Inspect model attributes and compiled SQL
  • Trace upstream and downstream model dependencies
  • Follow column-level data lineage
  • Explore dbt project metadata in an MCP client

Key features

  • Search dbt nodes, columns, and compiled SQL
  • Inspect dbt node attributes
  • Query direct upstream and downstream dependencies
  • Trace column ancestors and descendants
  • Read manifest.json and catalog.json metadata

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

13/16 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars23Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Dbt Docs MCP works

What mattijsdp/dbt-docs-mcp MCP server does

The mattijsdp/dbt-docs-mcp MCP server exposes dbt project metadata through the Model Context Protocol. It reads dbt Docs artifacts, including manifest.json and catalog.json, and presents graph and node information as tools that an MCP-compatible client can call.

It is intended for dbt Core projects. The available metadata covers models, sources, tests, node attributes, compiled SQL, dependencies, and column relationships. It does not execute SQL or provide direct database metadata access; those are listed as possible future extensions rather than current capabilities.

How it works

The server uses the dbt manifest and catalog as input data. Agents can search node names, column names, or compiled SQL to locate relevant parts of a project. After finding a node, they can request its attributes or inspect its direct predecessors and successors in the dbt graph.

Column-level lineage uses additional generated files. The repository includes scripts/create_manifest_cl.py, which combines a dbt manifest and catalog to produce a schema mapping and a column-lineage manifest. These outputs support tracing the upstream sources of a model column and the downstream models or columns that depend on it.

Setup and configuration

The mattijsdp/dbt-docs-mcp MCP server requires Python and uv. Clone the repository, enter its directory, and install the project environment with uv sync when preparing column-level lineage. Run the supplied preprocessing script with paths for the manifest, catalog, schema mapping output, and column-lineage output.

An MCP client configuration starts the server with uv run, the listed Python dependencies, and the mcp run command pointing to src/mcp_server.py. Configuration passes paths through MANIFEST_PATH, SCHEMA_MAPPING_PATH, and MANIFEST_CL_PATH. The example is suitable for clients that support an mcp.json configuration, including Claude Desktop and Cursor.

Column-lineage generation depends on project size and may take hours for a large dbt project. The basic metadata and graph features still depend on having the relevant dbt artifact files available.

Tools and capabilities

Available operations include:

  • Searching node names with search_dbt_node_names.
  • Finding nodes by column name with search_dbt_column_names.
  • Searching compiled node SQL with search_dbt_sql_code.
  • Retrieving node details with get_dbt_node_attributes.
  • Listing direct upstream dependencies with get_dbt_predecessors.
  • Listing direct downstream dependents with get_dbt_successors.
  • Tracing column ancestors with get_column_ancestors.
  • Tracing column descendants with get_column_descendants.

Limitations and notes

The mattijsdp/dbt-docs-mcp MCP server focuses on reading dbt metadata and lineage artifacts. Column-level lineage requires the separate preprocessing step and its generated files, and processing time can be substantial for larger projects.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dbt Docs MCP

mattijsdp/dbt-docs-mcp is an MCP server that connects MCP clients to dbt Core project metadata and dbt Docs artifacts, including manifest.json and catalog.json. Its main tools search nodes, columns, and compiled SQL; inspect node attributes; and query model or column-level upstream and downstream lineage.

Install Python and uv, clone the repository, and use uv sync when preparing the optional column-lineage environment. Configure an MCP client to run the server with uv, the listed dependencies, and mcp run targeting src/mcp_server.py.

Generate the required lineage files with scripts/create_manifest_cl.py. Provide paths to your dbt manifest and catalog, plus output paths for the schema mapping and column-lineage files; then configure those outputs with SCHEMA_MAPPING_PATH and MANIFEST_CL_PATH.

Yes, Cursor is named as a supported use case for the mcp.json configuration. Point its MCP server entry to the uv command, required dependencies, server script, and the paths for the dbt metadata files.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDbt Docs MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mattijsdp-dbt-docs-mcp?style=directory)](https://allmcps.com/mcp/mattijsdp-dbt-docs-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mattijsdp-dbt-docs-mcp"><img src="https://allmcps.com/api/badge/mattijsdp-dbt-docs-mcp?style=directory" alt="Dbt Docs MCP on AllMCPs" /></a>