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 "Install 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-mcpGenerate 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: mcp-csv-analyst
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MLMecham/eda-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server