dbt
dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)
Documentation & Preview
{ "mcpServers": { "mcp-dbt-9b0f83e82a57ea50683f": { "command": "npx", "args": [ "-y", "--package", "@us-all/dbt-mcp@1.0.7", "dbt-mcp" ], "env": { "DBT_PROJECT_DIR": "${ENV_DBT_PROJECT_DIR}", "DBT_TARGET_DIR": "${ENV_DBT_TARGET_DIR}", "DBT_RUN_HISTORY_DIR": "${ENV_DBT_RUN_HISTORY_DIR}", "DQ_BACKEND": "${ENV_DQ_BACKEND}", "DQ_RESULTS_TABLE": "${ENV_DQ_RESULTS_TABLE}", "DQ_SCORE_TABLE": "${ENV_DQ_SCORE_TABLE}", "GOOGLE_APPLICATION_CREDENTIALS": "${ENV_GOOGLE_APPLICATION_CREDENTIALS}", "BQ_PROJECT_ID": "${ENV_BQ_PROJECT_ID}", "PG_CONNECTION_STRING": "${ENV_PG_CONNECTION_STRING}", "DBT_ALLOW_WRITE": "${ENV_DBT_ALLOW_WRITE}", "DQ_SCHEMA": "${ENV_DQ_SCHEMA}", "DQ_COL_RUN_AT": "${ENV_DQ_COL_RUN_AT}", "DQ_COL_CHECK_TYPE": "${ENV_DQ_COL_CHECK_TYPE}", "DQ_COL_STATUS": "${ENV_DQ_COL_STATUS}", "DQ_COL_DATASET": "${ENV_DQ_COL_DATASET}", "DQ_COL_TABLE_NAME": "${ENV_DQ_COL_TABLE_NAME}", "DQ_COL_SEVERITY": "${ENV_DQ_COL_SEVERITY}", "DQ_COL_FAILURE_COUNT": "${ENV_DQ_COL_FAILURE_COUNT}", "DQ_COL_MESSAGE": "${ENV_DQ_COL_MESSAGE}", "DQ_COL_CHECK_NAME": "${ENV_DQ_COL_CHECK_NAME}", "DQ_COL_SCORE_DATE": "${ENV_DQ_COL_SCORE_DATE}", "DQ_COL_SCOPE": "${ENV_DQ_COL_SCOPE}", "DQ_COL_TIER": "${ENV_DQ_COL_TIER}", "DQ_TIER1_TARGET_PCT": "${ENV_DQ_TIER1_TARGET_PCT}", "DBT_SLA_CONFIG_PATH": "${ENV_DBT_SLA_CONFIG_PATH}", "DBT_TOOLS": "${ENV_DBT_TOOLS}", "DBT_DISABLE": "${ENV_DBT_DISABLE}" } } }, "setup": { "fields": [ { "id": "ENV_DBT_PROJECT_DIR", "label": "DBT_PROJECT_DIR", "description": "Path to dbt project root (where dbt_project.yml lives).", "required": true, "secret": false, "default": "" }, { "id": "ENV_DBT_TARGET_DIR", "label": "DBT_TARGET_DIR", "description": "dbt target dir for manifest.json/run_results.json (default: $DBT_PROJECT_DIR/target).", "required": false, "secret": false, "default": "" }, { "id": "ENV_DBT_RUN_HISTORY_DIR", "label": "DBT_RUN_HISTORY_DIR", "description": "Optional dir for archived run_results.json history (glob-scanned).", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_BACKEND", "label": "DQ_BACKEND", "description": "DQ result table backend: 'bigquery' (default) or 'postgres'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_RESULTS_TABLE", "label": "DQ_RESULTS_TABLE", "description": "Fully qualified DQ checks table, e.g. 'project.data_ops.quality_checks'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_SCORE_TABLE", "label": "DQ_SCORE_TABLE", "description": "Fully qualified DQ score-daily table, e.g. 'project.data_ops.quality_score_daily'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GOOGLE_APPLICATION_CREDENTIALS", "label": "GOOGLE_APPLICATION_CREDENTIALS", "description": "Service account key path for BigQuery (ADC fallback supported).", "required": false, "secret": false, "default": "" }, { "id": "ENV_BQ_PROJECT_ID", "label": "BQ_PROJECT_ID", "description": "Explicit BigQuery project ID for DQ queries.", "required": false, "secret": false, "default": "" }, { "id": "ENV_PG_CONNECTION_STRING", "label": "PG_CONNECTION_STRING", "description": "Postgres connection string when DQ_BACKEND=postgres.", "required": false, "secret": true, "default": "" }, { "id": "ENV_DBT_ALLOW_WRITE", "label": "DBT_ALLOW_WRITE", "description": "Reserved for future write tools. Default read-only.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_DQ_SCHEMA", "label": "DQ_SCHEMA", "description": "DQ result-table schema preset: 'generic' (default) or 'us-all'. Use DQ_COL_* env vars to override individual columns on top of the preset.", "required": false, "secret": false, "default": "generic" }, { "id": "ENV_DQ_COL_RUN_AT", "label": "DQ_COL_RUN_AT", "description": "Override for the timestamp/date column on the DQ checks table. Default depends on DQ_SCHEMA preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_CHECK_TYPE", "label": "DQ_COL_CHECK_TYPE", "description": "Override for the check-type column on the DQ checks table. Default 'check_type'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_STATUS", "label": "DQ_COL_STATUS", "description": "Override for the status column on the DQ checks table. Default 'status'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_DATASET", "label": "DQ_COL_DATASET", "description": "Override for the dataset/source column on the DQ checks table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_TABLE_NAME", "label": "DQ_COL_TABLE_NAME", "description": "Override for the table/target-name column on the DQ checks table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_SEVERITY", "label": "DQ_COL_SEVERITY", "description": "Override for the severity/dimension column on the DQ checks table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_FAILURE_COUNT", "label": "DQ_COL_FAILURE_COUNT", "description": "Override for the numeric failure-count column on the DQ checks table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_MESSAGE", "label": "DQ_COL_MESSAGE", "description": "Override for the message column on the DQ checks table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_CHECK_NAME", "label": "DQ_COL_CHECK_NAME", "description": "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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_SCORE_DATE", "label": "DQ_COL_SCORE_DATE", "description": "Override for the date column on the DQ score-daily table. Default depends on preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_SCOPE", "label": "DQ_COL_SCOPE", "description": "Override for the scope column on the DQ score-daily table. Set to 'none'/'null'/'-' if the table has no per-scope rollup.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_COL_TIER", "label": "DQ_COL_TIER", "description": "Override for the tier column on the DQ score-daily table. Set to 'none'/'null'/'-' if the table has no tier dimension.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DQ_TIER1_TARGET_PCT", "label": "DQ_TIER1_TARGET_PCT", "description": "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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DBT_SLA_CONFIG_PATH", "label": "DBT_SLA_CONFIG_PATH", "description": "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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DBT_TOOLS", "label": "DBT_TOOLS", "description": "Comma-separated category allowlist (dbt,quality,meta).", "required": false, "secret": false, "default": "" }, { "id": "ENV_DBT_DISABLE", "label": "DBT_DISABLE", "description": "Comma-separated category disablelist.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.us-all/dbt", "registryVersion": "1.0.7", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.us-all%2Fdbt/versions/1.0.7", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@us-all/dbt-mcp", "version": "1.0.7", "integrity": "sha512-M4QST95DaUwAs6tFiiA4oMZ8gG5ExKo1GqSeVY96bXI6ZYtW2lE8Gme8q1eIFZeNO2wJvowDU5eFc2pdJ2KuYA==", "registryNameMatched": "io.github.us-all/dbt", "checkedAt": "2026-11-04T17:39:57.233Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }