Dbt Core MCP: AI Assistance for Dbt Projects
Dbt Core MCP, developed by Niclasolofsson, is a server tool for dbt Core (OSS) users. It operates as an MCP server, connecting to existing dbt projects by calling the local dbt CLI and reading the dbt manifest. This Python 3.9+ application is distributed via PyPI and as binary releases for Windows, macOS, and Linux. It enables AI assistants to interact directly with dbt environments, supporting various development and debugging activities without requiring external API keys.
What does Dbt Core MCP connect to?
Dbt Core MCP connects directly to existing dbt projects, specifically designed for dbt Core (OSS) users. It operates by calling the user's local dbt CLI, ensuring compatibility with their specific dbt version, adapter, and Python setup, including uv, poetry, venv, or conda. The server utilizes the user's existing warehouse connection and reads their dbt manifest to access project metadata. This approach means it integrates with the user's configured profiles.yml without needing separate credentials.
Core features and tools
The Dbt Core MCP server exposes several tools for AI assistants. These include querying dbt project metadata and configuration, and retrieving detailed model and source information with full manifest metadata. AI can also execute SQL queries with Jinja templating support, such as {{ ref() }} and {{ source() }}. Further capabilities involve inspecting models, sources, and tests, accessing dbt documentation and lineage, and running dbt tests with state-based selection modes like select_state_modified and select_state_modified_plus_downstream.
Who is it for?
Dbt Core MCP is for dbt Core (OSS) users and developers who want AI assistance for their dbt projects. It supports those seeking to integrate AI tools like Copilot, Claude desktop, Cursor, and Augment Code into their dbt workflows. The server is particularly useful for teams aiming to automate aspects of dbt development, testing, and debugging using AI. Skip this if you do not use dbt Core or do not intend to integrate AI assistants with your dbt environment.
How to get started
Access is granted through the user's local dbt environment, so no third-party API keys or accounts are required. The server detects and uses the user's exact dbt version, adapter, and Python setup. While not explicitly stated, its function as an MCP server implies network communication, and other dbt MCP servers are noted to use HTTP connections.
Use cases
- AI-powered pair programming: AI assistants can execute dbt commands, run tests, analyze impact, and provide lineage information directly within conversation flows.
- Schema change detection: Automatically identifies column changes and recommends necessary downstream updates for data models.
- Data model exploration and debugging: AI can query dbt project metadata, inspect models, sources, and tests, and access documentation and lineage for efficient understanding and troubleshooting.
Dbt Core MCP provides a bridge for AI assistants to interact with dbt Core projects. It integrates with existing dbt environments, allowing AI to perform tasks from querying metadata to running tests and analyzing lineage. This tool enhances dbt development by bringing AI capabilities directly into the workflow. Try using it with Copilot to execute dbt commands or analyze schema changes within your dbt project.





