Warehouse Graph MCP Server
Builds a metadata and lineage graph from dbt artifacts, enabling lineage-aware analysis and querying over dbt project metadata.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
warehouse-graph
Shared foundation for two linked projects:
warehouse-qa: a governed, lineage-aware "ask your warehouse" assistantpipeline-sentinel: a tiered incident agent for data pipelines
This package will build a metadata/lineage graph from dbt artifacts, compile one policies.yml to database access controls (Postgres RLS / Unity Catalog), and serve the graph over an MCP server.
Status: Phase 1 (demo warehouse). Done so far:
repo tooling and the LLM wrapper (cost ledger, cache, budget cap, Batch API)
Kiwi Retail Co., a deliberately messy synthetic warehouse: 40 dbt models, 13 metrics, 6 dashboards, 13 documented traps
Quick start
cp .env.example .env # add ANTHROPIC_API_KEY for real model calls
uv sync
make warehouse # Postgres + synthetic data + dbt build + artifacts (~1 min)
make demo # the same, then the Dagster UI at http://localhost:3000
make check # lint, format check, type-check, testsRelated MCP server: dagsmith
The demo warehouse: Kiwi Retail Co.
A fictional NZ/AU retailer: 12 stores (2 online), 9,000 customers, ~29k orders from Jan 2024 to Sep 2026, in NZD and AUD.
raw.* (11 tables, seeded generator)
└─ staging (11 views) ─ intermediate (9 views) ─ marts (20 tables)
├─ core: customers, products, stores, employees, orders, items, payments, refunds
├─ finance: fct_revenue_daily (canonical revenue), rpt_revenue_by_region
├─ marketing: campaigns, ad spend, campaign performance
├─ customers: churn, LTV, active customers
└─ legacy: orders_v1 (deprecated), rpt_regional_sales_legacy (fan-out)Piece | Where |
Generator and loader |
|
dbt project (models, tests, freshness, exposures, Semantic Layer metrics) |
|
Tribal knowledge attached to nodes |
|
Validated question → SQL examples |
|
Orchestration (nightly |
|
Artifacts for the graph |
|
Planted traps and their measured effects |
Docs
docs/design-decisions.md: decisions and whydocs/planted-traps.md: the 13 traps the evals are built arounddocs/parking-lot.md: ideas deliberately left out of v1
Licence
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
Define, ship & query your analytics tracking from one source of truth, trusted by humans and agents.
Cross-tool context for your data stack. Search, lineage, and impact across warehouse and BI tools.
Provenance-first database for teams and agents: every value carries sources, rules and coverage.
Related MCP Servers
- AlicenseBqualityCmaintenanceA read-only MCP server that exposes dbt project artifacts and data quality result tables (BigQuery/Postgres) to LLM clients, enabling deep introspection, run-history analysis, source freshness, test coverage, and lineage walks.2776 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing read-only Snowflake metadata tools (schemas, tables, queries, lineage) for agentic data pipeline generation, enabling natural-language-to-pipeline workflows with dbt, Airflow, and Great Expectations.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect dbt model semantics, retrieve contracts and lineage, and verify that edits do not change what models mean.Apache 2.0
- AlicenseAqualityCmaintenanceExposes a governed semantic layer to AI agents so they select metrics and dimensions from a closed, engineer-declared vocabulary instead of writing SQL. Validates every typed call against the contract, rejects out-of-contract requests with structured errors and suggestions, and returns query rows together with the compiled SQL and dbt lineage for auditing.4MIT