Install guide · Cursor
Install dbt for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "us-all-dbt-mcp-server": { "command": "npx", "args": [ "-y", "@us-all/dbt-mcp@1.0.7" ], "env": { "DBT_PROJECT_DIR": "", "DBT_TARGET_DIR": "", "DBT_RUN_HISTORY_DIR": "", "DQ_BACKEND": "", "DQ_RESULTS_TABLE": "", "DQ_SCORE_TABLE": "", "GOOGLE_APPLICATION_CREDENTIALS": "", "BQ_PROJECT_ID": "", "PG_CONNECTION_STRING": "YOUR_PG_CONNECTION_STRING", "DBT_ALLOW_WRITE": "false", "DQ_SCHEMA": "generic", "DQ_COL_RUN_AT": "", "DQ_COL_CHECK_TYPE": "", "DQ_COL_STATUS": "", "DQ_COL_DATASET": "", "DQ_COL_TABLE_NAME": "", "DQ_COL_SEVERITY": "", "DQ_COL_FAILURE_COUNT": "", "DQ_COL_MESSAGE": "", "DQ_COL_CHECK_NAME": "", "DQ_COL_SCORE_DATE": "", "DQ_COL_SCOPE": "", "DQ_COL_TIER": "", "DQ_TIER1_TARGET_PCT": "", "DBT_SLA_CONFIG_PATH": "", "DBT_TOOLS": "", "DBT_DISABLE": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |