---
updatedAt: 2026-06-18T00:36:52.000Z
agentTools:
  projectIndex: https://docs.getmontecarlo.com/llms.txt
---

# MC Bridge (public preview)

Local server that connects SQL Notebooks to your data warehouse.

> 📘 In preview
>
> This feature is in preview. See [Integration & Feature Lifecycles](https://docs.getmontecarlo.com/docs/integration-feature-lifecycles) documentation for more information on what this means.

# Overview

MC Bridge is a lightweight local server that securely bridges the Monte Carlo frontend to your data warehouse. It runs on your machine and proxies SQL queries from [SQL Notebooks](https://docs.getmontecarlo.com/docs/sql-notebooks) to your warehouse connections, enabling interactive query execution directly in the browser.

> :memo: MC Bridge must be running for SQL Notebook queries to execute. If the bridge is not detected, notebooks will show a connection error.

## Requirements

* **macOS, Windows, or Linux**
* **Python 3.10+**
* **uv** package manager ([install uv](https://docs.astral.sh/uv/getting-started/installation/))

## Installation

Install and run MC Bridge using `uvx`. Choose the extras for your warehouse:

<Tabs>
<Tab title="macOS / Linux">
```bash
# Snowflake
uvx --from "mc-bridge[snowflake] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server

# BigQuery
uvx --from "mc-bridge[bigquery] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server

# Redshift
uvx --from "mc-bridge[redshift] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server
```
</Tab>
<Tab title="Windows (PowerShell)">
```powershell
# Snowflake
uvx --from "mc-bridge[snowflake] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server

# BigQuery
uvx --from "mc-bridge[bigquery] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server

# Redshift
uvx --from "mc-bridge[redshift] @ git+https://github.com/monte-carlo-data/mc-bridge.git" mc-bridge-server
```
</Tab>
</Tabs>

This downloads and runs the latest version of MC Bridge with the appropriate warehouse driver. No manual cloning or `pip install` required.

## Configuration

### dbt Profiles (Automatic)

If you have a dbt `profiles.yml`, MC Bridge automatically imports your warehouse connections on startup. No additional flags are needed.

### Manual Configuration

If you don't use dbt, create a configuration file with your connector details:

* **macOS / Linux**: `~/.mc-bridge/config.yaml`
* **Windows**: `%USERPROFILE%\.mc-bridge\config.yaml`

```yaml
connectors:
  # Snowflake — browser SSO (default)
  my-snowflake:
    type: snowflake
    account: myaccount.us-east-1
    user: user@company.com
    warehouse: COMPUTE_WH
    database: MY_DB           # optional
    schema: PUBLIC            # optional
    role: MY_ROLE             # optional
    # method: externalbrowser # default — opens browser for SSO
    # method: password        # requires: password
    # method: keypair         # requires: private_key_path (or private_key)

  # BigQuery — Application Default Credentials
  my-bigquery:
    type: bigquery
    project: my-gcp-project
    dataset: my_dataset       # optional
    location: US              # optional
    # method: oauth           # default — uses gcloud auth application-default login
    # method: service-account # requires: keyfile

  # Redshift — password auth
  my-redshift:
    type: redshift
    host: my-cluster.us-east-1.redshift.amazonaws.com
    user: admin
    database: mydb
    password: mypassword
    schema: public            # optional
    # method: database        # default — user/password
    # method: iam             # uses AWS credential chain
```

## Running

Start MC Bridge using the same `uvx` command from [Installation](#installation). On successful startup, you'll see output like:

```
MC Bridge is running at https://localhost:8765
```

MC Bridge serves over **HTTPS** on `localhost:8765`. On first run, it generates a local SSL certificate and prompts to trust the certificate authority (see [Troubleshooting](#troubleshooting) for platform-specific details).

> :memo: Keep the MC Bridge terminal running while using SQL Notebooks. Closing the terminal stops the bridge and disconnects notebooks from your warehouse.

## Supported Warehouses

* **Snowflake** — username/password and browser-based (externalbrowser) authentication
* **BigQuery** — application default credentials or service account key
* **Redshift** — username/password authentication

## Troubleshooting

* **"Bridge not connected" in notebooks**: Ensure MC Bridge is running in a terminal window and that `https://localhost:8765` is accessible
* **Certificate errors**: On first run, MC Bridge installs a local CA certificate. Allow the system trust store update when prompted:
  * **macOS**: System password prompt to add cert to login keychain
  * **Windows**: UAC prompt to add cert via `certutil` (may require admin)
  * **Linux**: Manual installation required — MC Bridge prints instructions to copy the CA cert to your system's trust store (e.g., `/usr/local/share/ca-certificates/`)
* **dbt profile import fails**: Ensure your `profiles.yml` is valid and the target profile exists. MC Bridge supports the same connection fields as dbt