edamcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@edamcp profile my data.csv for quality issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
edamcp
A general-purpose Exploratory Data Analysis MCP server. Point it at an unknown dataset and it will tell you what's really in there, what to fix first, and how to make it model-ready — quality issues, leakage, bias, PII, missingness patterns, modeling blockers, and a clean export. The hard analytical reasoning lives in the MCP, not in the agent driving it.
Works with Claude Code, Claude Desktop, Cursor, LM Studio, Open WebUI, and any other MCP-capable client. Designed to be fully usable from a local 30B-class model (Qwen 27B / Mistral Small 3.2 / GLM-4 32B) and validated end-to-end on 11M-row production data.
Quick start
# clone + run from a checkout
git clone https://github.com/charliecpeterson/edamcp.git
cd edamcp
uv run edamcp # full surface (70 tools)
uv run edamcp --mode local # thin surface (35 tools) for local modelsWire it into your MCP client. The exact path to mcp.json varies — Claude
Desktop is ~/Library/Application Support/Claude/claude_desktop_config.json,
LM Studio is ~/.lmstudio/mcp.json, Cursor is in Settings → MCP. The entry
itself is the same shape:
{
"mcpServers": {
"edamcp": {
"command": "/path/to/uv",
"args": [
"run", "--directory", "/path/to/edamcp/checkout",
"edamcp"
]
}
}
}For local-model setups (LM Studio + Qwen, Ollama with the bridge, etc.) add
"--mode", "local" to the args — see Local mode.
Related MCP server: MCP File Analyzer
What you can do with it
A typical agent session — one user message, one or two tool calls per question, paste-ready Markdown back:
"Use edamcp on
/data/orders.csv. Tell me the three things I should fix first and whether I can train a model predictingis_returned."
→ Agent calls auto_explore then auto_modeling_audit. edamcp returns
ranked critical issues, suggested cleaning steps, modeling blockers (class
imbalance, leakage, multicollinearity), and pre-filled SQL drill-downs.
"This is taxi data, 11 million rows of dirty parquet. Find the worst problems, propose a cleaning plan, apply it, save the result, and tell me what would leak if I trained a tip-prediction model."
→ One agent run, ~15 tool calls, ends with a 7.8M-row cleaned parquet on
disk and a flagged target-leakage warning (total_amount = fare + tip
with VIF 1,164). Both the macro work and the heavy modeling audit auto-sample
to ~500K rows so the 30-second MCP transport never times out.
What edamcp surfaces
Everything below is detected automatically, with no specific instruction from the agent:
Schema quality — constants, all-null columns, sentinel values (
-999,"NA", etc.) masquerading as data, type drift across rows.Missingness patterns — including structurally-coupled nulls (e.g. five columns all NULL in the exact same rows).
Distribution shape — skew, multimodality, zero-inflation, heavy tails; with suggested transforms (log, Yeo-Johnson, reflect+log).
Correlations, multicollinearity (VIF), correlated-feature groups.
Duplicates — exact + by-key, with dedupe SQL.
Temporal — gaps, monotonicity, drift, daily-count seasonality.
Target leakage — name heuristics + correlation + temporal-constant detection.
Bias & fairness — class imbalance, sampling bias, 80%-rule disparate impact.
PII — regex + Luhn-validated card numbers + column-name heuristics; samples returned redacted.
Bootstrap stability + signal-to-noise per feature.
PCA dimensionality + Hopkins clustering tendency.
Text columns — length, vocab, near-duplicate %, mojibake.
Geospatial — lat/lon validation (out-of-range, null island, bbox).
Nested JSON — flattens deep structures, leaf-presence %, type drift.
HDF5 scientific arrays — leaf-name aggregation, fill values, NaN/Inf, dtype drift, valid_range violations. Validated on real ANI-1 dataset (3.5 GB, 47K molecule groups).
Cross-source schema diff + KS-test / PSI distribution drift.
Plus a full cleaning + export workflow (auto_clean → clean_pipeline →
export_source), eight plot tools with inline image rendering, an interactive
HTML report, and YAML plugins for domain-specific checks (e.g. compliance
rules, chemistry valence) that load on startup.
Tool surface (70 tools, organized into eight groups)
Source management · load_source · list_sources · describe_source · detect_pattern · detect_metadata · fingerprint_source · infer_recipes · unload_source · list_files
Query · run_sql · sample_rows · peek_array (HDF5 slice reader)
EDA checks · profile · check_quality · check_distributions · check_correlations · check_duplicates · check_multicollinearity · check_temporal · check_leakage · check_bias · check_pii · check_dimensionality · check_stability · check_text_columns · check_outliers · check_feature_signal · check_arrays · check_geospatial · check_nested_structure · check_custom (plugin runner) · suggest_plots · recommend_tasks
Orchestration · run_eda (presets: quick / standard / deep / exhaustive) · get_eda_findings
Visualization · plot_distribution · plot_correlation_heatmap · plot_scatter · plot_timeseries · plot_boxplot · plot_missingness · plot_pair · plot_qq · plot_violin · plot_facet · eda_storyboard (7-plot guided tour) · generate_report (interactive HTML)
Comparison · compare_sources · compare_groups · detect_schema_evolution
Synthesis · data_card · summarize_run · recommend_next
Cleaning + export · auto_clean (proposes plan) · clean_pipeline (executes + materializes) · clean_drop_columns · clean_rename_columns · clean_cast · clean_replace · clean_filter · clean_drop_duplicates · clean_impute · clean_transform · export_source (parquet / csv / json / ndjson)
Macros (one-call workflows) · auto_explore · auto_quality · auto_modeling_audit · auto_share_check · auto_compare
Design highlights
DuckDB views as the substrate. Every loaded source is a DuckDB view in a single in-memory connection. Cross-format JOINs (CSV ↔ Parquet ↔ HDF5 metadata) work for free; large data is out-of-core; no copies until export.
Materialized clean output.
clean_pipelinecollapses its final view into a realBASE TABLE(CTAS) so downstream queries scan it once instead of re-running the whole filter chain — 10× speedup on every follow-up query.Scale-aware sampling. Heavy tools (
auto_modeling_audit,suggest_plots,eda_storyboard,check_temporal,check_dimensionality) auto-build a reservoir sample (default 500K rows) when the source is larger. Statistics converge well before that threshold; without sampling, a 7.8M-row source takes ~3.5 minutes per macro call and risks OOM-killing the MCP. With sampling: ~9 seconds, same verdict.Thick tools, thin agent. Macros chain 4–8 granular checks into one call and return Markdown-first output. A 30B local model picking from 35 tools is reliable; picking from 70 is not. See Local mode.
Findings are severity-sorted, top-K by default. Every check returns
top_findings[≤10]+ anartifact_pathto a JSON with the full results. Context budget is the scarcest resource.Reproducibility recipe in every result. Each non-trivial tool returns the equivalent SQL (and where useful, Polars/Pandas/Python) so the user can replicate without the MCP.
SQL injection-safe. All identifier interpolations go through
sqlsafe.quote_ident()(doubles embedded"), so column names with awkward characters work and adversarial inputs don't break out of quoting.Thread-safe DuckDB access. FastMCP dispatches synchronous tool handlers on a thread pool;
Session._lockserializesexecute/sqlso concurrent tool calls can't corrupt session state.
Local mode
For 30B-class models, the 70-tool surface is too wide. Run with
--mode local to expose 35 high-level tools:
Source/query basics:
load_source,list_sources,list_files,run_sql,sample_rows,unload_source5 macros:
auto_explore,auto_quality,auto_modeling_audit,auto_share_check,auto_compareModality-specific entry points:
check_arrays,peek_array,check_geospatial,check_nested_structure,check_customAnalyst-question tools:
suggest_plots,check_outliers,compare_groups,check_feature_signal,recommend_tasks,eda_storyboard,generate_reportCleaning + export:
auto_clean,clean_pipeline,clean_drop_columns,clean_replace,clean_cast,clean_drop_duplicates,clean_impute,clean_filter,export_sourceSynthesis:
data_card,summarize_run,recommend_next
The macros internally chain the granular tools and return Markdown. Validated against Qwen 27B in LM Studio — completes a full 5-question EDA prompt on 11M-row data without timeouts.
Prompts (slash-commands)
Hosts that surface prompts as a menu (Claude Desktop, Cursor) get eight pre-canned templates that nudge the model toward the right workflow:
Prompt | Args | What it does |
|
| "I have no idea what this is." Calls |
|
| Standard EDA walkthrough with plain-English explanations. |
|
| Critical-issue-only audit. Skips info-severity noise. |
|
| Modeling-readiness verdict + hard blockers + soft mitigations. |
|
| Hypothesizes about origin, population, missing pieces. |
|
| Drop-in compatibility check. |
|
| Pattern-detect → load → data_card. |
|
| PII + fairness gate before sharing externally. |
Resources (read-only handles)
eda://sources— list of loaded sourceseda://sources/{source_id}— schema + metadata for one sourceeda://runs/{run_id}— full JSON artifact from a priorrun_edaeda://plots/{plot_id}— Vega-Lite spec + paths to rendered PNG/SVGeda://plugins— list of registered YAML plugins
Plugins (YAML + SQL)
Drop a YAML file into a directory and pass --plugins /path/to/dir
(repeatable). Bundled defaults under plugins_builtin/ load automatically.
Example — age_sanity.yaml:
name: age_sanity
description: Detects rows with biologically implausible ages
category: domain_violation
severity: critical
applies_to:
has_columns: [age]
modality: tabular
sql: |
SELECT
'age out of range' AS title,
'age' AS column,
COUNT(*) AS rows_affected,
MIN(CAST(age AS BIGINT)) AS min_age_seen,
MAX(CAST(age AS BIGINT)) AS max_age_seen
FROM {source}
WHERE age IS NOT NULL AND (CAST(age AS BIGINT) < 0 OR CAST(age AS BIGINT) > 130)
HAVING COUNT(*) > 0
interpretation: Ages outside [0, 130] are biologically implausible; usually they're sentinel values.
suggested_action: "Cast to NULL: UPDATE source SET age = NULL WHERE age < 0 OR age > 130."The SQL must reference the source via the literal {source} placeholder
(substituted with the quoted alias at runtime). Each row the SQL returns
becomes a Finding. Plugins self-skip when applies_to.has_columns doesn't
match the source schema, so you can ship many and only the relevant ones
run.
Plugins run automatically as part of run_eda (any preset) and via the
standalone check_custom tool. They appear in data_card output alongside
built-in checks.
Architecture
┌────────────────────────────────────────────────────────────────┐
│ MCP client (Claude Code, Cursor, Claude Desktop, LM Studio…) │
└─────────────────────────┬──────────────────────────────────────┘
│ stdio JSON-RPC (MCP)
┌─────────────▼─────────────┐
│ edamcp (Python) │
│ ─ tool dispatch │
│ ─ session (DuckDB views) │
│ ─ thread-safe lock │
│ ─ artifact cache (./_eda)│
└─────────────┬─────────────┘
│
┌──────────────────────┼────────────────────────────┐
│ │ │
▼ ▼ ▼
┌─────────┐ ┌────────────────┐ ┌──────────────────┐
│ ingest │ │ query engine │ │ eda checks │
│ csv/pq/ │◄─────►│ DuckDB views │◄──────►│ + viz + synth │
│ json/h5 │ │ + sample tables│ │ + cleaning ops │
└─────────┘ └────────────────┘ │ + plugins │
└──────────────────┘DuckDB is the engine. Every loaded source becomes a DuckDB view in a single connection; cleaning pipelines materialize their final result as a real table.
Polars for in-memory ops where convenient.
Altair + vl-convert for plots — returns Vega-Lite JSON (so the agent can reason about / modify) AND a rendered PNG (for chat UIs).
scipy for statistical tests (chi-square, KS, Mann-Whitney, ANOVA); numpy for PCA via SVD.
h5py for HDF5 inspection with chunked streaming reduces.
Everything is statelessly orchestratable: tools return either a small
summary card with top_findings[≤10] and an artifact_path, or paste-ready
Markdown.
Development
# clone + install
git clone https://github.com/charliecpeterson/edamcp.git
cd edamcp
uv sync
# generate the synthetic test datasets
uv run python scripts/generate_test_data.py ~/edamcp-testdata
# run the full smoke suite
EDAMCP_TEST_DATA=~/edamcp-testdata uv run python scripts/smoke_test.py
# verify local-mode tool surface
uv run python scripts/smoke_local_mode.pyThe smoke tests exercise every tool end-to-end through an stdio MCP
handshake. Set EDAMCP_ANI1_PATH=/path/to/ANI-1_release/ to additionally
exercise the HDF5 scientific-array path against real data.
Status
Production-validated:
Three months of NYC Yellow Taxi parquet (11M rows, 20 cols, 190 MB) through the full pipeline: load → audit → clean → export → modeling audit → storyboard. Completes in ~15 tool calls under 32K context with Qwen 27B in LM Studio.
ANI-1 scientific dataset (3.5 GB HDF5, 47,934 molecule groups, ~288K leaf datasets). Full analysis in ~50 seconds;
peek_arrayreads slices by leaf name with|S1SMILES auto-joined to readable strings.Synthetic dirty e-commerce with curated quality issues — catches constants, all-nulls, sentinels, type drift, duplicates, multicollinearity, bias, PII, leakage, all in one
data_cardcall.
Smoke coverage: 100+ assertions across 70 tools, both modes, plugins, prompts, resources, and the end-to-end cleaning pipeline.
License
MIT — see LICENSE.
Available Tools
69 toolsauto_cleanA
Inspect quality + duplicate findings and PROPOSE a cleaning plan.
**Plan-only — does NOT modify data.** Returns Markdown plan + structured
ops list. Caller reviews and (optionally edits then) passes ops into
`clean_pipeline` to actually execute.
Auto-maps: constant cols → drop, all-null cols → drop, sentinel values
→ replace with NULL, type-drift → TRY_CAST, exact duplicates → dedupe.
Inputs: source_id (required). Returns: object
auto_compareA
'Is B a safe drop-in for A?' — schema diff + drift + verdict (safe / risky / incompatible).
Inputs: source_a (required), source_b (required), keys. Returns: object
auto_exploreB
The flagship blind-audit macro. 'I have no idea what this is.'
Chains: detect_pattern → detect_metadata → load_source → modality classify
→ data_card. Returns a paste-ready introduction to an unknown dataset.
Inputs: path (required), hints. Returns: object
auto_modeling_auditA
'Can I train a model on this without footguns?'
Chains leakage + multicollinearity + stability + temporal* + class imbalance
into a single ranked-blocker brief with a verdict (do_not_train_yet /
train_with_mitigations / ready_to_train).
Downsamples to `max_rows` via reservoir sampling when the source is
larger — the per-column correlations these checks run can time out on
7M+ row sources but converge to the same conclusions at ~500K rows.
Set `max_rows` higher (or to a number above the source size) for the
full pass. The sample is materialized once and surfaced in `sample_info`.
Inputs: source_id (required), target_column (required), max_rows, time_column. Returns: object
auto_qualityA
'Is this data safe and clean?' — quality + duplicates + PII + bias in one call.
Inputs: source_id (required). Returns: object
check_arraysA
HDF5 / scientific-array EDA. Source must be loaded as hdf5 modality.
Walks the h5py tree and aggregates leaf datasets by their leaf name (so
all `.../energies` arrays across groups become one schema). Reports
per-leaf shape examples, dtype consistency, finite/NaN/Inf %, range,
units, valid_range. Flags NaN/Inf >1%, dtype drift across groups, fill
values (~9.97e36 / ±9999), and out-of-range values vs declared valid_range.
`max_groups` caps the walk depth for very large files. When the cap is
hit, the result's `cap_hit=true` and a critical finding is surfaced —
raise `max_groups` and re-run to cover the full file. Result also
reports `n_groups_total` (true total) vs `n_groups_walked` (visited).
Output size: scales with distinct leaf names; ~0.5–2KB per schema.
Inputs: source_id (required), max_groups. Returns: object
check_biasA
Class imbalance + sampling bias + (with hints) disparate impact (Level 5).
Always runs class-balance (2-20 cardinality cats) and chi-square sampling
bias. With both `outcome_column` + `protected_attributes`, also runs the
80%-rule disparate-impact ratio. Output size: small.
Inputs: source_id (required), outcome_column, protected_attributes. Returns: object
check_correlationsA
Pairwise correlation analysis (Level 2).
methods: ['pearson'] (default), or include 'spearman' for monotonic.
target: when given, also returns target-correlations and flags r>0.95 as
likely target leakage. Caps at 50 numeric columns. Output: top 50 pairs in
result; full matrix in artifact.
Inputs: source_id (required), target, methods. Returns: object
check_customA
Run every loaded plugin (custom YAML+SQL check) against source_id.
Plugins are loaded from the bundled `plugins_builtin/` directory plus any
directories passed via `--plugins`. Plugins skip themselves if their
`applies_to.has_columns` doesn't match the source schema. Output: each
finding includes the plugin name in `evidence.plugin`.
Inputs: source_id (required). Returns: object
check_dimensionalityA
PCA-based dimensionality + Hopkins clustering tendency (Level 3).
Standardizes the numeric matrix, runs SVD-based PCA. Returns variance-
explained curve, intrinsic dim (95% / 99% cumulative variance), effective
rank (entropy of variance shares), and Hopkins statistic (0.5 random,
>0.75 clustered, <0.3 grid-like). Caps at 50 features.
Output size: small.
Inputs: source_id (required), columns. Returns: object
check_distributionsA
Distribution shape per numeric column (Level 1).
Flags heavy skew (|γ₁|>2), multimodality (peak count), zero-inflation,
heavy tails. Suggests transforms (log/sqrt/yeo-johnson). Output size: small.
Inputs: source_id (required), columns. Returns: object
check_duplicatesA
Exact duplicate detection (Level 2).
Reports row-level exact duplicates and (if keys=[...] given) duplicate
groups under those keys. near=True is a placeholder for Phase 3 fuzzy
matching. Output size: small.
Inputs: source_id (required), keys, near. Returns: object
check_feature_signalA
Score every feature for signal strength relative to target_column.
Picks the right test by type pair: Pearson + Spearman for num↔num,
ANOVA F + η² for num↔cat, χ² + Cramér's V for cat↔cat, Welch t-test +
Cohen's d for boolean target × numeric. Returns ranked features with
effect sizes + plain-English strength buckets. Pairs with auto_modeling_audit.
Inputs: source_id (required), target_column (required). Returns: object
check_geospatialA
Auto-detect lat/lon columns and validate ranges.
Detection by name (lat/latitude/y, lon/longitude/x) or numeric range fit.
Flags out-of-range values (lat>±90, lon>±180), (0, 0) Null Island sentinel
clusters, and tiny-bbox concentration. Reports bbox + center + spread (km)
and (when a country column is present) the distinct geographies seen.
Inputs: source_id (required), lat_col, lon_col. Returns: object
check_leakageA
Three-layer leakage detection (Level 6).
Layer 1 (always): name heuristics — flags columns named like 'label_*',
'outcome_*', 'pred_*', 'post_*'. Layer 2 (with target): features whose
Pearson correlation with target > 0.95. Layer 3 (with target + time):
features that are constant within each time bucket but vary across
buckets (likely backfilled). Output size: small.
Inputs: source_id (required), time_column, target_column. Returns: object
check_multicollinearityA
Variance Inflation Factor + correlated-group detection (Level 3).
Reports per-column VIF, flags VIF>10 as problematic and VIF>5 as moderate.
Groups mutually-correlated features (|r|≥0.8) and suggests one drop per
group. Skips ID-like (unique) columns. Caps at 50 numeric columns.
Output size: small.
Inputs: source_id (required), columns. Returns: object
check_nested_structureA
For JSON-loaded sources, walk the nested STRUCT/LIST schema.
Per leaf path: declared type + presence percentage. Flags type-drift
(DuckDB JSON fallback indicates rows have inconsistent types) and
sparse paths (<80% presence). Returns a paste-ready flatten SQL using
struct_extract.
Inputs: source_id (required), sample. Returns: object
check_outliersA
Detect outliers in numeric columns using three methods side-by-side.
Methods: z-score (>3σ), IQR (>1.5×IQR beyond Q1/Q3), modified z-score
(median-MAD-based, robust to outliers themselves). Returns counts +
sample extreme values + row indices per method per column. Disagreement
between methods is itself diagnostic.
`verbose=False` (default) drops per-method extreme-value arrays from
the response (top-5 per flagged column is still in top_findings); set
True for the full dump. Full arrays are always in the artifact.
Inputs: source_id (required), columns, verbose, max_per_method. Returns: object
check_piiA
Detect PII via regex + column-name heuristics.
Patterns: email, phone, SSN, credit-card (Luhn-validated), IPv4, URL,
plus name/address/SSN field-name heuristics. Samples N rows per column
(default 5000). Returns redacted examples — never the raw values.
Output size: small.
Inputs: source_id (required), sample, strict, columns. Returns: object
check_qualityA
Reality + univariate quality checks (Levels 0–1).
Detects: schema sanity (duplicate column names, weird identifiers), empty
or constant columns, structured missingness (>20% nulls), sentinel values
masquerading as data (-999, 'N/A'), and string columns that should be numeric.
Output size: small; full report in artifact.
Inputs: source_id (required). Returns: object
check_stabilityA
Bootstrap stability of column means + signal-to-noise ratio (Level 6).
For each numeric column draws `n_bootstrap` resamples (with replacement),
computes the mean each time, and reports bootstrap_std, coefficient of
variation, and SNR. Flags CV>0.1 (unstable means) and SNR<1 (low signal).
Output size: small.
Inputs: source_id (required), columns, n_bootstrap. Returns: object
check_temporalA
Time-series sanity (Level 4). Requires time_column (DATE/TIMESTAMP).
Detects: gaps (period > median × 5), monotonicity, sampling frequency,
drift (first-half vs second-half mean shift > 1σ per numeric column),
and seasonality (autocorrelation peaks in daily counts). Output size: small.
Inputs: source_id (required), time_column (required), value_columns. Returns: object
check_text_columnsA
Analyze text-heavy string columns (avg length ≥ 20).
Per column: length distribution (avg/p50/p95/max), vocab size + top
tokens, near-duplicate %, content kind (prose/code/html/url/numeric/
categorical/mixed), encoding-artifact (mojibake) %. Flags high dedup
rate, mojibake, HTML content. Sample size cap on big data. Output size: small.
Inputs: source_id (required), sample, columns. Returns: object
clean_castA
New source with columns TRY_CAST to new dtypes per mapping.
Uses `TRY_CAST` so non-castable values become NULL rather than erroring
— appropriate for the type-drift workflow where a few outliers are fine.
Common casts: 'DOUBLE', 'INTEGER', 'BIGINT', 'VARCHAR', 'BOOLEAN', 'DATE'.
Inputs: mapping (required), source_id (required), alias. Returns: object
clean_drop_columnsA
New source with the named columns dropped. Original is preserved.
Returns the new source_id (auto-named `{source}_v{N}` unless `alias`
is provided), row/col deltas, and a Recipe with SQL/Polars/Pandas
equivalents for replay outside the MCP.
Inputs: columns (required), source_id (required), alias. Returns: object
clean_drop_duplicatesA
New source with duplicates removed.
Without `keys`: exact full-row deduplication (`SELECT DISTINCT *`).
With `keys`: keeps the first row per key combination via ROW_NUMBER.
Inputs: source_id (required), keys, alias. Returns: object
clean_filterA
New source with rows matching where_sql dropped (default) or kept.
`where_sql` is a DuckDB WHERE clause without the WHERE keyword:
e.g. `"age < 0 OR age > 130"` or `"region IS NULL"`. Defaults to
drop-matching (filter-out semantics); pass `keep=True` to keep instead.
Inputs: source_id (required), where_sql (required), keep, alias. Returns: object
clean_imputeA
Fill nulls in named columns with a strategy.
`mapping` is `{column: {"strategy": "median", "value": optional}}`.
Strategies: `mean`, `median`, `mode`, `zero`, `constant` (requires
`value`). Example:
`{"customer_rating": {"strategy": "median"},`
` "country": {"strategy": "constant", "value": "UNKNOWN"}}`
Inputs: mapping (required), source_id (required), alias. Returns: object
clean_pipelineA
Apply a sequence of cleaning ops in order. Returns one new source.
`ops` is a list of `{"kind": str, "args": dict}` (the same shape that
`auto_clean` produces). Each op runs sequentially against the previous
stage's output. Final stage gets `alias` (default `{source}_clean`).
`materialize=True` (default) collapses the final result into a real
DuckDB TABLE so downstream queries (run_sql, auto_modeling_audit,
suggest_plots, etc.) don't have to re-evaluate the whole filter/
replace chain. Turn off for short-lived exploratory cleanups where
you won't query the output much.
Inputs: ops (required), source_id (required), alias, materialize. Returns: object
clean_rename_columnsA
New source with columns renamed per {old: new} mapping.
Inputs: mapping (required), source_id (required), alias. Returns: object
clean_replaceA
New source with column values replaced per mapping.
Use the JSON value `null` (Python `None`) to map to SQL NULL — the
canonical way to remove sentinel values like 'NA' or -999.
Example: `mapping={"NA": null, "?": null, -999: null}`.
Inputs: column (required), mapping (required), source_id (required), alias. Returns: object
clean_transformA
Apply mathematical transforms to numeric columns in place.
`mapping` is `{column: kind}` where kind is one of:
`log1p` → LN(x + 1) — handles zeros, common for skewed counts
`sqrt` → SQRT(MAX(0, x)) — gentler than log
`z_score` → (x - mean) / std — zero-mean, unit-variance
`min_max` → (x - min) / (max - min) — rescale to [0, 1]
Inputs: mapping (required), source_id (required), alias. Returns: object
compare_groupsA
Statistical comparison of metric_column across group_column levels.
2 groups → Welch's t-test or Mann-Whitney U (depending on normality)
+ Cohen's d / rank-biserial effect size + 95% CI on mean difference.
>2 groups → ANOVA or Kruskal-Wallis + eta-squared. Returns per-group
stats, the test result, and a plain-English interpretation.
Inputs: source_id (required), group_column (required), metric_column (required). Returns: object
compare_sourcesA
Schema diff + per-column distribution drift between two loaded sources.
Returns a 'drop-in verdict' (safe / risky / incompatible). Numeric drift
via PSI (Population Stability Index, scale-invariant) + KS test p-value.
Categorical drift via PSI + chi-square + value-set diff. Auto-samples
sources over 500K rows. Pass `keys` for join-key overlap stats.
Inputs: source_a (required), source_b (required), keys. Returns: object
data_cardA
Synthesize a paste-ready brief about source_id.
Either runs `run_eda deep` fresh or, if `run_id` is provided, reuses that
artifact. Returns a Markdown document by default with sections: Bottom
Line · Critical Issues · Cleaning Steps · Modeling Concerns · Compliance &
Sharing · What's Missing · How to Load · Suggested Next Actions.
audience ∈ {auto, ml, analyst, engineer} — controls section ordering and
emphasis. The Markdown is the primary output for chat UIs. The structured
per-section breakdown is omitted by default (same content as `markdown`,
doubles response size); set `include_sections=True` if you need it
programmatically. The full structured data is always in the artifact.
Inputs: source_id (required), hints, format, run_id, +2 more. Returns: object
describe_sourceA
Return schema (name, dtype, nullability), N sample rows, and footprint for a loaded source.
Output size: small. Sample row count is capped at the requested value (default 5).
Inputs: source_id (required), sample_rows. Returns: object
detect_metadataA
Find sidecar metadata in or alongside path: README, LICENSE, data dictionary, dataset card, manifest YAML/JSON.
Excerpts long files at 1500 chars. Output size: small to medium.
Inputs: path (required). Returns: object
detect_patternA
Scan a directory (or single file) and identify its multi-file structure.
Recognizes: partitioned_parquet, partitioned_csv, mysql_dump, multi_hdf5,
related_tables, image_folder, text_corpus, single_file. Returns suggested
load_source(args) the agent can invoke directly.
Output size: small to medium (file lists capped at 50).
Inputs: path (required). Returns: object
detect_schema_evolutionA
Walk an ordered list of source_ids and report schema changes over time.
Detects: column added (first appearance), column removed (last appearance),
type changed. Useful for monitoring partitioned data (monthly parquets,
API version snapshots) for breaking changes. Output size: small.
Inputs: source_ids (required). Returns: object
eda_storyboardA
Use ONLY for "walk me through the dataset" / full visual tour requests — generates a 5–8-plot sequence (missingness → distribution → Q-Q → correlations → pairs → time → grouped) with narrative between each plot.
For specific questions like "show me distribution of X", call
`plot_distribution` directly — single-image responses render more
reliably across chat UIs and don't risk filename-collision bugs in
clients that name images by ms-resolution timestamp.
Returns full JSON (paste-ready Markdown + section list) AND, when
`inline_images=True` (default), interleaves per-section narrative +
inline ImageContent so capable chat UIs display the tour inline. Pass
`inline_images=False` if your client errors with "Maximum call stack
size exceeded" on the multi-image response — JSON + file:// paths only.
Plots are written to disk either way.
Downsamples to `max_rows` via reservoir sampling on large sources —
seven plots × millions of rows materializes hundreds of MB of
intermediate Python objects and can OOM the MCP process. `sample_info`
in the result tells you what was sampled.
Inputs: source_id (required), hints, max_rows, inline_images.
export_sourceB
Write a source (cleaned or original) to disk via DuckDB COPY.
`format`: `parquet` (default), `csv`, `json` (array), `ndjson` (one obj
per line). `path` may be a directory (auto-named) or a full file path.
Returns path, row/col counts, and file size.
Inputs: path (required), source_id (required), format, overwrite. Returns: object
fingerprint_sourceA
Compute a stable hash of (schema + content sniff) for a loaded source.
Use the returned `fingerprint` to detect whether a dataset has changed
across MCP sessions without re-running EDA. Output size: tiny.
Inputs: source_id (required). Returns: object
generate_reportB
Generate a self-contained HTML report for source_id.
Single offline-viewable HTML file with: identity header, severity-counted
verdict, all findings from a deep audit, embedded plots (missingness +
distributions + correlation heatmap, all as base64 PNGs), per-column
profile table, sample rows. No external assets — emailable, attachable.
Output: small (path-only); the HTML itself is large (~100–500KB).
Inputs: source_id (required), hints, audience. Returns: object
get_eda_findingsA
Fetch a filtered, paginated view of findings from a prior run_eda artifact.
Filters compose with AND. severity ∈ {critical, warn, info}. Use offset/limit
to page through. Cheap — reads cached JSON, no recomputation.
Output size: scales with limit; default ~5–50KB.
Inputs: run_id (required), limit, column, offset, +2 more. Returns: object
infer_recipesA
Generate ready-to-paste loader code for the source: Python (DuckDB), Polars, Pandas, and SQL.
Lets users reproduce loading without the MCP. target='all' returns every
flavor; specify one (python|polars|pandas|sql) for just that. Output size: small.
Inputs: source_id (required), target. Returns: object
list_filesA
List files under path (file, directory, or glob).
Useful when you don't know what's in a directory and need to find a
specific file before calling load_source. For HDF5/array directories,
prefer detect_pattern() which also classifies the multi-file structure.
Output size: small (file list capped at max_files).
Inputs: path (required), max_files. Returns: object
list_sourcesA
List every data source currently loaded in this MCP session.
Output size: small (<2KB typical). No arguments. Cheap.
Inputs: no named parameters. Returns: object
load_sourceA
Load a CSV / TSV / Parquet / JSON / NDJSON file (or glob, or directory) and register it as a queryable source.
Auto-detects format from extension; pass format= to override. For globs and
directories, files are unioned (must share schema). Returns the new source's
id, format, modality, schema, row count, size, and a stable fingerprint.
Output size: small-to-medium (schema scales with column count).
Inputs: path (required), alias, format, options. Returns: object
peek_arrayA
Read a small slice from one HDF5 dataset (the missing companion to check_arrays).
HDF5 sources don't have SQL views, so `sample_rows` / `run_sql` can't
inspect them. Use this to read raw values.
`path` accepts either:
- an absolute h5py path like `/gdb11_s08/molecule_1/coordinates`, or
- a leaf name like `coordinates`, which resolves to the first match
and reports other matching paths in `other_matches`.
`n` controls how many rows along the leading axis to return (default 5;
capped at ~500 values total for payload safety).
Output: dtype, full shape, returned slice shape, JSON-safe values,
plus `units` and `valid_range` if declared as HDF5 attributes.
Inputs: path (required), source_id (required), n. Returns: object
plot_boxplotC
Box plot, optional group_by categorical. JSON + inline PNG.
Inputs: columns (required), source_id (required), group_by.
plot_correlation_heatmapC
Correlation matrix as a colored heatmap. JSON + inline PNG.
Inputs: source_id (required), method, columns.
plot_distributionA
The right tool to answer "show me the distribution of X" — single column gets one histogram; multiple columns get a faceted grid.
Numeric columns are server-side binned (small spec, fast); categorical
columns get top-50 value counts. Returns the structured JSON + the
rendered PNG as inline MCP ImageContent (chat UIs that render images
natively will display it directly). Single-image responses render
reliably across all MCP clients — prefer this over eda_storyboard for
focused per-column questions.
Inputs: columns (required), source_id (required), bins.
plot_facetB
Distribution faceted by a categorical (small multiples). JSON + inline PNG.
`ncols` controls the grid width (panels per row). Renamed from
`columns` to avoid clashing with `columns: list[str]` used by other
plot tools.
Inputs: column (required), facet_by (required), source_id (required), bins, +1 more.
plot_missingnessB
Per-column null-percentage bar chart. JSON + inline PNG.
Inputs: source_id (required).
plot_pairB
N×N scatter matrix across top numeric columns. JSON + inline PNG.
Inputs: source_id (required), sample, columns.
plot_qqC
Q-Q plot vs normal. JSON + inline PNG.
Inputs: column (required), source_id (required).
plot_scatterB
Scatter of x vs y. Auto-samples >sample rows. JSON + inline PNG.
Inputs: x (required), y (required), source_id (required), color, +1 more.
plot_timeseriesC
Line plot over time. JSON + inline PNG.
Inputs: source_id (required), time_column (required), value_columns (required), agg, +1 more.
plot_violinC
Density-violin plot. JSON + inline PNG.
Inputs: column (required), source_id (required), group_by.
profileA
Per-column profile: type, kind, null %, cardinality, basic stats, top values.
For numeric columns: mean, median, std, min/max, percentiles, skew, kurtosis.
For string/categorical: cardinality, top values, length stats.
Single DuckDB SUMMARIZE pass + per-column extras; fast on millions of rows.
Output size: scales with column count; ~1-3KB per column.
Inputs: source_id (required), columns. Returns: object
recommend_nextA
Return ranked, pre-filled next-action tool calls.
Pass `source_id` (will run quick EDA if no run cached) or `run_id`
(reads from artifact). Suggestions come back with full args ready to
invoke — designed for local models that pick from a numbered menu.
Inputs: hints, run_id, source_id. Returns: object
recommend_tasksA
Propose ML / analytical tasks the data is well-suited for.
Heuristic-driven: scans column types and shapes to suggest classification,
regression, time-series forecasting, segmentation, anomaly detection, or
recommendation tasks. Each suggestion includes target candidate, predictor
list, feasibility (high/medium/low), challenges, and a one-line first step.
Inputs: source_id (required). Returns: object
run_edaA
Run a preset bundle of checks. Returns one summary card + run_id + artifact path.
Presets:
- 'quick' — Level 0–1 (profile + check_quality), <1s for typical data.
- 'standard' — Level 0–2 (adds distributions, correlations, duplicates), <10s.
- 'deep' — Level 0–6 (adds multicollinearity, temporal*, leakage, bias, pii).
- 'exhaustive' — deep + dimensionality + stability + text columns.
*temporal only runs when hints.time_column is provided.
hints (optional): {target_column, time_column, group_columns,
protected_attributes, id_columns, domain}. Pre-fills follow-up tool calls
and unlocks target-leakage / disparate-impact checks. Output size: small
(top-10 findings); full results written to artifact.
Inputs: source_id (required), hints, preset. Returns: object
run_sqlA
Run arbitrary SQL against the session's DuckDB connection. Read-only by default.
Cross-source JOINs work because every loaded source is a view in the same
connection. Rows are capped at `limit` (default 100). Returns rows + schema +
a `truncated` flag.
Output size: scales with limit; default ~10–50KB.
Inputs: sql (required), limit. Returns: object
sample_rowsA
Pull a sample from a loaded source.
modes: 'random' (USING SAMPLE), 'head', 'tail', 'stratified' (requires stratify_by).
`columns` scopes the projection — useful on wide sources (20+ cols) where
returning everything inflates the JSON response. Default returns all columns.
Output size: scales with n × columns; default ~5KB on a typical narrow source.
Inputs: source_id (required), n, mode, columns, +1 more. Returns: object
suggest_plotsA
Recommend the most informative plots for a loaded source.
Inspects the column kinds, missingness, and (if hints provided) target/
time columns to rank plot suggestions. Returns pre-filled tool calls
(similar to recommend_next): label, plot_kind, call, args, why, priority.
Profiles from a reservoir sample of `max_rows` rows on large sources;
the suggested plot calls themselves still reference the original
source_id. `sample_info` in the result tells you what was sampled.
Output size: small.
Inputs: source_id (required), hints, max_rows, max_suggestions. Returns: object
summarize_runA
Re-summarize a prior run_eda artifact through a different lens.
focus ∈ {quality, bias, modeling, all} — filters findings to the
relevant categories without recomputing.
Inputs: run_id (required), focus. Returns: object
unload_sourceA
Unregister a previously loaded source and free its DuckDB view.
Idempotent. Output size: tiny.
Inputs: source_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 69 tools
Most tools have clearly distinct purposes, but auto_compare and compare_sources both perform schema diff + drift analysis and return a safe/risky/incompatible verdict, making them easy to confuse. A few other pairs (auto_quality vs. run_eda, plot_facet vs. plot_distribution) are related but descriptions clarify their roles.
The vast majority of tools follow a verb_noun pattern (check_*, clean_*, plot_*, auto_*, detect_*), but a few outliers like data_card, eda_storyboard, and profile break the pattern. The auto_* prefix also mixes verbs and nouns, but overall the conventions are largely consistent.
With 69 tools, the server is far beyond the typical 3-15 well-scoped range, and exceeds the 50+ extreme threshold. The sheer number forces agents to scan a massive list for every decision, hurting usability despite the broad feature set.
The tool surface covers the full data lifecycle: loading, exploring, profiling, quality checking, cleaning, plotting, comparison, reporting, and export. There are no obvious dead ends, and composite macros like auto_explore, auto_quality, and run_eda stitch the pieces together well.
Related MCP Connectors
MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.
MCP server for building and testing AI agents with multi-model experimentation and insights.
The AI that understands raw data: Schema over your tables and databases, as MCP tools.
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that provides data visualization and machine learning tools, featuring automated intent-based pipeline routing for data cleaning and model training. It enables LLMs to process CSV or JSON data to generate visual charts, perform regressions, or execute clustering analysis.16-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables the analysis of CSV and Parquet files by providing tools for statistical summaries, data previews, and structure exploration. It allows users to query local datasets and create sample data using natural language.-
- AlicenseAqualityDmaintenanceEnables exploratory data analysis through an MCP server, allowing AI assistants to load datasets, compute summary statistics, generate diagnostic plots, perform correlation analysis, and produce full markdown reports.6MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants the ability to connect to, query, profile, and monitor data sources — turning any LLM into an interactive data engineering copilot.MIT