eda-mcp
eda-mcp is an MCP server for exploratory data analysis (EDA) that lets AI assistants load datasets, compute statistics, generate plots, and produce comprehensive reports.
Load a dataset (
load_dataset): Load local files (CSV, Parquet, Excel, JSON, NDJSON, Avro, SQLite, DuckDB) and get a structural overview — column names, types, classifications, row count, and missing value counts.Query with SQL (
query_dataset): Run DuckDB SQL queries against local files, remote sources (S3, GCS, HTTP), or perform cross-file joins; results are saved to Parquet for further analysis.Single column summary (
get_column_summary): Retrieve full statistics for one column — five-number summary, skewness, kurtosis, outlier count, normality test, value counts, class balance, date ranges, etc., depending on column type.All column summaries (
get_all_summaries): Retrieve summary statistics for every column in a single call.Diagnostic plots (
get_diagnostic_plot): Auto-generate and save a PNG plot for a column — histograms/KDE/boxplot/QQ for continuous, bar charts for categorical/binary, time series for temporal, etc.Correlation analysis (
get_correlations): Compute Pearson and Spearman correlation matrices, generate a heatmap, and produce scatter plots for strongly correlated numeric pairs.Full EDA report (
generate_report): Produce a markdown report with dataset overview, data quality flags, per-column summaries with diagnostic plots, and plain-English interpretations.
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., "@eda-mcp Generate a full EDA report for customers.xlsx"
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.
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-mcpOr install permanently:
pip install eda-mcpRelated 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
--refreshto 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 --helpThen 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.logMac:
~/Library/Logs/Claude/mcp-server-eda-mcp.log
Tools
Tool | Description |
| Load a file and return a structural overview — column names, types, classifications, missing value counts, and duplicate stats. Start here. |
| Run a DuckDB SQL query and return the same overview as |
| Full statistics for a single column. Accepts optional |
| Summary statistics for every column at once, keyed by column name. |
| Summary statistics for a column broken down by one or more group columns. Compact by default, |
| Generate a diagnostic plot for a single column. Plot type is auto-selected by classification. Accepts optional |
| 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 the distributions of two data slices column by column. Accepts file paths or SQL queries. Returns labeled deltas for all numeric and categorical columns. |
| 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 |
|
Parquet |
|
Excel |
|
JSON |
|
Newline-delimited JSON |
|
Avro |
|
SQLite |
|
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 |
| Pearson + Spearman | continuous, discrete | 0.5 |
| Cramér's V | categorical, binary | 0.3 |
| 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 |
| Floats, or integers with more than 20 unique values |
| Integers with 20 or fewer unique values |
| Strings with low cardinality (< 5% unique ratio or ≤ 10 unique values) |
| Booleans, or any column with exactly 2 unique non-null values |
| Date, Datetime, or Duration columns |
| 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.csvJoin the Batting and People tables in my Lahman SQLite database and generate a full EDA reportCompare the price distribution between Ideal and Fair cut diamondsHow does revenue vary across regions and product categories?What columns in sales.parquet have missing values?Generate a full EDA report for customers.xlsxRequirements
Python 3.11+
Dependencies are installed automatically via
uvxorpip
License
MIT
Available Tools
6 toolsgenerate_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
Scored across 6 tools
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.
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.
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.
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
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceAn 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-
- AlicenseAqualityDmaintenanceAn 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.36MIT
- FlicenseAqualityDmaintenanceAn 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-
- AlicenseNot gradedqualityDmaintenanceA 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