Back to Home
NiclasOlofsson icon

dbt-core-mcp

Verified Safe

by NiclasOlofsson

Overview

A Model Context Protocol (MCP) server that empowers AI assistants (like Copilot) to interact with and manage dbt projects. It enables natural language control over dbt operations, providing project metadata, lineage, impact analysis, SQL query execution, and intelligent build/test workflows, all while respecting the user's local dbt environment.

Installation

Run Command
uvx dbt-core-mcp

Environment Variables

  • EXPERIMENTAL_FEATURES
  • DBT_PROFILES_DIR
  • DBT_TARGET

Security Notes

The server executes user-provided dbt commands via `dbt.invoke()` within a Python subprocess running a dynamically generated script. While it does not introduce new, direct arbitrary code execution vectors outside of dbt's capabilities, it acts as a command executor for AI agents. The security posture heavily depends on the underlying dbt project's configuration and dependencies. Maliciously crafted dbt inputs (e.g., specific model names, SQL, or Jinja macros) could potentially lead to privilege escalation if dbt itself or its adapters are vulnerable or misconfigured (e.g., by allowing shell command execution within dbt macros). Network requests are made to the Databricks API for warehouse pre-warming if configured, using credentials from the user's `profiles.yml`.

Similar Servers

Stats

Interest Score37
Security Score6
Cost ClassMedium
Avg Tokens750
Stars6
Forks3
Last Update2026-01-18

Tags

dbtanalytics engineeringdata transformationAI agentModel Context ProtocolPythonSQLdata qualitydata lineage