# dbt-lineage

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 24 repo stars
- Author: sipemu
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sipemu/dbt-lineage-viewer
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/dbt-lineage

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

## Install

### Claude Code (native platform)

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

## When to use it
- 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
- Show the models that depend on `orders`.
- Trace the upstream lineage of `customer_id` in `fct_orders`.
- Suggest tests for the `stg_payments` model.

## Similar
- [creating-mermaid-dbt-dag](https://affpapa.org/en/nevibecode/skills/creating-mermaid-dbt-dag.md) — skill · 534 installs
- [dbt-transformation-patterns](https://affpapa.org/en/nevibecode/skills/dbt-transformation-patterns.md) — skill · 11000 installs
- [dbt-sf-to-bq-translator](https://affpapa.org/en/nevibecode/skills/dbt-sf-to-bq-translator.md) — skill · 2300 installs
- [snowflake-dbt-airbnb-analytics](https://affpapa.org/en/nevibecode/skills/snowflake-dbt-airbnb-analytics.md) — skill · 1700 installs
- [adding-dbt-unit-test](https://affpapa.org/en/nevibecode/skills/adding-dbt-unit-test.md) — skill · 1200 installs
- [dbt-data-transformation](https://affpapa.org/en/nevibecode/skills/dbt-data-transformation.md) — skill · 443 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
