Provides dbt CLI operations including running, testing, compiling, and building models, along with project discovery, metadata analysis, and lineage exploration for dbt Core data transformation projects.
Enables direct SQL execution against DuckDB warehouses, allowing for database querying and interaction with DuckDB analytical databases.
Modern Data Stack with Meltano, DuckDB, and dbt Core
A production-ready data stack implementation combining Meltano for ELT orchestration, DuckDB for high-performance analytics, and dbt Core for data transformations.
Architecture Overview
Data Flow:
- Extract: Meltano's
tap-csv
reads sample employee data - Load:
target-duckdb
loads raw data into DuckDB - Transform: dbt models create staging views and analytics tables
- Validate: Data quality tests ensure integrity
Tool Versions (Latest Compatible)
- Meltano 3.8.0 - DataOps platform for ELT pipelines
- DuckDB 1.3.2 - High-performance in-process analytics database
- dbt Core 1.10.4 - Data transformation framework
- dbt-duckdb 1.9.4 - DuckDB adapter for dbt
Quick Start
1. Environment Setup
2. Run Complete Pipeline
3. Verify Results
Project Structure
Data Models
Staging Layer
stg_employees
: Clean, typed employee data from raw CSV
Analytics Layer
dim_employees
: Employee dimension with salary tiers (Junior/Mid-Level/Senior)agg_department_stats
: Department-level aggregations (count, avg/min/max salary, total payroll)
Data Quality Tests
- Unique constraints: Employee IDs must be unique
- Not null constraints: Employee IDs cannot be null
Usage Examples
Add New Data Sources
Create New dbt Models
Development Workflow
Configuration
Meltano Configuration
- Extractor:
tap-csv
configured fordata/sample_data.csv
- Loader:
target-duckdb
configured fordata/warehouse/data_stack.duckdb
- Environments: dev, staging, prod
dbt Configuration
- Profile:
data_stack
with project-contained profiles - Target: DuckDB database in
data/warehouse/
- Materializations: Views for staging, tables for marts
Troubleshooting
Common Issues
"Table does not exist" errors:
- Ensure Meltano ELT step completed successfully
- Check
data/warehouse/data_stack.duckdb
exists
dbt profile errors:
- Verify you're in the
transform/
directory - Use
DBT_PROFILES_DIR=./profiles/duckdb
flag
Python dependency conflicts:
- Use fresh virtual environment
- Ensure Python 3.13+ compatibility
Validation Commands
Next Steps
- Add More Data Sources: Integrate APIs, databases, or files using Meltano's extensive extractor library
- Expand Transformations: Create more sophisticated dbt models for advanced analytics
- Add Orchestration: Integrate with Airflow, Prefect, or other orchestration tools
- Enable Monitoring: Add data quality monitoring and alerting
- Scale Storage: Migrate to cloud data warehouses (Snowflake, BigQuery, etc.)
MCP Integration
NEW: Claude Code MCP server for intelligent dbt assistance!
Capabilities:
- dbt CLI Operations:
dbt_run
,dbt_test
,dbt_compile
,dbt_build
- Project Discovery: Model listing, metadata analysis, lineage exploration
- Database Querying: Direct SQL execution against DuckDB warehouse
- Real-time Assistance: Context-aware dbt project support
Documentation:
- 🚀 Quick Start Guide - 5-minute setup
- 📚 API Reference - Complete tool documentation
- 💡 Usage Examples - Practical workflows
- 🔧 Integration Guide - Detailed configuration
Status: ✅ Production Ready + MCP Enhanced
This data stack has been systematically implemented and validated through comprehensive testing. All components are using the latest compatible versions and following best practices. Enhanced with Claude Code MCP integration for intelligent development assistance.
This server cannot be installed
Provides intelligent dbt assistance through Claude Code integration, enabling users to perform dbt CLI operations, explore project metadata, and execute SQL queries against DuckDB warehouse with context-aware support.
Related MCP Servers
- -securityAlicense-qualityConnects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.Last updated -272PythonMozilla Public License 2.0
- -securityAlicense-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -37PythonMIT License
- -securityAlicense-qualityA server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.Last updated -10TypeScriptMIT License
- AsecurityFlicenseAqualityProvides GDB debugging functionality for use with Claude or other AI assistants, allowing users to manage debugging sessions, set breakpoints, examine variables, and execute GDB commands through natural language.Last updated -1625138JavaScript