Skip to main content
Glama
ajdoyl2

dbt MCP Server

by ajdoyl2
run_pipeline.shโ€ข1.91 kB
#!/bin/bash # Modern Data Stack Pipeline Orchestration Script # Meltano (ELT) โ†’ DuckDB โ†’ dbt Core (Transform) set -e # Exit on any error echo "๐Ÿš€ Starting Data Stack Pipeline..." echo "==================================" # Check if virtual environment exists if [ ! -d "venv" ]; then echo "โŒ Virtual environment not found. Please run setup first." exit 1 fi # Activate virtual environment source venv/bin/activate # Step 1: Extract and Load with Meltano echo "" echo "๐Ÿ“ฅ Step 1: Extracting and Loading Data with Meltano..." echo "--------------------------------------------------------" meltano run tap-csv target-duckdb if [ $? -eq 0 ]; then echo "โœ… Meltano ELT completed successfully" else echo "โŒ Meltano ELT failed" exit 1 fi # Step 2: Transform with dbt echo "" echo "๐Ÿ”„ Step 2: Transforming Data with dbt Core..." echo "----------------------------------------------" cd transform DBT_PROFILES_DIR=./profiles/duckdb dbt run --profile data_stack --project-dir . if [ $? -eq 0 ]; then echo "โœ… dbt transformations completed successfully" else echo "โŒ dbt transformations failed" exit 1 fi # Step 3: Run dbt tests echo "" echo "๐Ÿงช Step 3: Running Data Quality Tests..." echo "----------------------------------------" DBT_PROFILES_DIR=./profiles/duckdb dbt test --profile data_stack --project-dir . if [ $? -eq 0 ]; then echo "โœ… Data quality tests passed" else echo "โš ๏ธ Some data quality tests failed (check logs)" fi cd .. # Step 4: Generate Pipeline Report echo "" echo "๐Ÿ“Š Step 4: Generating Pipeline Report..." echo "----------------------------------------" python scripts/generate_report.py echo "" echo "โœ… Data Stack Pipeline Completed Successfully!" echo "==============================================" echo "๐Ÿ“Š Check data/warehouse/data_stack.duckdb for results" echo "๐Ÿ“„ Check output/ directory for reports"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajdoyl2/claude-data-stack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server