dbt-core
dbt Core MCP Server: Interact with dbt projects via Model Context Protocol
claude mcp add --transport stdio niclasolofsson-dbt-core-mcp uvx dbt-core-mcp
How to use
dbt-core-mcp provides a language-driven interface to your dbt projects without requiring you to install or manage a dbt-core installation locally. It adapts to your environment, detects your dbt version and adapter, and lets Copilot execute dbt commands, run tests, and analyze lineage and impact directly in your workspace. You can query project metadata, view models, sources, and tests, and ask for downstream impact or compilation details. The server supports natural language commands like running only changed models, testing downstream, or inspecting specific models or CTEs, and it returns concrete results rather than just suggestions. To get started, connect your MCP client to the dbt-core-mcp server as configured, then use prompts to trigger dbt runs, queries, and analyses against your actual environment and project structure.
How to install
Prerequisites:\n- Python 3.9+ installed on your system.\n- Access to a compatible MCP client (e.g., VS Code MCP extension).\n- Optional: uv (Python package) if you want to run the server via uvx.\n\nStep 1: Install uv (if not already installed)\nbash\npip install uv\n``\nStep 2: Install the MCP server (dbt-core-mcp) in your environment via uvx (preferred)\nbash\n# Ensure uv is installed, then install the server via uvx using the provided identifier\nuvx install dbt-core-mcp\n``\nStep 3: Configure your MCP client to point to the server\n- One-click installation routes in the README links configure uvx with an argument like: dbt-core-mcp\n- Or manually create your .vscode/mcp.json with the following (example):\njson\n{\n "servers": {\n "dbt-core": {\n "command": "uvx",\n "args": ["dbt-core-mcp"]\n }\n }\n}\n\nStep 4: (Optional) Update to latest features from GitHub\nbash\nuv cache clean dbt-core-mcp\n# Restart your MCP client to pick up changes\n
Additional notes
Tips and common issues:\n- The server does not require a local dbt-core installation; it executes dbt commands using your workspace's environment. Ensure your virtual environment and adapters (e.g., postgres, snowflake) are accessible from the runtime you are using.\n- If you encounter caching issues with git installations (uvx or pipx), use the provided cache-clean steps in the bleeding-edge configuration notes and restart the MCP client.\n- You can use command timeouts to limit long-running dbt commands; by default there is no timeout. In uvx, you can pass --dbt-command-timeout as shown in the optional configuration snippet.\n- The server supports any dbt adapter and works with your existing dbt setup; you can run only changed models, downstream tests, and inspect lineage or compiled SQL.\n- If you switch between environments (venv, poetry, conda), ensure the active Python and environment provide the correct dbt configuration and adapters for your project.
Related MCP Servers
mcp-language
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
ummon
The semantic layer for software engineering: Connect code to meaning, build on understanding
mode-manager
MCP Memory Agent Server - A VS Code chatmode and instruction manager with library integration
ava
Automatically share development progress to Slack through AI. MCP-powered task reporting with privacy-first design.
todo-txt
🔗 Model Context Protocol server for todo.txt files - Connect your todo.txt to AI assistants like Claude Desktop
classmcp
MCP server for AI-assisted CSS development. 77% token savings with semantic class patterns. Supports Tailwind, Bootstrap, UnoCSS, Tachyons.