Dbt MCP
MCP server by dbt-labs Verified · gh:dbt-labs
Gives AI agents context about dbt projects in dbt Core, dbt Fusion, and dbt Platform. It exposes tools for SQL, the Semantic Layer, discovery, jobs, and dbt documentation.
Install Dbt MCP
Built from the published package, never by AI.
claude mcp add dbt-mcp -- uvx dbt-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"dbt-mcp": {
"args": [
"dbt-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"dbt-mcp": {
"args": [
"dbt-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"dbt-mcp": {
"args": [
"dbt-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add dbt-mcp -- uvx dbt-mcp{
"mcpServers": {
"dbt-mcp": {
"args": [
"dbt-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add dbt-mcp uvx dbt-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the dbt-mcp block.
About
The dbt MCP server gives AI agents context about a dbt project. It works with dbt Core, dbt Fusion, and dbt Platform. Its tools cover SQL execution, the Semantic Layer, the Discovery API, dbt CLI commands, the Admin API, code generation, column-level lineage, and search of the dbt product docs.
Agents such as Claude or Cursor can connect to the server, and the project also publishes an experimental MCP Bundle for MCPB-aware clients. The source warns that dbt CLI tools could modify data models, sources, and warehouse objects, so it advises using them only with trusted clients. The server is aimed at teams that build with dbt and want AI assistants to work with their models, metrics, and jobs.
Written from the project's README and checked against it.
Tools it gives your assistant
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_healthGets run status, test results, and upstream source freshness for a model.get_lineageGets a bounded lineage graph with type, depth, and direction filtering.get_node_detailsGets full details for any dbt resource type, such as models or sources.list_jobsLists jobs in a dbt Platform account, with optional project or environment filter.trigger_job_runTriggers a job run, with an option to override git branch, schema, or other settings.buildExecutes models, tests, snapshots, and seeds in DAG order.search_product_docsSearches docs.getdbt.com for pages matching a query.
What you need
- A dbt Core, dbt Fusion, or dbt Platform project
- An MCP-aware AI client, such as Claude or Cursor
Try asking
- Use execute_sql to show the top 10 customers by revenue this quarter
- Use get_model_health to check whether my orders model is healthy
- Use search_product_docs to find pages about incremental models
Good to know
- The dbt CLI tools can modify data models, sources, and warehouse objects.
- The MCP Bundle is experimental.
- The search tool is in Alpha and not generally available.
- Some tools are deprecated in favor of get_node_details or get_lineage.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Dbt MCP
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Dbt MCP: common questions
Which dbt products does the dbt MCP server work with?
The source says it works with dbt Core, dbt Fusion, and dbt Platform.
Can the dbt MCP server change my data?
Yes, the source says the dbt CLI tools could modify data models, sources, and warehouse objects, so it advises proceeding only if you trust the client.
Where can I ask questions or give feedback?
The source says to create a GitHub Issue or join the community Slack in the #tools-dbt-mcp channel.
How do I install Dbt MCP?
In Claude Code run claude mcp add dbt-mcp -- uvx dbt-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Dbt MCP the official server?
Dbt MCP is published by gh:dbt-labs from its verified domain in the official MCP Registry.
Is Dbt MCP free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Dbt MCP safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Dbt MCP?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Dbt MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
