# Data Profiler [Health: Active]

**Category:** 🧮 Data Science Tools  
**Repository:** https://github.com/Ridadata/mcp-data-profiler  
**GitHub Stars:** 1  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/data-profiler

## Description
Profile local CSV, Parquet, JSON and Excel files into a compact data-quality summary.

## Tools
Capabilities this server exposes over MCP:

- **profile_dataset** — Summarise the structure and quality of a local data file.

    Call this whenever you need to understand a dataset — its columns, types,
    ranges, missing values, or quality problems — before analysing it, writing
    code against it, or answering questions about it. Prefer this over reading
    the file directly: it returns a compact summary instead of raw rows, so it
    works on files far too large to read, at a small fraction of the tokens.

    Reports per column: dtype, null count and percentage, distinct count,
    sample values, quartiles for numbers, date ranges, and the most frequent
    values for categories. Flags likely problems: all-null and constant
    columns, probable ID columns, mixed types, and numbers or dates that were
    stored as text.

    Args:
        path: Path to the file. Supports .csv, .tsv, .parquet, .json, .jsonl,
            .xlsx, and .xls.
        sample_rows: Profile at most this many rows. Pass null to read every
            row, which is slower on large files but makes all statistics exact.
            The result always states whether it was sampled.
        max_columns: Describe at most this many columns, so the response stays
            small on very wide tables. The true column count is always
            reported.
        top_k: How many of the most frequent values to list per categorical
            column.
        sheet: For Excel workbooks, the name of the sheet to profile. Defaults
            to the first sheet, which is often a title or notes page rather
            than the data. The result lists every available sheet, so if the
            one profiled looks empty or wrong, call again naming another.

    Returns:
        A profile with file info, shape, per-column detail, and duplicate row
        count.
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "data-profiler": {
    "command": "uvx",
    "args": ["mcp-data-profiler"]
  }
}
```

## Documentation

## What Data Profiler MCP server does

The Data Profiler MCP server gives an MCP client a structured description of a local data file. It is designed for initial inspection: an agent can identify columns, understand likely types, check missingness, and spot common quality problems without receiving the dataset's raw rows.

The server accepts CSV, TSV, TXT, Parquet, JSON, JSONL, NDJSON, and Excel files, including `.gz` variants of the text formats. Excel workbooks can be profiled by sheet name; if no sheet is supplied, the first sheet is used. The result includes file metadata, shape, whether sampling occurred, and a per-column description.

## How it works

An MCP client calls `profile_dataset` with a file path. The server validates the path, optionally confines access to a directory supplied through `--root`, and passes the file to profiling logic implemented with pandas. The response is bounded so wide inputs and long values do not produce an unbounded tool result.

By default, up to 50,000 rows are read for profiling. Passing `null` for `sample_rows` requests an exact full read, which may take longer. Sampled results include the actual total row count, a sampled indicator, and a note explaining that sampling was used. Row counts can come from Parquet metadata or a newline scan rather than a full in-memory parse.

## Setup and configuration

Install the package with Python 3.10 or newer:

```bash
pip install mcp-data-profiler
```

Register the executable in an MCP client using the command `mcp-data-profiler`. For directory confinement, pass `--root` followed by the allowed data directory. No database, index, or persistent service is required.

The tool accepts these parameters:

- `path`: required file path
- `sample_rows`: row limit, defaulting to `50000`; use `null` for an exact read
- `max_columns`: maximum number of described columns, default `100`
- `top_k`: number of frequent values per categorical column, default `5`
- `sheet`: optional Excel sheet name

## Tools and capabilities

The server exposes `profile_dataset`. Its output can include:

- Data types, null counts and percentages, distinct counts, and sample values
- Minimum, maximum, mean, standard deviation, and quartiles for numeric columns
- Date ranges and frequent values for categorical columns
- Duplicate-row counts
- Six quality flags: all-null, constant, probable ID, numeric stored as text, date stored as text, and mixed types
- Truncation information when output limits apply

The same profiling function is also available as a Python library through `mcp_data_profiler.profile_dataset`.

## Limitations and notes

Profiles describe the file rather than transforming, cleaning, or modeling it. Sample-based statistics may not represent every row, so check the `sampled` field and sampling note before treating them as exact. The true row count is still reported.

The column limit can omit descriptions from very wide tables. Frequent values are omitted for near-unique columns because listing mostly one-count values would add noise. A path must be accessible to the local process and, when `--root` is used, remain within the configured directory. The server does not send raw rows as its profile result, but the input file remains available to the local process during profiling.

_Full upstream README: https://allmcps.com/mcp/data-profiler/readme_

