# DuckLake: Embedded DuckDB Lakehouse & Data Profiler

> Embedded DuckDB analytical engine for offline SQL queries and statistical profiling of local Parquet, CSV, and JSON.

DuckLake: Embedded DuckDB Lakehouse & Data Profiler is a free AI agent skill on Agensi by Chethanraj D.S, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Chethanraj D.S](https://www.agensi.io/creators/chethanraj-d-s)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ducklake-embedded-duckdb-lakehouse-data-profiler
- Tags: mcp, duckdb, parquet, analytics, lakehouse, sql, offline, air-gapped

## About this skill

Analyzing large datasets locally often forces developers to choose between context-window bloat or complex external database setups. This skill provides an embedded analytical engine that allows your agent to query and profile local files directly without compromising privacy or performance.

### What it does
- **Vectorized SQL Execution** executes complex analytical queries over local files using the embedded DuckDB engine.
- **Dataset Profiling** generates statistical summaries including null percentages, cardinality, and numerical quantiles in under 50ms.
- **Format Conversion** transforms uncompressed CSV or JSON files into high-performance columnar Parquet files.
- **Virtual Data Marts** creates unified SQL views over multiple files or glob patterns for seamless cross-dataset analysis.
- **Token Protection** automatically bounds large string cells and result sets to prevent context exhaustion.

### How it works
1. **Discover** files in your local workspace using `ducklake_discover_files` to identify queryable datasets.
2. **Profile** unknown datasets with `ducklake_profile_dataset` to understand schema and distributions without loading raw rows.
3. **Query** data directly using SQL via `ducklake_query_sql`, pushing aggregations and filters to the engine.
4. **Optimize** large files by invoking `ducklake_convert_to_parquet` for faster iterative analysis.

### Frameworks & tools
Built on DuckDB for vectorized processing and the Model Context Protocol (MCP). Compatible with Claude Code, Cursor, Windsurf, and GitHub Copilot.

### Why this beats prompting it yourself
Raw prompting requires loading entire files into the context window, which is slow, expensive, and often impossible for large datasets. This skill moves the computation to the data, returning only summarized answers and precise statistics while keeping sensitive data offline.

### Use cases
- Auditing local Parquet files for data quality and null distributions.
- Running complex SQL joins across disparate CSV and SQLite files.
- Converting legacy JSON exports into optimized Lakehouse formats.
- Summarizing millions of log entries without exhausting token limits.

### Known limitations
Requires a local Python environment to run the MCP server. Query execution is limited by the host machine's RAM and CPU resources.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the DuckLake: Embedded DuckDB Lakehouse & Data Profiler skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill handle large datasets without hitting token limits?

Ducklake MCP solves the 'context window bloat' problem by running complex SQL queries and statistical profiling directly on your local machine using the DuckDB engine, returning only the summarized results to the AI instead of the entire raw file.

### Which AI agents and IDEs are compatible with Ducklake MCP?

This skill is built on the Model Context Protocol (MCP) and is fully compatible with popular AI development tools including Claude Code, Cursor, Windsurf, and GitHub Copilot.

### Can I query multiple files or different formats (like CSV and Parquet) at the same time?

Yes, the skill can create virtual data marts that allow your agent to perform SQL joins and aggregations across different file formats, such as joining a CSV file with a Parquet dataset in a single query.

### What are the technical requirements for setting up this skill?

Ducklake MCP requires a local Python environment to host the server; once installed, it executes all data processing locally on your hardware, ensuring your sensitive data never leaves your machine.

### What specific file formats are supported for local analysis?

The skill supports all common analytical formats including Parquet, CSV, and JSON, and even includes a built-in tool to convert uncompressed files into optimized columnar Parquet files for better performance.

### What is included with this skill?

You receive the full MCP server implementation, documentation for integration, and any minor version updates or performance patches released for the current version of the skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
