Skip to main content
MCP server CX Codex

dbt-lineage — Claude Code MCP server: dbt analysis

The dbt-lineage MCP server for Claude Code maps dbt model and column dependencies and assesses the effects of changes. An agent can inspect affected models and suggest tests.

MIT ★ 24 updated 2026-11-16

Open on GitHub

What dbt-lineage does

dbt-lineage parses a dbt SQL project and gives an agent tools to inspect lineage and change impact. Start the stdio server with dbt-lineage mcp; its tools cover model search, SQL reading, dependency analysis, and test proposals.

Project analysis does not require a warehouse or dbt compile. The server can also read manifest.json for column metadata, materializations, and a fuller graph. Without the manifest, it builds the graph by parsing SQL directly.

What it helps with

  • find models downstream of a changed model
  • trace the upstream sources of a column
  • assess the effect of a model change
  • suggest tests for a model

Example prompts for the agent

  • Show the models that depend on orders.
  • Trace the upstream lineage of customer_id in fct_orders.
  • Suggest tests for the stg_payments model.

How to install dbt-lineage

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about dbt-lineage

How do I install dbt-lineage in Claude Code?

Start the MCP server with dbt-lineage mcp. It runs over stdio for agent access.

What does dbt-lineage do?

It exposes dbt model and column lineage, change-impact analysis, and test proposals to an agent.

What does dbt-lineage need to work?

Project analysis needs neither a data warehouse nor dbt compile. You can add manifest.json for column metadata and materializations.

Similar MCP servers

All MCP servers for Data and databases →

Project sponsors

Companies that keep this analytics open