Skip to main content
Glama

eda-mcp

An MCP server for exploratory data analysis. Point it at a dataset and let your AI assistant do the analysis — summary statistics, diagnostic plots, correlation analysis, and full markdown reports, all from a single conversation.

Built by MLMecham.


Quickstart

Run instantly with no install step:

uvx eda-mcp

Or install permanently:

pip install eda-mcp

Related MCP server: holoviz-viz-mcp

Connecting to Claude Desktop

Add this to your claude_desktop_config.json:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "eda-mcp": {
      "command": "uvx",
      "args": ["eda-mcp"]
    }
  }
}

Restart Claude Desktop. The tools will appear automatically.

Tip: Add --refresh to always pull the latest version from PyPI on startup:

"args": ["--refresh", "eda-mcp"]

Troubleshooting

Tools not appearing after install or update

uvx caches the installed version and won't update automatically. Force a refresh:

uvx --refresh eda-mcp --help

Then fully quit and reopen Claude Desktop (not just close the window).

Check server logs

If the tools still don't appear, check the MCP server logs:

  • Windows: %APPDATA%\Claude\logs\mcp-server-eda-mcp.log

  • Mac: ~/Library/Logs/Claude/mcp-server-eda-mcp.log


Tools

Tool

Description

load_dataset

Load a file and return a structural overview — column names, types, classifications, missing value counts, and duplicate stats. Start here.

query_dataset

Run a DuckDB SQL query and return the same overview as load_dataset. Supports local files, remote sources (S3, GCS, HTTP), SQLite, and cross-file joins. Result saved to Parquet for use with other tools.

get_column_summary

Full statistics for a single column. Accepts optional classification override and full_summary=False for a compact output.

get_all_summaries

Summary statistics for every column at once, keyed by column name.

get_column_summary_by_group

Summary statistics for a column broken down by one or more group columns. Compact by default, full_summary=True for detailed output.

get_diagnostic_plot

Generate a diagnostic plot for a single column. Plot type is auto-selected by classification. Accepts optional classification override.

get_correlations

Compute all three association types: Pearson + Spearman (numeric), Cramér's V (categorical), and eta-squared (mixed). Each type toggleable independently with separate thresholds.

compare_distributions

Compare the distributions of two data slices column by column. Accepts file paths or SQL queries. Returns labeled deltas for all numeric and categorical columns.

generate_report

Full EDA report — dataset overview, data quality flags, per-column summaries with plots, and full association analysis. Saved as markdown.


Supported File Formats

Format

Extension

CSV

.csv

Parquet

.parquet

Excel

.xlsx, .xls

JSON

.json

Newline-delimited JSON

.ndjson

Avro

.avro

SQLite

.db, .sqlite

DuckDB

.duckdb

String columns are automatically coerced to better types on load (integers, floats, dates) where unambiguous.

For SQLite and DuckDB files with multiple tables, pass the table parameter to specify which one. If the database has exactly one table it is loaded automatically.

Querying with SQL

Use query_dataset for SQL-based loading, remote sources, or cross-file joins:

-- Filter before analysis
SELECT * FROM 's3://bucket/sales.parquet' WHERE year = 2024

-- Cross-file join — mix any DuckDB-readable sources
SELECT t.*, p.bst FROM 'trainers.csv' t JOIN 'pokemon.parquet' p ON t.pokemon = p.name

-- Query a local DuckDB database (pass db_path separately)
SELECT * FROM my_table

-- Hive-partitioned S3
SELECT * FROM read_parquet('s3://bucket/data/', hive_partitioning=true)

Pass the result_path from query_dataset to any other tool exactly like a regular file_path.


Association Analysis

get_correlations computes three types of associations in one call:

Type

Measure

Columns

Default threshold

numeric

Pearson + Spearman

continuous, discrete

0.5

categorical

Cramér's V

categorical, binary

0.3

mixed

Eta-squared (η²)

categorical vs numeric

0.1

Toggle each type with numeric=True/False, categorical=True/False, mixed=True/False. Set plots=True to generate heatmaps and pair-level charts.

Comparing distributions

compare_distributions diffs two slices column by column:

# Compare two cut grades
compare_distributions(
    "SELECT * FROM 'diamonds.parquet' WHERE cut='Ideal'",
    "SELECT * FROM 'diamonds.parquet' WHERE cut='Fair'",
    label_a="Ideal", label_b="Fair"
)

# Compare two time periods
compare_distributions("sales_2023.parquet", "sales_2024.parquet", label_a="2023", label_b="2024")

Returns mean, median, std, outlier, and missing value deltas per column — Claude can immediately say how much each statistic changed.


Column Classifications

Every column is automatically classified before analysis:

Classification

Description

continuous

Floats, or integers with more than 20 unique values

discrete

Integers with 20 or fewer unique values

categorical

Strings with low cardinality (< 5% unique ratio or ≤ 10 unique values)

binary

Booleans, or any column with exactly 2 unique non-null values

temporal

Date, Datetime, or Duration columns

high_cardinality

Likely identifiers, UUIDs, or free text — statistical summary skipped

Pass classification="categorical" to any summary or plot tool to override the auto-detected type.


Using as a Python Library

The core functions are also importable directly:

from eda_mcp import (
    load_file, load_query,
    classify_column, get_summary,
    numeric_columns, categorical_columns,
    compute_correlations, compute_cramers_v, compute_eta_squared,
    generate_markdown_report,
)

df = load_file("data/sales.parquet")
summary = get_summary(df["revenue"])
generate_markdown_report(df, "data/sales.parquet", "output/")

# Query and analyze
df = load_query("SELECT * FROM 'data.parquet' WHERE region='West'")

Example Prompts

Once connected to Claude:

Analyze this dataset: /path/to/data.csv
Join the Batting and People tables in my Lahman SQLite database and generate a full EDA report
Compare the price distribution between Ideal and Fair cut diamonds
How does revenue vary across regions and product categories?
What columns in sales.parquet have missing values?
Generate a full EDA report for customers.xlsx

Requirements

  • Python 3.11+

  • Dependencies are installed automatically via uvx or pip


License

MIT

Available Tools

6 tools
generate_reportA

Generate a complete EDA markdown report for the entire dataset. This is the main tool to call for a thorough, end-to-end analysis. The report includes:

  • Dataset overview: row count, column count, memory usage, total missing values

  • Data quality flags: columns with >20% missing values, imbalanced binary columns, high cardinality columns, columns with infinite values, columns with >10% outliers by IQR method

  • Per-column variable summaries: statistics table, diagnostic plot image, and a 2-3 sentence plain english interpretation of the distribution shape, outliers, and data quality for each column

Saves the report as {filename}_eda_report.md in output_dir alongside the diagnostic plot PNGs. Returns the path to the saved report file.

For quick inspection of a single column use get_column_summary or get_diagnostic_plot instead of running the full report.

Inputs: file_path (required), output_dir, table.

get_all_summariesA

Return summary statistics for every column in the dataset in a single call, keyed by column name. Each value contains all statistics appropriate for the column's detected type — equivalent to calling get_column_summary once per column.

Use this for a complete statistical overview of the entire dataset at once. For large datasets with many columns, prefer get_column_summary to inspect individual columns of interest rather than loading everything at once.

Inputs: file_path (required), table.

get_column_summaryA

Return full summary statistics for a single column. The column type is auto-detected and the appropriate statistics are computed:

  • continuous/discrete: five-number summary, mean, std, skewness with plain english label, kurtosis with label, outlier count (IQR method), zero count, infinite count, normality test (scipy normaltest p-value and result)

  • categorical: mode, top 10 value counts with percentages

  • binary: mode, top value counts, class balance ratio with imbalance flag (flagged if majority:minority ratio exceeds 3:1)

  • temporal: min/max date, date range in days, gap count, most common year and month

  • high_cardinality: flagged as likely ID or free text with sample values only

Use this to investigate a specific column in depth after calling load_dataset to identify columns of interest.

Inputs: file_path (required), column (required), table.

get_correlationsA

Compute pairwise correlations between all numeric columns in the dataset and generate a Spearman correlation heatmap. Scatter plots are generated for column pairs with a Spearman correlation above the threshold.

Returns both Pearson and Spearman correlation matrices, the strongest pairs above the threshold (sorted by absolute Spearman correlation, max 10), highly correlated flags for pairs with |ρ| >= 0.9, and file paths for all generated plots.

Only continuous and discrete columns are included — categorical, binary, temporal, and high_cardinality columns are excluded automatically.

threshold controls which pairs get scatter plots (default 0.5). Set higher e.g. 0.7 for only strong correlations, lower e.g. 0.3 to cast a wider net. Scatter plots are capped at 10 pairs regardless of threshold.

Inputs: file_path (required), output_dir, threshold, table.

get_diagnostic_plotA

Generate and save a diagnostic plot for a single column as a PNG file. The plot type is automatically selected based on the column's classification:

  • continuous: 2x2 panel — histogram with KDE overlay, boxplot with outliers, QQ plot with reference line, ECDF

  • discrete: bar chart of value counts and boxplot side by side

  • categorical: horizontal bar chart of top 20 values with percentage labels

  • binary: bar chart of class balance with proportion labels; bars are red if the majority:minority ratio exceeds 3:1

  • temporal: line plot of counts over time and bar chart of counts by month

  • high_cardinality: no plot is generated; a message is returned instead

Saves the PNG to output_dir/{column}_diagnostics.png and returns the file path. Use output_dir to control where plots land — the same folder as the dataset or a dedicated output directory both work well.

Inputs: file_path (required), column (required), output_dir (required), table.

load_datasetA

Load a dataset and return a structural overview. Call this first when exploring an unfamiliar dataset — it gives you the shape, column types, classifications, and missing value counts you need to decide what to investigate next.

Returns: column names, dtypes, row count, per-column classifications (continuous, discrete, categorical, binary, temporal, high_cardinality), missing value counts and percentages per column.

Supports CSV, Parquet, Excel (.xlsx/.xls), JSON, NDJSON, Avro, and SQLite (.db/.sqlite). For SQLite files with multiple tables, pass the table name via table. If omitted and the database has exactly one table, it is loaded automatically.

Inputs: file_path (required), table.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: loading data, per-column statistics, bulk statistics, diagnostic plots, correlations, and full report generation. Descriptions further clarify when to use each, with references between tools to avoid confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern: load_dataset, get_column_summary, get_all_summaries, get_diagnostic_plot, get_correlations, generate_report. No mixing of styles or vague verbs.

    Tool Count5/5

    With 6 tools, the server is well-scoped for its EDA purpose. Each tool serves a necessary function without redundancy, and the count is appropriate for a focused toolkit.

    Completeness4/5

    The tool surface covers the core EDA workflow: loading, single-column summaries and plots, multi-column summaries, correlations, and a comprehensive report. Minor gaps like bivariate categorical analysis or data profiling exist, but the set is reasonably complete for exploratory analysis.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      An MCP server that enables AI assistants to load, query, and analyze local CSV files using tools for filtering, aggregation, and grouping. It provides capabilities to describe schemas, calculate statistics, and sample data directly from CSV files.
      6
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables AI assistants to create interactive visualizations, perform statistical analysis, run auto-EDA, and build dashboards using the HoloViz ecosystem with self-contained HTML output.
      36
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      An MCP server for dataset exploration and analysis, enabling LLM clients to perform summary, correlation, distribution, missing value analysis, data cleaning, and statistical tests directly on CSV files.
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A statistical analysis MCP server offering 30 tools for descriptive statistics, hypothesis tests, regression, and time series, all returning Markdown reports with automatic interpretations to enable AI agents to perform comprehensive data analysis.
      MIT