Skip to main content

MCP server for exploratory data analysis

Project description

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

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.


Tools

Tool Description
load_dataset Load a file and get column names, types, classifications, and missing value counts. Start here.
get_column_summary Full statistics for a single column — five-number summary, skewness, kurtosis, outlier count, normality test.
get_all_summaries Summary statistics for every column at once, keyed by column name.
get_diagnostic_plot Generate a diagnostic plot for a single column. Plot type is auto-selected by classification.
get_correlations Pearson and Spearman correlation matrices, a heatmap, and scatter plots for strongly correlated pairs.
generate_report Full EDA report — dataset overview, data quality flags, per-column summaries with plots, and correlation 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

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

For SQLite files with multiple tables, pass the table parameter to specify which one.


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

Using as a Python Library

The core functions are also importable directly:

from eda_mcp import load_file, classify_column, get_summary, generate_markdown_report

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

Example Prompts

Once connected to Claude:

Analyze this dataset: /path/to/data.csv
What columns in sales.parquet have missing values?
Is age correlated with income in this file?
Generate a full EDA report for customers.xlsx

Requirements

  • Python 3.11+
  • Dependencies are installed automatically via uvx or pip

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eda_mcp-0.1.1.tar.gz (137.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eda_mcp-0.1.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file eda_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: eda_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 137.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for eda_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 47417884431780c281078ecdfeca8b09083a565a4343720e3b93f500cfe5186c
MD5 87c7d63ea5fe17f927c001e9a3e7059f
BLAKE2b-256 9215717a2067cc70b0f2205ddfca795893bebe1339c4799c51b5d9982826d2d8

See more details on using hashes here.

File details

Details for the file eda_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: eda_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for eda_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 afef12b1a0a52553c92ae166c8a2bd2aaf4e7f24089e8429e1af4f7abdc9e637
MD5 65efd9cbf0adf6cc7686c3d5e4339be8
BLAKE2b-256 bc12dbf9231033814457be4d3590f943438a9977391d32200195ccec0fda7d4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page