# Dbt

> Dbt is an open-source MCP server for databases. dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres). It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/us-all/dbt-mcp-server
- **MCP Registry name:** io.github.us-all/dbt
- **Categories:** databases
- **Listing updated:** 2026-11-13

## About

dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)

## Install

### Claude Code (Terminal)

```sh
claude mcp add dbt --env DBT_PROJECT_DIR='<DBT_PROJECT_DIR>' --env PG_CONNECTION_STRING='<PG_CONNECTION_STRING>' -- npx -y @us-all/dbt-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<DBT_PROJECT_DIR>",
        "PG_CONNECTION_STRING": "<PG_CONNECTION_STRING>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<DBT_PROJECT_DIR>",
        "PG_CONNECTION_STRING": "<PG_CONNECTION_STRING>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dbt": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<DBT_PROJECT_DIR>",
        "PG_CONNECTION_STRING": "<PG_CONNECTION_STRING>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<DBT_PROJECT_DIR>",
        "PG_CONNECTION_STRING": "<PG_CONNECTION_STRING>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/dbt-mcp"
      ],
      "env": {
        "DBT_PROJECT_DIR": "<DBT_PROJECT_DIR>",
        "PG_CONNECTION_STRING": "<PG_CONNECTION_STRING>"
      }
    }
  }
}
```

## FAQ

### Is Dbt free?

Yes. Dbt is open source, so you can use and self-host it for free.

### How do I add Dbt to Claude Code?

Run this command in your terminal: claude mcp add dbt --env DBT_PROJECT_DIR='<DBT_PROJECT_DIR>' --env PG_CONNECTION_STRING='<PG_CONNECTION_STRING>' -- npx -y @us-all/dbt-mcp

### What are the best alternatives to Dbt?

The closest alternatives to Dbt are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

## Alternatives

- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [PlatypusDB](https://ai-powered.com/mcp/platypusdb): PlatypusDB is an open-source MCP server for databases.
- [Lorebase](https://ai-powered.com/mcp/lorebase): Lorebase is an open-source MCP server for knowledge and memory.
- [Sovaria](https://ai-powered.com/mcp/sovaria): Sovaria is a freemium MCP server for databases.
- [model2data studio](https://ai-powered.com/mcp/model2data-studio): model2data studio is a freemium MCP server for databases.
- [semlayer](https://ai-powered.com/mcp/semlayer): semlayer is a free MCP server for databases.
- [bricksentry](https://ai-powered.com/mcp/bricksentry): bricksentry is an open-source MCP server for databases.
- [MCP Toolbox for Databases](https://ai-powered.com/mcp/mcp-toolbox-for-databases-2): MCP Toolbox for Databases is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/dbt
