dbt for LangChain
io.github.us-all/dbt
dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)
client:LangChain
transport:stdio
runtime:npm
Install dbt in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"dbt": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@us-all/dbt-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs