{"id":21111,"library":"dbt-metabase","title":"dbt-metabase","description":"A dbt package that synchronizes dbt models and exposures with Metabase, automatically creating and updating Metabase models, metrics, and dashboards. Current version 1.7.4, requires Python >=3.10. Released about monthly.","status":"active","version":"1.7.4","language":"python","source_language":"en","source_url":"https://github.com/gouline/dbt-metabase","tags":["dbt","metabase","bi","data","integration","exposures","synchronization"],"install":[{"cmd":"pip install dbt-metabase","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Required for dbt compilation and manifest parsing","package":"dbt-core","optional":false}],"imports":[{"note":"Primary class for configuring Metabase sync","symbol":"MetabaseSetup","correct":"from dbt_metabase import MetabaseSetup"}],"quickstart":{"code":"from dbt_metabase import MetabaseSetup\n\nsetup = MetabaseSetup(\n    metabase_url=os.environ.get('MB_URL', 'http://localhost:3000'),\n    metabase_username=os.environ.get('MB_USER', 'admin@example.com'),\n    metabase_password=os.environ.get('MB_PASSWORD', 'password'),\n    dbt_project_dir='./my_dbt_project',\n    metabase_database_id=1\n)\nexposures = setup.sync(\n    include_tags=['metabase'],\n    exclude_models=['stg_*']\n)","lang":"python","description":"Syncs dbt models and exposures to Metabase using default settings."},"warnings":[{"fix":"Upgrade your Python runtime to 3.10 or later.","message":"v1.7.0 upgraded to Python >=3.10; drop Python 3.9 support.","severity":"breaking","affected_versions":">=1.7.0"},{"fix":"Provide the correct Metabase database ID via `metabase_database_id` or set it in the profile.","message":"The `metabase_database_id` parameter is required unless Metabase has only one database with matching name.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure your dbt models use the new config.meta syntax (https://docs.getdbt.com/reference/resource-configs/meta).","message":"v1.6.0 deprecated the old `meta` structure; dbt 1.10+ moved meta to config block.","severity":"deprecated","affected_versions":">=1.6.0"},{"fix":"Check your Python version with `python --version` and upgrade if needed.","message":"v1.7.0 removed support for Python 3.9; older Python versions may fail with import errors.","severity":"breaking","affected_versions":">=1.7.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Add `metabase_database_id=<your_db_id>` to the MetabaseSetup constructor.","cause":"Missing required parameter when Metabase has multiple databases.","error":"KeyError: 'metabase_database_id'"},{"fix":"Run `pip install --upgrade dbt-metabase` and import using `from dbt_metabase import MetabaseSetup`.","cause":"Using an outdated version or wrong import path.","error":"ImportError: cannot import name 'MetabaseSetup' from 'dbt_metabase'"},{"fix":"Start Metabase or update `metabase_url` to point to the correct server.","cause":"Metabase server is not running or URL is misconfigured.","error":"urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=3000)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}