MCP AutoML
# MCP AutoML
MCP AutoML is a server that enables AI Agents to perform end-to-end machine learning workflows including data inspection, processing, model training. With MCP AutoML, AI Agents can perform more than a typical autoML framework. AI Agents can identify the target, setting baseline, and creating features by themselves.
MCP AutoML seperates tools and workflows, allowing you to create your own workflow.
## Features
- **Data Inspection**: Analyze datasets with comprehensive statistics, data types, and previews
- **SQL-based Data Processing**: Transform and engineer features using DuckDB SQL queries
- **AutoML Training**: Train classification and regression models with automatic model comparison using PyCaret
- **Prediction**: Make predictions using trained models
- **Multi-format Support**: Works with CSV, Parquet, and JSON files
## Usage
### Configure MCP Server
Before using this MCP server, you can run `uv tool install --python 3.11 mcp-automl` to install it. It will cache the dependencies and make it faster to start the server.
Add to your MCP client configuration (e.g., Claude Desktop, Gemini CLI, Cursor, Antigravity):
```json
{
"mcpServers": {
"mcp-automl": {
"command": "uvx",
"args": ["--python", "3.11", "mcp-automl"]
}
}
}
```
**Or using Docker:**
```json
{
"mcpServers": {
"mcp-automl": {
"command": "docker",
"args": ["run", "-i", "--rm", "-v", "${PWD}:/workspace", "-v", "${HOME}/.mcp-automl:/root/.mcp-automl", "idea7766/mcp-automl:latest"]
}
}
}
```
### Available Tools
| Tool | Description |
|------|-------------|
| `inspect_data` | Get comprehensive statistics and preview of a dataset |
| `query_data` | Execute DuckDB SQL queries on data files |
| `process_data` | Transform data using SQL and save to a new file |
| `train_classifier` | Train a classification model with AutoML |
| `train_regressor` | Train a regression model with AutoML |
| `predict` | Make predictions using a trained model |
## Agent Skill
MCP AutoML includes an **data science workflow skill** that guides AI agents through best practices for machine learning projects. This skill teaches agents to:
- Identify targets and establish baselines
- Perform exploratory data analysis
- Engineer domain-specific features
- Train and evaluate models systematically
### Installing the Skill
**For Gemini CLI:**
```bash
gemini skills install https://github.com/idea7766/mcp-automl --path skill/data-science-workflow
```
**For Claude Code:**
```bash
# Clone the repo and copy the skill
git clone https://github.com/idea7766/mcp-automl.git
cp -r mcp-automl/skill/data-science-workflow ~/.claude/skills/
```
The skill file is located at `skill/data-science-workflow/SKILL.md`.
## Configuration
Models and experiments are saved to `~/.mcp-automl/experiments/` by default.
## Troubleshooting
### macOS: LightGBM OpenMP Error
If you encounter an error like `Library not loaded: @rpath/libomp.dylib`, you need to install OpenMP:
```bash
brew install libomp
```
This is a system-level dependency required by LightGBM on macOS. Linux and Windows users typically don't need this step.
## Dependencies
- [PyCaret](https://pycaret.org/) - AutoML library
- [DuckDB](https://duckdb.org/) - Fast SQL analytics
- [MCP](https://github.com/modelcontextprotocol/python-sdk) - Model Context Protocol SDK
TDQS
Scored across 6 tools
train_classifier and train_regressor are clearly split by task type, and predict is distinct. The only friction is the exploration/transformation trio: inspect_data, query_data, and process_data all touch the same files, and query_data vs process_data both run DuckDB SQL (return results vs write a file). The descriptions do explicitly position query_data as 'primary tool for exploration' and process_data as 'primary tool for feature engineering,' which mostly resolves the overlap.
Five of six names follow a clean verb_noun pattern (train_classifier, train_regressor, inspect_data, query_data, process_data), with train_classifier/train_regressor even forming a matched pair. The lone deviation is the bare 'predict,' which lacks a noun object and slightly breaks the pattern.
Six tools map neatly onto the AutoML workflow stages: inspect, query, transform, train (x2 by task type), predict. Nothing feels padded or missing, and the count sits comfortably in the well-scoped 3-15 range.
The core lifecycle (explore -> engineer -> train -> predict) is fully covered, including held-out evaluation via test_data_path and a run_id tying training to prediction. Minor gaps remain: there is no tool to list prior runs or re-fetch stored metrics/reports after training, and no dedicated evaluation/scoring tool for predicting against labeled holdout data.