
dbt-mcp
by dbt-labs·★ 562·综合分 53
一个全面的 dbt Core、Fusion 和平台 MCP 服务器,提供 SQL、语义层和 dbt CLI 工具。
概述
dbt MCP 服务器是 dbt Labs 开发的一个生产就绪的 MCP 服务器实现,使 AI 代理能够通过模型上下文协议与 dbt 项目交互。它在多个类别中提供广泛的功能,包括 SQL 执行、语义层操作、dbt CLI 命令和文档管理。该服务器提供模型发现、血统分析、指标查询甚至代码生成工具,使数据团队能够通过 AI 增强其 dbt 工作流程。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果你正在使用 dbt 项目,并希望 AI 代理能够理解你的数据模型结构、在数据仓库中执行 SQL 或通过自然语言管理 dbt 操作,请选择 dbt MCP。
什么时候不要选它
如果你不使用 dbt 或需要超出 dbt CLI 提供的写入权限,请不要选择它 - 它专为分析性读取和 dbt 特定操作设计,而不是通用数据库管理。
此 server 暴露的工具
从 README 抽取出 12 个工具execute_sqlExecutes SQL on dbt Platform infrastructure with Semantic Layer support.
text_to_sqlGenerates SQL from natural language using project context.
query_metricsExecutes metric queries with filtering and grouping options.
get_model_detailsGets model details including compiled SQL, columns, and schema.
get_lineageGets full lineage graph with type and depth filtering.
runExecutes models to materialize them in the database.
generate_model_yamlGenerates model YAML with columns, option to inherit upstream descriptions.
fusion.compile_sqlCompiles SQL in project context via dbt Platform.
search_product_docsSearches docs.getdbt.com for pages matching a query.
get_job_detailsGets job configuration including triggers, schedule, and dbt commands.
list_metricsRetrieves all defined metrics.
get_model_healthGets health signals: run status, test results, and upstream source freshness.
可对比工具
安装
安装
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.mcpbFAQ
- dbt MCP 服务器是什么?
- dbt MCP 服务器是一种模型上下文协议实现,为 AI 代理提供与 dbt 项目交互的工具,包括 SQL 执行、语义层操作和 dbt CLI 命令。
- 此服务器支持哪些 dbt 产品?
- 该服务器支持 dbt Core、dbt Fusion 和 dbt Platform,根据您的特定 dbt 设置和访问级别,提供不同的功能。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by duck · 2025-04-21
dbt-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。