dbt CLI MCP ServerServer

MammothGrowth
GitHub
DBTCLIMCP

Loading subscription status...

💡 Description

This is a Model Context Protocol (MCP) server that wraps the dbt CLI tools, allowing AI coding agents to interact with dbt projects through standardized MCP tools.

📝 JSON Entries

{
  "mcpServers": [
    {
      "dbt": {
        "env": {
          "DBT_PATH": "/absolute/path/to/dbt",
          "ENV_FILE": ".env"
        },
        "args": [
          "--directory",
          "/path/to/dbt-cli-mcp",
          "run",
          "src/server.py"
        ],
        "command": "uv"
      }
    }
  ]
}

🛠️ Tools

dbt_rundbt_testdbt_lsdbt_compiledbt_debugdbt_depsdbt_seeddbt_show

Features

  • Execute dbt commands through MCP tools
  • Support for all major dbt operations like run, test, compile
  • Command-line interface for direct interaction with dbt projects
  • Environment variable management for dbt projects

💬 Example Queries

  • Run dbt models with a specified project directory
  • List dbt resources in the project
  • Run dbt tests on the project