AutoML Stat MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AutoML Stat MCP
AI-powered statistical analysis and AutoML platform using Model Context Protocol (MCP).
AutoML Stat MCP provides 51+ statistical and machine learning tools through the MCP interface, enabling AI agents (Claude, GPT, etc.) to perform comprehensive clinical research analysis. Supports real-time progress notifications via SSE for long-running operations.
โจ Features
๐ Statistical Analysis (51+ MCP Tools)
Descriptive Statistics: Table One generation, correlation analysis, group comparisons
Survival Analysis: Kaplan-Meier curves, Cox proportional hazards, log-rank tests
Propensity Score Analysis: PSM matching, IPW weighting, treatment effect estimation
ROC Analysis: AUC with CI, threshold optimization, DeLong test for model comparison
Power Analysis: T-test, ANOVA, Chi-square, proportion, survival sample size calculation
๐ค Machine Learning (AutoGluon Backend)
AutoML Training: Automatic model selection and hyperparameter tuning
Multi-Algorithm Support: XGBoost, LightGBM, CatBoost, Random Forest, Neural Networks
Classification & Regression: Binary, multiclass, and regression problems
๐ง Data Preparation
Missing Value Analysis: MCAR/MAR/MNAR detection with imputation recommendations
Data Cleaning: PII detection, outlier handling, encoding categorical variables
Quality Checks: VIF multicollinearity, data validation, integrity checks
Related MCP server: dag-studio-mcp
๐ Quick Start
Prerequisites
Docker & Docker Compose
8GB+ RAM recommended
(Optional) GPU for accelerated ML training
โก One-Line Install (ๆจ่ฆ)
# Clone and auto-install
git clone https://github.com/u9401066/automl-stat-mcp.git
cd automl-stat-mcp
./quick-install.sh๐ฏ Quick Launch Scripts
# ๆนๅผ 1: ไฝฟ็จๅๅ่
ณๆฌ (ๆจ่ฆ)
./start.sh # ้ ่จญๆจกๅผ (็ตฑ่จๅๆ)
./start.sh ml # ML ๆจกๅผ (ๅซ่จ็ทด)
./start.sh full # ๅฎๆดๆจกๅผ (ๅซ MinIO)
# ๆนๅผ 2: ไฝฟ็จ Makefile (ๆๆนไพฟ)
make start # ๅๅ้ ่จญๆๅ
make start-ml # ๅๅ ML ๆๅ
make start-full # ๅๅๅฎๆดๆๅ
make logs # ๆฅ็ๆฅ่ช
make health # ๅฅๅบทๆชขๆฅ
make help # ๆๆๅฏ็จๆไปค
# ๆนๅผ 3: ไฝฟ็จ Docker Compose (้ฒ้)
docker compose up -d # ้ ่จญ
docker compose --profile ml up -d # ML
docker compose --profile full up -d # ๅฎๆด๐ Stop Services
./stop.sh # ๆ make stopVerify Installation
# Check service health
curl http://localhost:8003/health # Stats service
curl http://localhost:8002/health # MCP server
# List available sample datasets
curl http://localhost:8003/api/files/listConnect to AI Agent
VS Code Copilot (ๆจ่ฆ)
ๅจไฝ ็ๅฐๆกๆ น็ฎ้ๅปบ็ซ .vscode/mcp.json๏ผ
{
"servers": {
"automl-stat-mcp": {
"url": "http://localhost:8002/sse",
"type": "sse"
}
}
}ๆไฝฟ็จๅฟซ้่จญๅฎ่ ณๆฌ๏ผๅจ็ฎๆจๅฐๆก็ฎ้ๅท่ก๏ผ
/path/to/automl-stat-mcp/scripts/setup-vscode-mcp.shClaude Desktop / Cursor
ๅจ MCP ่จญๅฎไธญๆฐๅข๏ผ
{
"mcpServers": {
"automl-stat-mcp": {
"url": "http://localhost:8002/sse"
}
}
}๐ Deployment Profiles
Profile | Command | Components | Use Case |
Default |
| Stats + MCP | Statistical analysis only |
|
| + AutoML API/Workers | ML training enabled |
|
| + MinIO | Full stack with object storage |
Storage Modes
Default: Local file storage (no external dependencies)
Mode | Environment Variable | Description | Requirements |
Local (Default) |
| Uses local | None |
MinIO |
| S3-compatible object storage for distributed deployment | Profile: |
Volume Mounts:
volumes:
- ./sample_data:/data/sample_data:ro # Sample datasets (read-only)
- ./projects:/data/projects # User projects
- local-results:/data/results # Analysis resultsSwitching Storage Modes:
# Local storage (default)
docker compose up -d
# MinIO storage (requires full profile)
STORAGE_MODE=minio docker compose --profile full up -dPath Resolution:
User input:
iris.csvโ Container path:/data/sample_data/iris.csvUser input:
projects/study1/data.csvโ/data/projects/study1/data.csv
๐ ๏ธ Configuration
Environment Variables
Copy .env.example to .env and customize:
cp .env.example .envKey settings:
Variable | Default | Description |
|
| Storage backend: |
|
| Logging level |
|
| MinIO server address |
|
| MinIO access key |
|
| MinIO secret key |
Scaling Workers
# Scale stats workers
docker compose up -d --scale stats-worker=4
# Scale ML workers (requires ml profile)
docker compose --profile ml up -d --scale automl-worker=8 --scale stats-worker=4๐ Sample Datasets
The sample_data/ directory includes test datasets:
Dataset | Type | Target | Records |
| Classification | species | 150 |
| Binary | survived | 891 |
| Binary | target | 303 |
| Binary | diagnosis | 569 |
| RCT | treatment_group | 200 |
| Survival | arrest, week | 432 |
| Survival | status, time | 103 |
๐ง MCP Tools Reference
Quick Start Tools (Recommended)
Tool | Description |
| One-stop analysis: stats + Table One + correlations |
| Fast data preview with auto path resolution |
| Simplified group comparison |
| Complete RCT analysis pipeline |
Statistical Analysis
Category | Tools |
Descriptive |
|
Survival |
|
Propensity |
|
ROC |
|
Power |
|
Data Preparation
Category | Tools |
Quality |
|
Cleaning |
|
Project |
|
ML Training (Requires ml profile)
Tool | Description |
| One-shot AutoML training |
| Async training submission |
| Check training progress |
| View trained models ranking |
| Make predictions |
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Agent (Claude/GPT) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ automl-mcp (Port 8002) โ
โ 51+ MCP Tools Handlers โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stats-service (8003) โ โ automl-api (8001) โ
โ Statistical Analysis โ โ ML Training API โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stats-worker โ โ automl-worker โ
โ Background Analysis โ โ AutoGluon Training โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Redis โ
โ Job Queue & Cache โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Local Storage โ OR โ MinIO Storage โ
โ /data/... โ โ Object Storage โ
โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ๐ Documentation
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Setup
# Clone your fork or local mirror
git clone --recursive https://github.com/YOUR_USERNAME/automl-stat-mcp.git
cd automl-stat-mcp
# Sync the workspace environment
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv sync --all-extras
# Install developer hooks
make hooks-install
# Run quality gates
make check
# Run tests (interactive mode)
./run_tests.sh
# Or use focused targets
make test # smoke tests
make test-all # full pytest collection
# Or run specific test suites
./run_tests.sh fast # Fast tests only
./run_tests.sh edge # Edge case tests
./run_tests.sh e2e # End-to-end workflow tests
./run_tests.sh performance # Performance & load tests
./run_tests.sh security # Security tests
./run_tests.sh coverage # Generate coverage reportTest Suites
Our comprehensive test coverage includes:
Edge Cases (50+ tests): Data boundaries, input validation, statistical/ML edge cases
E2E Workflows (20+ tests): Complete medical RCT, survival analysis, ML training pipelines
Performance (15+ tests): Load benchmarks, concurrent requests, stress tests
Security (20+ tests): Injection attacks, path traversal, rate limiting, user isolation
See TESTING_ENHANCEMENT_PLAN.md for details.
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=. --cov-report=html tests/
# Run specific markers
uv run pytest -m "edge_case" tests/
uv run pytest -m "e2e" tests/
uv run pytest -m "performance" tests/
uv run pytest -m "security" tests/๐ License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
๐ Acknowledgments
Built with these excellent open source projects:
AutoGluon - AutoML framework
lifelines - Survival analysis
tableone - Clinical table generation
FastAPI - API framework
MCP (Model Context Protocol) - AI agent protocol
๐ง Contact
Use the repository Issues tab for bug reports and regressions.
Use the repository Discussions tab for design questions and workflow proposals.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Set up and run your firm's Precision AI agents, skills and routines from any MCP client.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Independent statistical feature evaluation for machine learning and forecasting. ML Referee tests up to 1,000 candidate features in one run against a declared baseline, helping researchers and AI agents decide which inputs to pursue, which bounded feature repairs merit further testing, and where more evidence is neededโwithout a separate ablation run for every feature. Use the MCP tools to discover input schemas, check access and credits, preflight a dataset, obtain a quote, submit an authorized evaluation, and retrieve structured results and reports. Results are scoped to the submitted evidence and evaluation design; they do not guarantee future model performance. Invite-only beta with manual approval. Public tool discovery requires no authentication; account and evaluation tools require OAuth through approved client connections and available evaluation credits. Connect directly to https://api.mlreferee.com/mcp. Website: https://mlreferee.com Request beta access: https://mlreferee.com/beta Agent setup and documentation: https://mlreferee.com/agents
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables exploratory data analysis through an MCP server, allowing AI assistants to load datasets, compute summary statistics, generate diagnostic plots, perform correlation analysis, and produce full markdown reports.6MIT
- AlicenseAqualityCmaintenanceMCP server for the DAG Studio causal-inference engine, enabling AI agents to construct, analyze, and validate causal directed acyclic graphs (DAGs) through tools for analysis, data simulation, and code generation.9Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI-native statistical analysis and reproducible research workflows through MCP, including natural language planning, protocol-based analysis, Python/R cross-validation, and publication-ready figure generation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run a full quant research workflow over MCP: pulling data, authoring and backtesting strategies, running statistical validation and risk checks, and recording findings for future sessions.1MIT