Profile local CSV, Parquet, JSON and Excel files into a compact data-quality summary.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Let an AI agent understand a dataset without reading it.
An MCP server that turns a CSV, Parquet, JSON, or Excel file into a compact structured profile β types, ranges, missing values, and likely data-quality problems β instead of raw rows.
To let an AI agent reason about a data file, you normally paste rows into the conversation. That is expensive, truncates on anything large, and still leaves the model guessing at column types and null rates.
This server answers the question directly. One tool call returns a structured summary that is orders of magnitude smaller than the data and says more about it:
| Dataset | Raw file | Profile | Reduction | Time |
|---|---|---|---|---|
| Google Play Store (2.3M rows Γ 24 cols) | 645 MB | 13 KB | 49,205Γ | 1.9 s |
| SNCF punctuality (10,687 rows Γ 26 cols) | 2 MB | 13 KB | 189Γ | 0.2 s |
| Orders sample (5,000 rows Γ 6 cols) | 241 KB | 2.3 KB | 104Γ | 0.1 s |
The 645 MB file cannot go into a context window at any price. It is fully characterised here in under two seconds.
python demo.py generates a deliberately messy dataset, profiles it, and reports what came back:

The same profiler seen from an MCP client β one question, one profile_dataset call, and the file
is characterised without a single row entering the conversation:

Three real problems surfaced before any analysis began: a column that never varies, one that is
entirely empty, and a date column that sorts as text β so "2024-10-01" < "2024-9-01" β silently
corrupting any time-based result.
.csv .tsv .txt .parquet .pq .json .jsonl
.ndjson .xlsx .xlsm .xls, plus .gz variants of the text formats.--root restricts profiling to a single directory.All profiling logic lives in profiler.py, which imports nothing from MCP. It is unit-testable
without a protocol harness and usable as an ordinary Python library. server.py is only the
adapter.
Requires Python 3.10+.
Add to your client's MCP configuration:
To confine the server to one directory, add "args": ["--root", "/path/to/your/data"].
Once registered, ask in plain language:
data/orders.csv"profile_dataset(path, sample_rows=50000, max_columns=100, top_k=5, sheet=None)
| Argument | Type | Default | Description |
|---|---|---|---|
path | str | required | File to profile; .gz is decompressed transparently |
sample_rows | int | null | 50000 | Rows to read. null reads everything β exact, slower |
max_columns | int | 100 | Cap on columns described, so wide tables stay small |
top_k | int | 5 | Frequent values listed per categorical column |
sheet | str | null | first sheet | Which Excel sheet to profile, by name |
| Flag | Meaning |
|---|---|
all_null | Column is entirely empty |
constant | Only ever one value β no signal |
high_cardinality_possible_id | Nearly all values distinct; an identifier, not a feature |
numeric_stored_as_text | Numbers typed as strings; comparisons and sorting will be wrong |
date_stored_as_text | Dates typed as strings; same problem |
mixed_types | One column holding several unrelated Python types |
Verbatim output for the sample dataset produced by python demo.py, with three of the six
columns shown:
Note that order_id carries no top_values: for a near-unique column every count would be 1,
so the list is omitted rather than padding the response with noise.
When a file is sampled, the profile also carries "sampled": true, the true total_rows, and a
sampling_note saying so.
Bounded output. The tool must cost less than the data it describes, so the response is capped
regardless of input width and long strings are truncated. Near-unique columns skip the
frequent-values list, since every count would be 1.
Honest sampling. Large files are profiled from a sample, but the result always carries
"sampled": true alongside the true row count β a silently sampled statistic is a wrong
statistic. Row counts come from Parquet metadata or a raw newline scan, never a full parse into
memory.
No silent wrong answers. The same rule governs every default that could mislead. A workbook's first sheet is often a title page, so Excel profiles always name the sheet used and list the others rather than reporting an untouched sheet as a clean dataset. CSV delimiters are inferred by testing candidates for a stable column count, which handles the semicolon files common in European open data without the header-mangling that character-frequency sniffers cause. Compressed files are decompressed before either check, since inspecting gzip bytes as text yields a plausible-looking answer that is entirely wrong.
Path safety. --root confines profiling to one directory. Paths are canonicalised before the
check, so .. and symlinks cannot escape it.
sample_rows=null."NA", "N/A", and "None" are read as missing, so a region column
containing "NA" for North America will report nulls. That trap is surfaced, not hidden.null.sheet
to switch.CI runs the suite on Python 3.10β3.13 (Linux) plus Windows and macOS, and performs a real stdio handshake against the built server to confirm it starts and advertises its tool.
Publishing to PyPI is automated via Trusted Publishing, so no API token is stored in this
repository. Publishing a GitHub Release triggers .github/workflows/release.yml, which builds the
distributions, verifies the built wheel actually installs and imports, and uploads it.
Issues and pull requests are welcome.
.csv.gz, .jsonl.gz)s3://, https://)MIT Β© Rida Aderkane
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/data-profiler)<a href="https://allmcps.com/mcp/data-profiler"><img src="https://allmcps.com/api/badge/data-profiler?style=directory" alt="Data Profiler on AllMCPs" /></a>