# LakehouseFlow: Dataset to Medallion Parquet, CDC & dbt Engine (`driftking-byte/apify-lakehouse-cdc-engine`) Actor

Transform web pages, APIs, or Apify Datasets into Zstd Medallion Parquet (Bronze/Silver/Gold), stateful SCD Type 2 CDC, MinHash deduplication, Schema Drift & Null-Spike Firewall with Dead-Letter Queue, PII masking, incremental RAG chunks, and Snowflake, Databricks DLT, DuckDB & dbt models.

- **URL**: https://apify.com/driftking-byte/apify-lakehouse-cdc-engine.md
- **Developed by:** [Sai Ashutosh Chellarapu](https://apify.com/driftking-byte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## LakehouseFlow: Web, API & Dataset to Medallion Parquet, CDC & dbt Engine

Transform any **Web URLs, XML Sitemaps, REST APIs, or upstream Apify Datasets** into a production-grade **Bronze / Silver / Gold Medallion Lakehouse** in a single run—complete with **Zstd Apache Parquet** files, **Stateful SCD Type 2 Change Data Capture (CDC)**, **64-Permutation MinHash Near-Duplicate Detection**, **Luhn-Validated PII Firewall**, **Schema Drift & Null-Spike Anomaly Firewall with Dead-Letter Queue (DLQ)**, **Incremental RAG Semantic Chunks**, and **ready-to-run Snowflake, Databricks DLT, DuckDB, and dbt code**.

***

### Why Data & AI Engineers Use LakehouseFlow

Standard web scrapers and API connectors dump raw, unvalidated JSON that breaks downstream pipelines whenever a website changes its DOM or repeats identical records every day. **LakehouseFlow** acts as a serverless **Medallion Data Engineering Engine** on Apify:

| Data Engineering Challenge | How LakehouseFlow Solves It |
| :--- | :--- |
| **Re-ingesting unchanged records wastes 90%+ warehouse & embedding costs** | **Stateful SHA-256 Change Data Capture (CDC)** compares incoming records against persistent state in Apify Named Key-Value Store (`INSERT`, `UPDATE`, `DELETE`, `UNCHANGED`) and tracks exact `_changed_columns`. |
| **Tracking historical price/attribute changes** | Full **SCD Type 2 History Table** (`silver_scd2_history.parquet`) with `_version_num`, `_valid_from`, `_valid_to`, and `_is_current`. |
| **Different URLs with identical content pollute analytics & RAG** | **64-Permutation Shingle MinHash** estimates Jaccard similarity to flag near-duplicate records (`_is_near_duplicate`, `_similarity_score`). |
| **Website DOM changes silently break downstream tables** | **Schema Drift & Null-Spike Firewall** detects added/removed columns, breaking type drift (`FLOAT64` $\rightarrow$ `VARCHAR`), and sudden null-rate spikes, routing invalid records to a **Dead-Letter Queue (`quarantine_dlq.parquet`)**. |
| **PII & API secrets leak into Silver/Gold storage** | **Heuristic + Regex + Luhn Checksum PII Firewall** masks `EMAIL`, `PHONE`, `SSN`, `CREDIT_CARD`, `IPV4`, and `API_SECRET` using deterministic salted SHA-256 tokens (`pii_sha256:...`) so SQL joins still work. |
| **JSON is slow and expensive to query** | Serializes **columnar Apache Parquet (`ZSTD`, `SNAPPY`, `GZIP`)** via `PyArrow` + an embedded **`lakehouse.sqlite`** catalog and **DuckDB** zero-copy views. |
| **Writing boilerplate warehouse & dbt code** | Auto-generates **Snowflake** (`COPY INTO` + `DYNAMIC TABLE`), **Databricks Delta Live Tables** (`cloudFiles` Autoloader + `dlt.apply_changes`), **DuckDB SQL**, and a full **dbt package** (`sources.yml`, incremental `stg_*.sql`, SCD2 `snp_*.sql`, `schema.yml`). |

***

### Medallion Architecture & Generated Artifacts

Every run writes the following artifacts to the **Default Key-Value Store** (and pushes Silver/CDC records to the **Default Dataset**):

1. **Columnar Apache Parquet Files (`ZSTD` compressed by default)**
   - `bronze_raw.parquet` — Lossless raw JSON payload, lineage metadata, and canonical SHA-256 hash.
   - `silver_current.parquet` — Latest active flattened, typed, and PII-sanitized entities.
   - `silver_scd2_history.parquet` — Full SCD Type 2 version history across runs (`_valid_from`, `_valid_to`, `_is_current`, `_version_num`).
   - `silver_cdc_delta.parquet` — Incremental stream containing only `INSERT`, `UPDATE`, and `DELETE` records.
   - `gold_rag_chunks.parquet` — Token-bounded semantic Markdown chunks generated **exclusively for `INSERT` and `UPDATE` records** (eliminating redundant vector re-embedding).
   - `quarantine_dlq.parquet` — Dead-Letter Queue records that violated required column or contract rules, annotated with `_violation_reasons`.
2. **Embedded Relational Catalog & Visual Dashboard**
   - `lakehouse.sqlite` — Ready-to-query SQLite database containing all Medallion tables.
   - `observability_report.html` — Interactive dark-mode **Data Engineering Observability Dashboard** (viewable with 1 click in the Apify Console).
   - `run_summary.json` & `schema_profile.json` — Complete telemetry, column statistics, and drift report.
3. **Multi-Warehouse Production Code**
   - `snowflake_pipeline.sql` — Parquet Stage, `COPY INTO`, SCD2 `UPDATE`/`INSERT`, and `CREATE DYNAMIC TABLE`.
   - `databricks_dlt_pipeline.py` — PySpark Delta Live Tables with `cloudFiles` Autoloader and `dlt.apply_changes()` SCD Type 2.
   - `duckdb_analytics.sql` — Zero-copy `read_parquet()` views and SCD2 time-travel queries.
   - `dbt_sources.yml`, `dbt_stg_<table>.sql`, `dbt_snp_<table>.sql`, `dbt_schema.yml` — Complete dbt Core models and data quality tests.

***

### 4 Ways to Use LakehouseFlow

#### Mode 1: Post-Process Any Apify Scraper (`sourceMode = "dataset"`)

Connect LakehouseFlow as an **Integration / Webhook** on *any* Apify scraper (e.g., Website Content Crawler, E-Commerce Scraper, Google Maps Scraper, Job Scraper):

```json
{
  "sourceMode": "dataset",
  "datasetId": "{{resource.defaultDatasetId}}",
  "tableName": "competitor_products",
  "primaryKey": ["url"],
  "cdcMode": "scd2_history",
  "detectDeletes": true,
  "parquetCompression": "zstd",
  "piiPolicy": "mask_sha256",
  "requiredColumns": ["url", "title"]
}
```

#### Mode 2: Autonomous Web & Sitemap Crawler (`sourceMode = "webUrls"`)

Crawl web pages or XML sitemaps directly to extract HTML tables, JSON-LD, OpenGraph metadata, tech-stack fingerprints, and incremental RAG chunks:

```json
{
  "sourceMode": "webUrls",
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
    "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
  ],
  "tableName": "web_knowledge_base",
  "primaryKey": ["canonical_url"],
  "enableRagChunking": true,
  "ragChunkSizeTokens": 256
}
```

#### Mode 3: REST API / JSON Feed ELT Connector (`sourceMode = "restApi"`)

Ingest any JSON REST endpoint into SCD Type 2 Parquet tables:

```json
{
  "sourceMode": "restApi",
  "apiEndpoint": "https://dummyjson.com/products",
  "apiRecordsPath": "products",
  "tableName": "api_products",
  "primaryKey": ["id"]
}
```

#### Mode 4: Zero-Config Inline JSON / 1-Click Demo (`sourceMode = "rawRecords"`)

Click **Start** in the Apify Console with the default pre-filled input to test the entire Medallion pipeline in under 5 seconds at **$0 cost**.

***

### Local Development & Zero-Cost Testing

```bash
## 1. Run the 10-test unit & integration suite
python3 -m pytest -v

## 2. Run the multi-run stateful CDC & SCD Type 2 simulation
python3 scripts/run_local_demo.py
```

# Actor input Schema

## `sourceMode` (type: `string`):

Select how records are ingested into the Bronze layer: 'rawRecords' (inline JSON array or demo dataset), 'dataset' (upstream Apify Dataset ID), 'webUrls' (live web pages / HTML tables / JSON-LD / tech-stack / Markdown), or 'restApi' (JSON API endpoint with pagination).

## `datasetId` (type: `string`):

When sourceMode is 'dataset' (or when chaining via Apify Webhook), provide the upstream Dataset ID (e.g. '{{resource.defaultDatasetId}}').

## `urls` (type: `array`):

When sourceMode is 'webUrls', list page URLs or XML sitemap URLs to crawl, extract structured JSON-LD/OpenGraph/HTML tables/tech stack, and chunk for RAG.

## `apiEndpoint` (type: `string`):

When sourceMode is 'restApi', the HTTP GET endpoint returning JSON records.

## `apiRecordsPath` (type: `string`):

Dot-separated path to the array of records in the API response (e.g., 'data.items'). Auto-detected if omitted.

## `rawRecords` (type: `array`):

Inline array of JSON objects to process through the Medallion CDC & Parquet pipeline. Pre-filled with sample e-commerce & SaaS telemetry records so you can test with 1 click for $0.

## `maxItems` (type: `integer`):

Maximum number of records to ingest in a single run.

## `tableName` (type: `string`):

Logical table name used for Parquet artifacts, SQLite/DuckDB catalog tables, SCD2 state tracking, and generated Snowflake/Databricks/dbt models.

## `primaryKey` (type: `array`):

One or more field names (supports nested dot paths like 'product_id' or 'url') forming the unique business key for CDC & SCD Type 2 tracking. Auto-inferred if empty.

## `cdcMode` (type: `string`):

How state changes are tracked across runs: 'scd2_history' (full SCD Type 2 version history + CDC changelog), 'upsert_merge' (latest version per key + CDC changelog), or 'append_only' (stateless append).

## `detectDeletes` (type: `boolean`):

When enabled in full-snapshot crawls, keys present in previous runs but absent in the current batch are emitted as CDC 'DELETE' operations and closed in SCD Type 2 history.

## `emitUnchangedToDataset` (type: `boolean`):

If false (recommended for incremental downstream pipelines), only INSERT, UPDATE, and DELETE delta records are pushed to the Apify Dataset while full tables remain in Parquet/SQLite.

## `enableNearDedup` (type: `boolean`):

Uses 64-permutation shingle MinHash Jaccard similarity to flag and filter near-duplicate records or boilerplate-heavy pages within the batch.

## `nearDedupThreshold` (type: `number`):

Jaccard similarity threshold above which two distinct keys are flagged as near-duplicates.

## `stateStoreName` (type: `string`):

Named Apify Key-Value Store used to persist CDC hashes, SCD Type 2 active versions, and baseline schema snapshots across runs.

## `parquetCompression` (type: `string`):

Compression algorithm used by PyArrow when serializing Bronze, Silver, and Gold Parquet files.

## `piiPolicy` (type: `string`):

Action when heuristic + regex + Luhn scanners detect PII (Email, Phone, SSN, Credit Card, IPv4, API Secret): 'mask_sha256' (deterministic SHA-256 hash preserving joinability), 'redact' (replace with \[REDACTED\_<TYPE>]), or 'flag_only' (audit without altering values).

## `piiSalt` (type: `string`):

Optional secret salt added before SHA-256 PII masking to prevent rainbow-table reversal.

## `requiredColumns` (type: `array`):

Records missing any of these columns (or having null/empty values) are routed to the Dead-Letter Queue (DLQ) instead of polluting Silver/Gold tables.

## `failOnBreakingDrift` (type: `boolean`):

If true, raises an error when a previously seen column changes to an incompatible data type or disappears completely.

## `nullSpikeThresholdPct` (type: `number`):

Triggers a Schema Drift Anomaly Alert if any column's null percentage increases by more than this amount compared to the baseline run (catches broken scraper selectors).

## `enableRagChunking` (type: `boolean`):

Creates a Gold-layer vector-ready Parquet & JSON table of token-bounded semantic chunks ONLY for INSERT/UPDATE records (saves 90%+ re-embedding cost).

## `ragChunkSizeTokens` (type: `integer`):

Approximate maximum token count per semantic text chunk.

## `targetDatabase` (type: `string`):

Database or Unity Catalog name used in generated Snowflake, Databricks DLT, DuckDB, and dbt SQL artifacts.

## `targetSchema` (type: `string`):

Schema name used in generated Snowflake, Databricks DLT, DuckDB, and dbt SQL artifacts.

## Actor input object example

```json
{
  "sourceMode": "rawRecords",
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
    "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
  ],
  "rawRecords": [
    {
      "product_id": "SKU-1001",
      "name": "Snowflake Enterprise Connector Pro",
      "category": "Data Engineering",
      "price_usd": 249,
      "in_stock": true,
      "contact_email": "sales@dataflow-example.io",
      "specs": {
        "latency_ms": 42,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "snowflake",
        "parquet",
        "cdc"
      ],
      "updated_at": "2026-11-13T10:00:00Z"
    },
    {
      "product_id": "SKU-1002",
      "name": "Databricks Delta Live Streamer",
      "category": "Lakehouse",
      "price_usd": 189.5,
      "in_stock": true,
      "contact_email": "support@lakehouse-example.dev",
      "specs": {
        "latency_ms": 19,
        "compression": "snappy",
        "tier": "silver"
      },
      "tags": [
        "databricks",
        "dlt",
        "pyspark"
      ],
      "updated_at": "2026-11-13T11:30:00Z"
    },
    {
      "product_id": "SKU-1003",
      "name": "DuckDB Embedded Analytics Engine",
      "category": "Analytics",
      "price_usd": 99,
      "in_stock": false,
      "contact_email": "analytics@duck-example.org",
      "specs": {
        "latency_ms": 8,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "duckdb",
        "pyarrow",
        "olap"
      ],
      "updated_at": "2026-11-13T12:15:00Z"
    }
  ],
  "maxItems": 10000,
  "tableName": "lakehouse_entities",
  "primaryKey": [
    "product_id"
  ],
  "cdcMode": "scd2_history",
  "detectDeletes": false,
  "emitUnchangedToDataset": true,
  "enableNearDedup": true,
  "nearDedupThreshold": 0.92,
  "stateStoreName": "lakehouse-cdc-state",
  "parquetCompression": "zstd",
  "piiPolicy": "mask_sha256",
  "requiredColumns": [],
  "failOnBreakingDrift": false,
  "nullSpikeThresholdPct": 35,
  "enableRagChunking": true,
  "ragChunkSizeTokens": 256,
  "targetDatabase": "LAKEHOUSE_PROD",
  "targetSchema": "SILVER_CDC"
}
```

# Actor output Schema

## `cdcDeltaDataset` (type: `string`):

Incremental Change Data Capture records (INSERT, UPDATE, DELETE, UNCHANGED) with SCD Type 2 metadata.

## `observabilityDashboard` (type: `string`):

Self-contained HTML report with Medallion metrics, CDC breakdown, Schema Drift alerts, PII Firewall stats, and warehouse code.

## `silverScd2Parquet` (type: `string`):

Zstd-compressed Apache Parquet table containing full SCD Type 2 version history.

## `goldRagChunksParquet` (type: `string`):

Token-bounded semantic Markdown chunks generated exclusively for INSERT and UPDATE records.

## `lakehouseSqlite` (type: `string`):

Queryable SQLite database containing bronze_raw, silver_current, silver_scd2_history, silver_cdc_delta, gold_rag_chunks, and quarantine_dlq.

## `allGeneratedArtifacts` (type: `string`):

Snowflake SQL, Databricks DLT Python, DuckDB SQL, and dbt models stored in the Default Key-Value Store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
        "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
    ],
    "rawRecords": [
        {
            "product_id": "SKU-1001",
            "name": "Snowflake Enterprise Connector Pro",
            "category": "Data Engineering",
            "price_usd": 249,
            "in_stock": true,
            "contact_email": "sales@dataflow-example.io",
            "specs": {
                "latency_ms": 42,
                "compression": "zstd",
                "tier": "gold"
            },
            "tags": [
                "snowflake",
                "parquet",
                "cdc"
            ],
            "updated_at": "2026-11-13T10:00:00Z"
        },
        {
            "product_id": "SKU-1002",
            "name": "Databricks Delta Live Streamer",
            "category": "Lakehouse",
            "price_usd": 189.5,
            "in_stock": true,
            "contact_email": "support@lakehouse-example.dev",
            "specs": {
                "latency_ms": 19,
                "compression": "snappy",
                "tier": "silver"
            },
            "tags": [
                "databricks",
                "dlt",
                "pyspark"
            ],
            "updated_at": "2026-11-13T11:30:00Z"
        },
        {
            "product_id": "SKU-1003",
            "name": "DuckDB Embedded Analytics Engine",
            "category": "Analytics",
            "price_usd": 99,
            "in_stock": false,
            "contact_email": "analytics@duck-example.org",
            "specs": {
                "latency_ms": 8,
                "compression": "zstd",
                "tier": "gold"
            },
            "tags": [
                "duckdb",
                "pyarrow",
                "olap"
            ],
            "updated_at": "2026-11-13T12:15:00Z"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("driftking-byte/apify-lakehouse-cdc-engine").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [
        "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
        "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html",
    ],
    "rawRecords": [
        {
            "product_id": "SKU-1001",
            "name": "Snowflake Enterprise Connector Pro",
            "category": "Data Engineering",
            "price_usd": 249,
            "in_stock": True,
            "contact_email": "sales@dataflow-example.io",
            "specs": {
                "latency_ms": 42,
                "compression": "zstd",
                "tier": "gold",
            },
            "tags": [
                "snowflake",
                "parquet",
                "cdc",
            ],
            "updated_at": "2026-11-13T10:00:00Z",
        },
        {
            "product_id": "SKU-1002",
            "name": "Databricks Delta Live Streamer",
            "category": "Lakehouse",
            "price_usd": 189.5,
            "in_stock": True,
            "contact_email": "support@lakehouse-example.dev",
            "specs": {
                "latency_ms": 19,
                "compression": "snappy",
                "tier": "silver",
            },
            "tags": [
                "databricks",
                "dlt",
                "pyspark",
            ],
            "updated_at": "2026-11-13T11:30:00Z",
        },
        {
            "product_id": "SKU-1003",
            "name": "DuckDB Embedded Analytics Engine",
            "category": "Analytics",
            "price_usd": 99,
            "in_stock": False,
            "contact_email": "analytics@duck-example.org",
            "specs": {
                "latency_ms": 8,
                "compression": "zstd",
                "tier": "gold",
            },
            "tags": [
                "duckdb",
                "pyarrow",
                "olap",
            ],
            "updated_at": "2026-11-13T12:15:00Z",
        },
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("driftking-byte/apify-lakehouse-cdc-engine").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
    "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
  ],
  "rawRecords": [
    {
      "product_id": "SKU-1001",
      "name": "Snowflake Enterprise Connector Pro",
      "category": "Data Engineering",
      "price_usd": 249,
      "in_stock": true,
      "contact_email": "sales@dataflow-example.io",
      "specs": {
        "latency_ms": 42,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "snowflake",
        "parquet",
        "cdc"
      ],
      "updated_at": "2026-11-13T10:00:00Z"
    },
    {
      "product_id": "SKU-1002",
      "name": "Databricks Delta Live Streamer",
      "category": "Lakehouse",
      "price_usd": 189.5,
      "in_stock": true,
      "contact_email": "support@lakehouse-example.dev",
      "specs": {
        "latency_ms": 19,
        "compression": "snappy",
        "tier": "silver"
      },
      "tags": [
        "databricks",
        "dlt",
        "pyspark"
      ],
      "updated_at": "2026-11-13T11:30:00Z"
    },
    {
      "product_id": "SKU-1003",
      "name": "DuckDB Embedded Analytics Engine",
      "category": "Analytics",
      "price_usd": 99,
      "in_stock": false,
      "contact_email": "analytics@duck-example.org",
      "specs": {
        "latency_ms": 8,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "duckdb",
        "pyarrow",
        "olap"
      ],
      "updated_at": "2026-11-13T12:15:00Z"
    }
  ]
}' |
apify call driftking-byte/apify-lakehouse-cdc-engine --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,driftking-byte/apify-lakehouse-cdc-engine"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/q0SL01ccFWROfMvpn/builds/KIf6Bv2aoQUWqsf1x/openapi.json
