Stats Explorer MCP: verified statistics for AI agents

18 statistics and analytics tools an AI assistant can call instead of guessing numbers, on data files of any size:
- Tests: t-tests, z-tests, ANOVA (with a Tukey HSD post-hoc), ANCOVA, MANOVA, chi-square, Fisher's exact, binomial and correlation.
- A/B testing: A/B and A/B/n readouts with lift intervals, sample ratio check, Bayesian probabilities and segment breakdowns, plus sample-size planning.
- Analytics: totals, averages and counts by category (top N), and "what drives X?" rankings across every column.
- Helpers: descriptive stats, confidence intervals, power analysis, a "which test should I use?" tool, and a data-file inspector.
The tools can read a developer's CSV, TSV, Excel or Parquet files by column name, so large datasets never get pasted into the chat. Each result includes:
- the effect size and confidence interval,
- a plain-English interpretation,
- warnings when an assumption looks shaky.
Every calculation is checked against SciPy and statsmodels in an automated test suite. Everything runs on your machine: no accounts, no uploads, no network calls (unless you turn on Jev's enforce mode).
An honest write-up for every hypothesis test
Ask whether a difference is real, and the assistant follows the six steps from Stats Explorer's Bring it all together guide, in order:
- state the question, hypotheses and test;
- check the assumptions;
- check spread;
- check power;
- run the test;
- sanity-check base rates.
It can't skip ahead, and it can't pick the test after seeing the results.

You confirm every choice
Before anything runs, VS Code shows you the columns, groups, chart type or report sections the assistant picked, as dropdowns you can change. Nothing gets analysed or reported that you didn't ask about.

Exploring is not testing
"Summarise this", "show me the distribution", "chart X by Y": the assistant recognises when you just want to explore. You get statistics and charts with no invented hypotheses, no p-values, and no hypothesis section in the report.

Images show real output from the extension on a sample dataset.
Set up in a minute
GitHub Copilot (VS Code):
- Install this extension (you're on its page). It needs nothing else, not even Node.js.
- Open Copilot Chat and set the mode to Agent.
- Click the tools icon in the chat box: Stats Explorer should be listed and ticked.
- Open the folder with your data and ask away.
Claude Code (terminal or the Claude panel in VS Code):
- Install Node.js 22 or later.
- Run Stats Explorer: Copy Setup Command for Claude Code from the Command Palette (Ctrl+Shift+P), paste it into a terminal and press Enter. Or type it yourself:
claude mcp add -s user stats-explorer -e STATS_EXPLORER_CONFIRM_VIA=chat -- npx -y stats-explorer-mcp
- Start a new Claude session (Command Palette → Developer: Reload Window, then New session). Type
/mcp to check that stats-explorer is connected.
Claude asks you to confirm choices in the chat; reply to approve or change them.
New in 1.5: A/B tests and Tukey HSD
- "Did the new checkout page (B) beat the old one (A) in experiment.csv? Break it down by device." gives the lift with its interval, a sample ratio mismatch check, adjusted p-values for A/B/n, the Bayesian probability to beat the control and a decision, for conversion rates or revenue-type metrics.
- "How many visitors do I need to detect a 10% lift on a 4% conversion rate?" plans the test, including how many days it will take.
- Every ANOVA now names the groups that differ (Tukey HSD), with the best group and a letter display.
New in 1.4: checked by Jev
Connect Jev (TypeSafe's fast judgment model) next to Stats Explorer. Stats Explorer computes every number, and Jev independently checks two things:
- The test plan: the right test, the right hypotheses, the right columns.
- The written conclusions: do they match the results?
Stats Explorer also runs its own checks on every claim: are the numbers in the results, does "significant" match the p-value, is there causal wording? Only claims that pass go into your report, and the report lists every check.
Set Stats Explorer › Jev: Mode:
- cooperate needs no orchestrator. Copilot or Claude calls your Jev MCP server with a ready-made packet, then records Jev's answer. Add a Jev server in
.vscode/mcp.json (for example npx -y @jkudish/jev-mcp with your TYPESAFE_API_KEY).
- enforce: Stats Explorer calls the Jev API itself, so the AI can't skip or alter the check. Run Stats Explorer: Set TypeSafe API Key; the key is kept in VS Code's secret storage.
- orchestrated (outside VS Code) is for production pipelines. Your orchestrator signs each decision, and unsigned approvals are refused. See the repository's
docs/JEV.md and the example in examples/orchestrator.
Then run Stats Explorer: Add Jev Routing Instructions to This Workspace. It writes the order of use into .github/copilot-instructions.md and CLAUDE.md. For Claude Code, Stats Explorer: Copy Setup Commands for Claude Code (with Jev) copies everything you need.
Ask it anything about your data
Name the file in your message (or attach it):
What's in sales.csv?
Total revenue by state in sales.csv, top 10.
What drives profit in sales.csv?
Show the distribution of order value and a box plot by segment.
Does average profit differ between the Consumer and Business segments? Is it significant?
Make an HTML report of what we found and save it as findings.html.
You can also start from the slash commands /mcp.stats-explorer.analyze, /mcp.stats-explorer.explore_data and /mcp.stats-explorer.hypothesis_test.
What's included
|
|
| Hypothesis tests |
t-tests (one-sample, paired, Welch/Student), z-tests, one-way ANOVA with pairwise comparisons, ANCOVA, MANOVA, chi-square, Fisher's exact, binomial, correlation |
| Analytics |
totals, averages, medians and counts by category (top N); "what drives X" rankings across every column |
| Helpers |
descriptive statistics and distribution shape, confidence intervals, power and sample-size planning, a test chooser, a data-file inspector, base-rate (PPV) checks |
| Charts |
histogram, box plot, scatter, bar, line, pie (light and dark mode) |
| Reports |
HTML or Markdown, containing only the sections you choose |
Data files
Stats Explorer is built for tabular formats (CSV, TSV, Excel and Parquet) to run hypothesis tests or explore statistics. JSON, BSON and NoSQL databases aren't tables, so for those the tools say so and suggest exporting to CSV or Parquet first.
The tools read files only inside your open workspace folders, plus any folders you add under Settings → Stats Explorer: Data Folders. Paths outside those folders are refused, including through symlinks. Reports and charts are written only when you ask, and never over an existing file unless you agree.
Big data files, even terabytes
Files of any size work. Above 512 MB, CSV, TSV and Parquet files are read in parallel streaming passes (one per CPU core). Memory doesn't grow with the file (about 0.5 GB, plus about 0.2 GB per extra core used). A 13-million-row, 2.5 GB CSV takes about 20 seconds on two cores.
- Tests, means, standard deviations and confidence intervals are exact on every row. Medians, quartiles and histograms of very large groups are estimated from a quantile sketch, and the results say so.
- If a full read would take more than 2 minutes, VS Code asks whether to read every row or a quick 1% sample.
- Long reads continue in the background with a progress bar; the assistant checks back for the result.
- With your OK, the columns that were read are kept, so follow-up questions take seconds.
- Attaching a data file to the chat works: the assistant passes it to the tools instead of reading it into the conversation.
Settings
| Setting |
Default |
|
statsExplorer.guidedWorkflow |
on |
Classify each request and follow the six steps for hypothesis tests. Off gives the assistant the individual test tools directly. |
statsExplorer.confirmIn |
form |
chat asks in the conversation instead of a form |
statsExplorer.confirmSelections |
on |
Confirm columns, groups, chart types and report sections before anything runs |
statsExplorer.dataFolders |
[] |
Extra folders the tools may read |
statsExplorer.showAppLink |
on |
One-line link to the Stats Explorer app at the end of each result |
statsExplorer.largeFiles.streamAboveMB |
512 |
Stream CSV/TSV/Parquet files above this size |
statsExplorer.largeFiles.parallelReaders |
0 (auto) |
CPU cores used to read a large file |
statsExplorer.largeFiles.askAboveMinutes |
2 |
Ask before a full read that would take longer |
statsExplorer.largeFiles.samplePercent |
1 |
Size of the quick sample |
statsExplorer.largeFiles.saveColumns |
ask |
Keep columns read from large files for fast follow-ups |
statsExplorer.largeFiles.cacheFolder |
temp folder |
Where kept columns go |
statsExplorer.maxFileMB |
0 (no limit) |
Refuse files larger than this |
statsExplorer.jev.mode |
off |
cooperate or enforce: Jev checks the plan and conclusions |
statsExplorer.jev.checkpoints |
plan, conclusions |
Add data to screen data files for text aimed at an AI (sends text samples to Jev) |
statsExplorer.jev.waitForJev |
on |
Cooperate mode: checkpoints wait for Jev's answer |
statsExplorer.jev.passAt / failBelow |
0.8 / 0.5 |
Decision thresholds |
statsExplorer.jev.auditLog |
none |
JSON Lines file recording every check |
Use it in other editors
Run Stats Explorer: Copy MCP Config for Other Editors, or add this to Cursor, Claude Desktop, Windsurf or any MCP client (requires Node.js 22 or later; 24 LTS recommended):
{ "mcpServers": { "stats-explorer": { "command": "npx", "args": ["-y", "stats-explorer-mcp"] } } }
Want to see it, not just read it?
Stats Explorer is the app built on the same engine. It has a guided test picker, interactive charts, a Learn tab that explains each concept, and one-click PDF reports. Run Stats Explorer: Open the Stats Explorer App.
Requirements
VS Code 1.101 or later, with agent mode enabled.
License
MIT. Source and issue tracker: see the repository link on this page.