MCP Catalogs
首页dbt-mcp screenshot

dbt-mcp

by dbt-labs·562·综合分 53

一个全面的 dbt Core、Fusion 和平台 MCP 服务器,提供 SQL、语义层和 dbt CLI 工具。

databasedeveloper-toolsai-llm
120
Forks
32
活跃 Issue
本月
最近提交
2 天前
收录于

概述

dbt MCP 服务器是 dbt Labs 开发的一个生产就绪的 MCP 服务器实现,使 AI 代理能够通过模型上下文协议与 dbt 项目交互。它在多个类别中提供广泛的功能,包括 SQL 执行、语义层操作、dbt CLI 命令和文档管理。该服务器提供模型发现、血统分析、指标查询甚至代码生成工具,使数据团队能够通过 AI 增强其 dbt 工作流程。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:dbt 项目中 AI 驱动的数据分析和 SQL 生成
:自动化 dbt 项目文档和模型血统分析
:将 dbt 与 AI 代理集成以实现自动化数据建模和测试
:dbt MCP 服务器是什么?
:此服务器支持哪些 dbt 产品?

什么时候选它

如果你正在使用 dbt 项目,并希望 AI 代理能够理解你的数据模型结构、在数据仓库中执行 SQL 或通过自然语言管理 dbt 操作,请选择 dbt MCP。

什么时候不要选它

如果你不使用 dbt 或需要超出 dbt CLI 提供的写入权限,请不要选择它 - 它专为分析性读取和 dbt 特定操作设计,而不是通用数据库管理。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • execute_sql

    Executes SQL on dbt Platform infrastructure with Semantic Layer support.

  • text_to_sql

    Generates SQL from natural language using project context.

  • query_metrics

    Executes metric queries with filtering and grouping options.

  • get_model_details

    Gets model details including compiled SQL, columns, and schema.

  • get_lineage

    Gets full lineage graph with type and depth filtering.

  • run

    Executes models to materialize them in the database.

  • generate_model_yaml

    Generates model YAML with columns, option to inherit upstream descriptions.

  • fusion.compile_sql

    Compiles SQL in project context via dbt Platform.

  • search_product_docs

    Searches docs.getdbt.com for pages matching a query.

  • get_job_details

    Gets job configuration including triggers, schedule, and dbt commands.

  • list_metrics

    Retrieves all defined metrics.

  • get_model_health

    Gets health signals: run status, test results, and upstream source freshness.

可对比工具

sql-mcppostgresql-mcpdbt-core

安装

安装

Claude Desktop

添加到您的 Claude Desktop 配置中:

{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": ["@dbt-labs/dbt-mcp"],
      "env": {
        "DBT_PROJECT_DIR": "/path/to/your/dbt/project"
      }
    }
  }
}

其他 MCP 客户端

使用最新版本资源中提供的实验性 MCP 包 (dbt-mcp.mcpb)。遵循 [mcpb CLI](https://github.com/modelcontextprotocol/mcpb) 文档安装或检查包。

npm install -g @modelcontextprotocol/mcpb
mcpb install https://github.com/dbt-labs/dbt-mcp/releases/download/vX.X.X/dbt-mcp.mcpb

FAQ

dbt MCP 服务器是什么?
dbt MCP 服务器是一种模型上下文协议实现,为 AI 代理提供与 dbt 项目交互的工具,包括 SQL 执行、语义层操作和 dbt CLI 命令。
此服务器支持哪些 dbt 产品?
该服务器支持 dbt Core、dbt Fusion 和 dbt Platform,根据您的特定 dbt 设置和访问级别,提供不同的功能。

Hacker News 讨论

开发者社区最近的相关讨论。

dbt-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。