Data Preparation Engine · cwprep

Code-First Intelligent Data Flow Infrastructure

Unlike the official Tableau Prep AI Assistant, cwprep breaks free from the black-box graphical interface limitations by providing a declarative, code-based foundation. It translates natural language intents instantly into fully auditable pipelines translated to ANSI SQL—bringing total transparency to your architecture team alongside the freedom of multi-model MCP integrations.

cwprep interface

Core Capabilities

SQLTranslator
Full ANSI SQL Translation
Internal regex parsers (e.g. IFNULL to COALESCE) translate pipelines into standard SQL with CTEs. Fulfills the strict white-box audit compliance requirements for financial institutions.
Data Profiles
Enterprise DB Support
Deep coverage of Windows Server (SSPI) and Alibaba ADB MySQL. Eliminates gateway integration barriers seamlessly across traditional infrastructures and modern cloud setups.
Headless TFL
Headless Pipeline Generation
Break away from drag-and-drop dependencies. Automatically generate .tflx island packages with fully bundled data context. Slashing massive batch server compute overheads.
DAG Control
Fine-grained Operator Execution
Write single-line logic for QuickCalc, deep CSV Unions and complex Pivots. Freeing highly paid data scientists from tedious manual ETL wrangling.

Beyond mere AI Generation

The core of cwprep is a deeply robust "Headless" Prep operations engine. It treats Tableau file formats as first-class citizens, ensuring programmatically valid XML tree manipulations based strictly on XSD specifications.

  • Extreme Reverse Engineering: Built-in ExpressionTranslator instantly decompiles over 30 gnarly Tableau Prep functions (e.g. DATEPART, ZN) back into universally compatible regex configurations and native SQL.

  • Safety Temp Backup Locks: Given the unreliability of asynchronous CI/CD systems, cwprep deploys deterministic file backup locking upon initialization to prevent destructive .tfl corruption during pipeline failures.

Declarative Configuration Logic

Embracing modern Infrastructure as Code (IaC) doctrines, cwprep calculates dynamic node paths based on terminal state requirements, completely bypassing rigid procedural mappings.

DevOps Ready Linkages

Inject Prep compilation directly into CI/CD build scripts. Bring sweeping standardization and continuous integration to fragmented BI assets.

Capability Matrix

Under-the-hood Transparency

Datacooper

Yes (100% translated to SQL)

Official AI

No (Internal GUI Blackbox)

Allows data flows to be exposed as SQL for DBA architectural review, completely independent of the client.

Headless Batch Processing

Datacooper

Yes (Code & Prompt Driven)

Official AI

No (Tied to Visual Interface)

Instantly build dozens of pipelines without waiting for GUI renders, boosting productivity massively.

Privacy & LLM Base

Datacooper

Yes (Attach any MCP compatible LLM)

Official AI

No (Bound to official cloud)

Freely switch between Claude, GPT, or air-gapped DeepSeek models representing zero data leakage.

Product Roadmap

1

Phase 1: Foundation

Core node generation & full ANSI SQL translation.

2

Phase 2: Collaboration

Launch MCP shared server mode for team templating.

3

Phase 3: Governance

Integrate data quality gateways to stop skewed processes.

Pricing Options

Community (Open Source)
Ideal for sole engineers and exploratory dev tasks.
Free
  • - Core TFL Builder Engine
  • - Unlimited MCP Generation
  • - Community Github Support
Enterprise Solutions
Optimized and deep integrated deployment for scale deliveries.
Contact Sales
Book Consultation

Frequently Asked Questions

Q: Is cwprep bound to a specific LLM?

A: No. cwprep is model-agnostic and supports Claude, ChatGPT, Gemini, and DeepSeek, as long as they support standard reasoning.

Q: Can the generated .tfl files be opened directly in Tableau Prep?

A: Yes. cwprep generates official .tfl and .tflx files that can be opened and run natively without plugins.

Q: Does it support complex row/column transformations (Pivot)?

A: Absolutely. cwprep is specifically optimized for Pivot and Unpivot node generation.

# 1) Installation
pip install cwprep

# 2) MCP Server Config Example
{
  "mcpServers": {
    "cwprep": {
      "command": "uvx",
      "args": ["--from", "cwprep[mcp]", "cwprep-mcp"]
    }
  }
}

# 3) Prompt Example
"Connect to intranet SQL Server (SSPI) to build a multi-database cleaning flow"
"Remove invalid columns, then execute Unpivot on month data"
"Finally output ANSI SQL with standard comments for audit review"
cwprep — Headless Tableau Prep ETL Engine | Datacooper