Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
DBT_PROJECT_DIR, DBT_TARGET_DIR, DBT_RUN_HISTORY_DIR, DQ_BACKEND, DQ_RESULTS_TABLE, DQ_SCORE_TABLE, GOOGLE_APPLICATION_CREDENTIALS, BQ_PROJECT_ID, PG_CONNECTION_STRING, DBT_ALLOW_WRITE, DQ_SCHEMA, DQ_COL_RUN_AT, DQ_COL_CHECK_TYPE, DQ_COL_STATUS, DQ_COL_DATASET, DQ_COL_TABLE_NAME, DQ_COL_SEVERITY, DQ_COL_FAILURE_COUNT, DQ_COL_MESSAGE, DQ_COL_CHECK_NAME, DQ_COL_SCORE_DATE, DQ_COL_SCOPE, DQ_COL_TIER, DQ_TIER1_TARGET_PCT, DBT_SLA_CONFIG_PATH, DBT_TOOLS, DBT_DISABLE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"dbt": {
"command": "npx",
"args": [
"-y",
"@us-all/dbt-mcp"
],
"env": {
"DBT_PROJECT_DIR": "your-value",
"DBT_TARGET_DIR": "your-value",
"DBT_RUN_HISTORY_DIR": "your-value",
"DQ_BACKEND": "your-value",
"DQ_RESULTS_TABLE": "your-value",
"DQ_SCORE_TABLE": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"BQ_PROJECT_ID": "your-value",
"PG_CONNECTION_STRING": "your-value",
"DBT_ALLOW_WRITE": "your-value",
"DQ_SCHEMA": "your-value",
"DQ_COL_RUN_AT": "your-value",
"DQ_COL_CHECK_TYPE": "your-value",
"DQ_COL_STATUS": "your-value",
"DQ_COL_DATASET": "your-value",
"DQ_COL_TABLE_NAME": "your-value",
"DQ_COL_SEVERITY": "your-value",
"DQ_COL_FAILURE_COUNT": "your-value",
"DQ_COL_MESSAGE": "your-value",
"DQ_COL_CHECK_NAME": "your-value",
"DQ_COL_SCORE_DATE": "your-value",
"DQ_COL_SCOPE": "your-value",
"DQ_COL_TIER": "your-value",
"DQ_TIER1_TARGET_PCT": "your-value",
"DBT_SLA_CONFIG_PATH": "your-value",
"DBT_TOOLS": "your-value",
"DBT_DISABLE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add dbt --env DBT_PROJECT_DIR=your-value --env DBT_TARGET_DIR=your-value --env DBT_RUN_HISTORY_DIR=your-value --env DQ_BACKEND=your-value --env DQ_RESULTS_TABLE=your-value --env DQ_SCORE_TABLE=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env BQ_PROJECT_ID=your-value --env PG_CONNECTION_STRING=your-value --env DBT_ALLOW_WRITE=your-value --env DQ_SCHEMA=your-value --env DQ_COL_RUN_AT=your-value --env DQ_COL_CHECK_TYPE=your-value --env DQ_COL_STATUS=your-value --env DQ_COL_DATASET=your-value --env DQ_COL_TABLE_NAME=your-value --env DQ_COL_SEVERITY=your-value --env DQ_COL_FAILURE_COUNT=your-value --env DQ_COL_MESSAGE=your-value --env DQ_COL_CHECK_NAME=your-value --env DQ_COL_SCORE_DATE=your-value --env DQ_COL_SCOPE=your-value --env DQ_COL_TIER=your-value --env DQ_TIER1_TARGET_PCT=your-value --env DBT_SLA_CONFIG_PATH=your-value --env DBT_TOOLS=your-value --env DBT_DISABLE=your-value -- npx -y @us-all/dbt-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"dbt": {
"command": "npx",
"args": [
"-y",
"@us-all/dbt-mcp"
],
"env": {
"DBT_PROJECT_DIR": "your-value",
"DBT_TARGET_DIR": "your-value",
"DBT_RUN_HISTORY_DIR": "your-value",
"DQ_BACKEND": "your-value",
"DQ_RESULTS_TABLE": "your-value",
"DQ_SCORE_TABLE": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"BQ_PROJECT_ID": "your-value",
"PG_CONNECTION_STRING": "your-value",
"DBT_ALLOW_WRITE": "your-value",
"DQ_SCHEMA": "your-value",
"DQ_COL_RUN_AT": "your-value",
"DQ_COL_CHECK_TYPE": "your-value",
"DQ_COL_STATUS": "your-value",
"DQ_COL_DATASET": "your-value",
"DQ_COL_TABLE_NAME": "your-value",
"DQ_COL_SEVERITY": "your-value",
"DQ_COL_FAILURE_COUNT": "your-value",
"DQ_COL_MESSAGE": "your-value",
"DQ_COL_CHECK_NAME": "your-value",
"DQ_COL_SCORE_DATE": "your-value",
"DQ_COL_SCOPE": "your-value",
"DQ_COL_TIER": "your-value",
"DQ_TIER1_TARGET_PCT": "your-value",
"DBT_SLA_CONFIG_PATH": "your-value",
"DBT_TOOLS": "your-value",
"DBT_DISABLE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"dbt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@us-all/dbt-mcp"
],
"env": {
"DBT_PROJECT_DIR": "your-value",
"DBT_TARGET_DIR": "your-value",
"DBT_RUN_HISTORY_DIR": "your-value",
"DQ_BACKEND": "your-value",
"DQ_RESULTS_TABLE": "your-value",
"DQ_SCORE_TABLE": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"BQ_PROJECT_ID": "your-value",
"PG_CONNECTION_STRING": "your-value",
"DBT_ALLOW_WRITE": "your-value",
"DQ_SCHEMA": "your-value",
"DQ_COL_RUN_AT": "your-value",
"DQ_COL_CHECK_TYPE": "your-value",
"DQ_COL_STATUS": "your-value",
"DQ_COL_DATASET": "your-value",
"DQ_COL_TABLE_NAME": "your-value",
"DQ_COL_SEVERITY": "your-value",
"DQ_COL_FAILURE_COUNT": "your-value",
"DQ_COL_MESSAGE": "your-value",
"DQ_COL_CHECK_NAME": "your-value",
"DQ_COL_SCORE_DATE": "your-value",
"DQ_COL_SCOPE": "your-value",
"DQ_COL_TIER": "your-value",
"DQ_TIER1_TARGET_PCT": "your-value",
"DBT_SLA_CONFIG_PATH": "your-value",
"DBT_TOOLS": "your-value",
"DBT_DISABLE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
DBT_TARGET_DIR envDBT_RUN_HISTORY_DIR envDQ_BACKEND envDQ_RESULTS_TABLE envDQ_SCORE_TABLE envGOOGLE_APPLICATION_CREDENTIALS envBQ_PROJECT_ID envDBT_ALLOW_WRITE envDQ_SCHEMA envDQ_COL_RUN_AT envDQ_COL_CHECK_TYPE envDQ_COL_STATUS envDQ_COL_DATASET envDQ_COL_TABLE_NAME envDQ_COL_SEVERITY envDQ_COL_FAILURE_COUNT envDQ_COL_MESSAGE envDQ_COL_CHECK_NAME envDQ_COL_SCORE_DATE envDQ_COL_SCOPE envDQ_COL_TIER envDQ_TIER1_TARGET_PCT envDBT_SLA_CONFIG_PATH envDBT_TOOLS envDBT_DISABLE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 us-all 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:DBT_PROJECT_DIR, PG_CONNECTION_STRING
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.7)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
dbt MCP server —
manifest.json,run_results.json,sources.json,catalog.json, plus DQ result tables (BigQuery / Postgres) behind one stdio MCP. Built on@us-all/mcp-toolkit.
A read-only window into your dbt project for LLM clients. No dbt run triggering — just deep introspection, run-history analysis, source freshness, per-column test coverage, lineage walks, and (if you have a custom DQ result table) historical check trends and Tier SLA status.
For DAG triggering / run history / log tails, install the companion [@us-all/airflow-mcp](https://www.npmjs.com/package/@us-all/airflow-mcp) alongside.
dbt, quality, meta) — 21 primitive tools + 5 aggregations + 1 metaextractFields response projection on high-volume reads# 1. add the MCP server
pnpm add -D @us-all/dbt-mcp
pnpm add -D @google-cloud/bigquery # OR pnpm add -D pg
DBT_PROJECT_DIR=/path/to/dbt-project \
DQ_RESULTS_TABLE=my-project.data_ops.quality_checks \ npx @us-all/dbt-mcp
The server speaks MCP stdio; wire it into Claude Desktop / Cursor / any MCP client. Set MCP_TRANSPORT=http to opt in to Streamable HTTP transport (Bearer auth, /health endpoint).
| Category | Tools | Purpose |
|---|---|---|
dbt | 15 + 3 aggregations | Parse manifest.json / run_results.json / sources.json / catalog.json |
quality | 6 + 2 aggregations | Query quality_checks and quality_score_daily (BQ or PG); per-tier rollup via dq-tier-by-source |
meta | 1 (always on) | search-tools for natural-language tool discovery |
Toggle with DBT_TOOLS=dbt (allowlist) or DBT_DISABLE=quality (denylist).
dbt (15 + 3)dbt-list-models, dbt-get-model, dbt-list-tests, dbt-get-test, dbt-list-sources, dbt-get-source, dbt-list-exposures, dbt-list-macros, dbt-get-macro, dbt-list-runs, dbt-get-run-results, dbt-failed-tests, dbt-slow-models, dbt-coverage, dbt-graph, freshness-status, incident-context, dbt-sla-status
quality (6 + 2)dq-list-checks, dq-get-check-history, dq-failed-checks-by-dataset, dq-score-trend, dq-tier-status, dq-tier-by-source, failed-tests-summary, dq-score-snapshot
| Prompt | Use when |
|---|---|
investigate-failed-tests | "What's broken in the last 24h?" |
freshness-degradation-triage | "Are any sources stale?" (Tier 1 focus optional) |
dq-trend-report | "Give me a stakeholder-friendly DQ trend report" |
incident-triage | "Triage " — bundles all signals |
| Env | Required | Notes |
|---|---|---|
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 |
DQ_RESULTS_TABLE | no | FQN of the checks table; required only for checks-based quality tools |
DQ_SCORE_TABLE | no | FQN of the score-daily table; required for score-only tools |
GOOGLE_APPLICATION_CREDENTIALS | no | For BigQuery backend (ADC fallback supported) |
BQ_PROJECT_ID | no | Explicit BQ project (otherwise inferred from ADC) |
PG_CONNECTION_STRING | no | When DQ_BACKEND=postgres (secret) |
DQ_SCHEMA | no | generic (default) or us-all — base schema preset for the quality category |
DQ_COL_* | no | Per-column overrides on top of DQ_SCHEMA (see below). Overrides must be simple SQL identifiers. |
DQ_TIER1_TARGET_PCT | no | Tier 1 SLA threshold for dq-tier-status when no tier column is configured (default 99.5). Superseded by DBT_SLA_CONFIG_PATH tier_sla.1 if both are set. |
DBT_SLA_CONFIG_PATH | no | Optional YAML path with tier_sla and dbt_sla blocks. Drives dq-tier-status thresholds and dq-tier-by-source per-tier targets. Mtime cached. |
DBT_ALLOW_WRITE | no | Reserved for future write tools (none currently) |
DBT_TOOLS / DBT_DISABLE | no | Category toggles |
The quality category supports two schema presets via DQ_SCHEMA:
DQ_SCHEMA=generic (default)Columns assumed on DQ_RESULTS_TABLE: run_at, check_name, check_type, dataset, table_name, status, severity, failure_count, message.
Columns assumed on DQ_SCORE_TABLE: score_date, scope, tier, completeness_pct, freshness_pct, validity_pct, anomaly_free_pct, overall_score.
dq-tier-status rolls up by Tier 1/2/3 against the per-scope rows.
DQ_SCHEMA=us-allReal schema used at us-all (Postgres data_ops database):
quality_checks: run_date, check_type, dimension, source, target_name, status, metric_value, threshold, details (JSONB).
quality_score_daily: run_date, completeness_pct, freshness_pct, validity_pct, anomaly_free_pct, overall_score, total_checks, failed_checks.
In this flavor quality_score_daily is one row per day (no per-scope rollup, no tier column). dq-tier-status falls back to comparing the day's overall_score against DQ_TIER1_TARGET_PCT (default 99.5).
dq-get-check-history requires checkName formatted as ' : ' since us-all has no native check_name column.
DQ_COL_*If your DQ tables don't match either preset, layer per-column overrides on top of DQ_SCHEMA. Any DQ_COL_* env var, when set, replaces the preset value for that single column. Unset vars keep the preset default.
Overrides are validated as simple SQL identifiers to avoid injecting raw SQL through environment variables. Table names in DQ_RESULTS_TABLE / DQ_SCORE_TABLE are also validated and quoted for the configured backend.
| Env var | Logical concept | Generic preset | us-all preset |
|---|---|---|---|
DQ_COL_RUN_AT | timestamp/date on the checks table | run_at | run_date |
DQ_COL_CHECK_TYPE | check type / dimension family | check_type | check_type |
DQ_COL_STATUS | pass/fail/warn/error | status | status |
DQ_COL_DATASET | dataset / source / schema | dataset | source |
DQ_COL_TABLE_NAME | table or target name | table_name | target_name |
DQ_COL_SEVERITY | severity / dimension | severity | dimension |
DQ_COL_FAILURE_COUNT | numeric failure count / metric | failure_count | metric_value |
DQ_COL_MESSAGE | free-text or JSON message | message | details::text |
DQ_COL_CHECK_NAME | natural identifier of the check | check_name | _(none)_ |
DQ_COL_SCORE_DATE | date column on the score table | score_date | run_date |
DQ_COL_SCOPE | scope/tenant column on score table | scope | _(none)_ |
DQ_COL_TIER | tier column on score table | tier | _(none)_ |
For the three nullable columns (DQ_COL_CHECK_NAME, DQ_COL_SCOPE, DQ_COL_TIER), set the value to none / null / - to declare "no native column":
check_name → the tools synthesize one from check_type || ':' || table_name. dq-get-check-history then expects checkName formatted as ' : '.scope → dq-score-trend's scope filter is ignored (with a caveat) and dq-tier-status switches to the single-overall_score path that compares against DQ_TIER1_TARGET_PCT.tier → same single-overall_score fallback.Example — generic preset against a Postgres schema where columns happen to be named differently:
DQ_SCHEMA=generic
DQ_COL_RUN_AT=checked_at DQ_COL_DATASET=schema_name DQ_COL_TABLE_NAME=tbl DQ_COL_FAILURE_COUNT=fail_n DQ_COL_CHECK_NAME=none # synthesize from check_type+tbl DQ_COL_SCOPE=none # no per-team rollup DQ_COL_TIER=none # use DQ_TIER1_TARGET_PCT instead
DBT_SLA_CONFIG_PATHSet DBT_SLA_CONFIG_PATH to a YAML file to surface project-defined tier targets and DBT SLAs to the quality tools. Schema (extra keys ignored):
dbt_sla:
test_pass_pct: 99.0 # consumed by dbt-sla-status (test pass rate threshold) freshness_pass_pct: 99.5 # consumed by dbt-sla-status (source freshness pass rate threshold)
tier_sla: 1: 99.5 # tier-1 overall_score / per-source pass-rate target 2: 99.0 3: 95.0
When set, the tier_sla map drives:
dq-tier-status — per-tier rollup compares each row's overall_score against the matching target. Without this file, hardcoded {1: 99.5, 2: 99.0, 3: 95.0} is used.dq-tier-by-source — per-source pass-rate is compared to the target for that source's tier (resolved from dbt sources.yml meta.tier).dq-tier-status no-tier-column path (us-all preset / DQ_COL_TIER=none) — uses tier_sla.1 as the single target. DQ_TIER1_TARGET_PCT env still works as a fallback when no SLA file is set.The dbt_sla block drives:
dbt-sla-status — computes test pass rate from latest run_results.json and freshness pass rate from sources.json, then compares each axis against dbt_sla.test_pass_pct / dbt_sla.freshness_pass_pct. Returns passPct, target, meeting per axis plus caveats when fields or artifacts are missing.The file is mtime-cached; edits between tool calls are picked up automatically.
quality_checks — dq-tier-by-sourceFor schemas where quality_score_daily has only one row per day (no per-scope/tier breakdown), dq-tier-by-source reconstructs a per-tier picture from the raw quality_checks rows. Two modes:
mode: "source" (default) — group by source/dataset columnUse when each row of quality_checks represents a check on a *source group* and the dataset/source column carries the dbt source-group name directly.
source_name -> tier map from the dbt manifest's sources. . .meta.tier (first table's tier per source group).quality_checks rows by the dataset/source column and computes pass rate per source over a date or sinceHours window.mode: "table" — group by table_name columnUse when the dataset/source column is a category (bq / dbt / airflow) and the actual dbt source-table identifier lives in the table_name / target_name column as . . Common in checks tables that consolidate signals from heterogeneous backends.
. -> tier map from the manifest using each source entry's source_name + name + meta.tier — picks up *table-level* tier overrides naturally.quality_checks rows by the table_name column. Pre-filter via sourceFilter (e.g. sourceFilter: "bq") when only some categories produce parseable target names. . ; rows without a . or whose key is not in the manifest land in caveats[].Untiered rows (no manifest meta.tier) and unparseable rows always appear in caveats[] so you can tier them or accept the gap.
caveats line will flag them.只显示了开头部分;其余内容请在仓库中阅读