D

Dbt

by us-all · io.github.us-all/dbt

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

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-us-all-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<VALUE>",
        "DBT_TARGET_DIR": "<VALUE>",
        "DBT_RUN_HISTORY_DIR": "<VALUE>",
        "DQ_BACKEND": "bigquery",
        "DQ_RESULTS_TABLE": "<VALUE>",
        "DQ_SCORE_TABLE": "<VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "BQ_PROJECT_ID": "<VALUE>",
        "PG_CONNECTION_STRING": "<YOUR_VALUE>",
        "DBT_ALLOW_WRITE": "false",
        "DQ_SCHEMA": "generic",
        "DQ_COL_RUN_AT": "<VALUE>",
        "DQ_COL_CHECK_TYPE": "<VALUE>",
        "DQ_COL_STATUS": "<VALUE>",
        "DQ_COL_DATASET": "<VALUE>",
        "DQ_COL_TABLE_NAME": "<VALUE>",
        "DQ_COL_SEVERITY": "<VALUE>",
        "DQ_COL_FAILURE_COUNT": "<VALUE>",
        "DQ_COL_MESSAGE": "<VALUE>",
        "DQ_COL_CHECK_NAME": "<VALUE>",
        "DQ_COL_SCORE_DATE": "<VALUE>",
        "DQ_COL_SCOPE": "<VALUE>",
        "DQ_COL_TIER": "<VALUE>",
        "DQ_TIER1_TARGET_PCT": "<VALUE>",
        "DBT_SLA_CONFIG_PATH": "<VALUE>",
        "DBT_TOOLS": "<VALUE>",
        "DBT_DISABLE": "<VALUE>",
        "MCP_TRANSPORT": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DBT_PROJECT_DIR Yes dbt project root (where dbt_project.yml lives)
DBT_TARGET_DIR No Defaults to $DBT_PROJECT_DIR/target
DBT_RUN_HISTORY_DIR No Optional dir for archived run_results.json history
DQ_BACKEND No bigquery (default) or postgres Default: bigquery
DQ_RESULTS_TABLE No FQN of the checks table (without it, quality category errors at call time)
DQ_SCORE_TABLE No FQN of the score-daily table
GOOGLE_APPLICATION_CREDENTIALS No For BigQuery backend (ADC fallback supported)
BQ_PROJECT_ID No Explicit BQ project (otherwise inferred from ADC)
PG_CONNECTION_STRING secret No When DQ_BACKEND=postgres (secret)
DBT_ALLOW_WRITE No Reserved for future write tools (none in v0.1) Default: false
DQ_SCHEMA No DQ result-table schema preset: 'generic' (default) or 'us-all'. Use DQ_COL_* env vars to override individual columns on top of the preset. Default: generic
DQ_COL_RUN_AT No Override for the timestamp/date column on the DQ checks table. Default depends on DQ_SCHEMA preset.
DQ_COL_CHECK_TYPE No Override for the check-type column on the DQ checks table. Default 'check_type'.
DQ_COL_STATUS No Override for the status column on the DQ checks table. Default 'status'.
DQ_COL_DATASET No Override for the dataset/source column on the DQ checks table. Default depends on preset.
DQ_COL_TABLE_NAME No Override for the table/target-name column on the DQ checks table. Default depends on preset.
DQ_COL_SEVERITY No Override for the severity/dimension column on the DQ checks table. Default depends on preset.
DQ_COL_FAILURE_COUNT No Override for the numeric failure-count column on the DQ checks table. Default depends on preset.
DQ_COL_MESSAGE No Override for the message column on the DQ checks table. Default depends on preset.
DQ_COL_CHECK_NAME No Override for the check_name column on the DQ checks table. Set to 'none'/'null'/'-' to synthesize check_name from check_type and table_name.
DQ_COL_SCORE_DATE No Override for the date column on the DQ score-daily table. Default depends on preset.
DQ_COL_SCOPE No Override for the scope column on the DQ score-daily table. Set to 'none'/'null'/'-' if the table has no per-scope rollup.
DQ_COL_TIER No Override for the tier column on the DQ score-daily table. Set to 'none'/'null'/'-' if the table has no tier dimension.
DQ_TIER1_TARGET_PCT No When no tier column is configured (us-all preset or DQ_COL_TIER=none), the overall_score threshold dq-tier-status compares against (default 99.5). Superseded by DBT_SLA_CONFIG_PATH tier_sla.1 if both are set.
DBT_SLA_CONFIG_PATH No Optional path to a YAML file that defines tier_sla (per-tier overall_score targets) and dbt_sla (test/freshness pass rates). When set, dq-tier-status and dq-tier-by-source read tier targets from this file, and dbt-sla-status compares run_results / sources pass rates against dbt_sla.test_pass_pct / freshness_pass_pct. Mtime cached.
DBT_TOOLS No Category allowlist, e.g. 'dbt'
DBT_DISABLE No Category denylist, e.g. 'quality'
MCP_TRANSPORT No Set to 'http' to opt in to Streamable HTTP transport

Similar servers