Skip to main content
Glama

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

Related MCP server: LocalData MCP Server

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):

{
  "mcpServers": {
    "mcp-automl": {
      "command": "uvx",
      "args": ["--python", "3.11", "mcp-automl"]
    }
  }
}

Or using Docker:

{
  "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:

gemini skills install https://github.com/idea7766/mcp-automl --path skill/data-science-workflow

For Claude Code:

# 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:

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 - AutoML library

  • DuckDB - Fast SQL analytics

  • MCP - Model Context Protocol SDK

Available Tools

6 tools
inspect_dataA
Get comprehensive statistics and a preview of the dataset to understand its quality and structure.
Use this to check for missing values, unique counts, and basic data types.

- NOTE: Please use absolute paths for data_path to avoid path resolution errors.
- NOTE: For files larger than 10,000 rows, statistics are computed on a random sample for performance.

Args:
    data_path: Path to the CSV, Parquet, or JSON file.
    n_rows: Number of rows to show in head/tail/sample previews (default: 5).
    
Returns:
    JSON string containing structure, stats, and previews.

Inputs: data_path (required), n_rows. Returns: result

predictA
Make predictions using a trained model.

- NOTE: Please use absolute paths for data_path to avoid path resolution errors.

Args:
    run_id: The ID of the training run (returned by train_classifier or train_regressor).
    data_path: The path to the CSV or JSON file containing the input data.

Returns:
    The absolute path to the JSON file containing the predictions.

Inputs: run_id (required), data_path (required). Returns: result

process_dataA
Execute a DuckDB SQL query to transform data and save it to a new file.

CRITICAL: This is your PRIMARY tool for Feature Engineering and Data Cleaning.
- Use this to create new features, clean dirty data, handle missing values (COALESCE), or join datasets.
- You MUST use this tool to prepare the data before training if feature engineering is needed.
- Example: "SELECT *, price/sqft as price_per_sqft, COALESCE(garage, 0) as garage_clean FROM 'train.csv'"

IMPORTANT: Strongly RECOMMEND using '.parquet' extension for output_path (e.g. 'clean_data.parquet'). 
- Parquet preserves data types (int, float, string, date) much better than CSV.
- CSV often loses type information (everything becomes string or inferred incorrectly).

- NOTE: Please use absolute paths for files in your query and for output_path to avoid path resolution errors.

Args:
    query: Standard DuckDB SQL query.
    output_path: Absolute path to save the result (must be .csv, .parquet, or .json).
    
Returns:
    Confirmation message with the output path.

Inputs: query (required), output_path (required). Returns: result

query_dataA
Execute a DuckDB SQL query on data files (CSV, Parquet, JSON) to gain deeper insights.

CRITICAL: This is your PRIMARY tool for advanced data exploration.
- Use this to aggregate data (GROUP BY), join multiple files, calculate derived metrics, or inspect specific subsets.
- Prefer this over 'inspect_data' when you need to answer specific questions about the data distribution or relationships.
- You can query files directly in the FROM clause, e.g., "SELECT category, AVG(price) FROM 'data.csv' GROUP BY category".

- NOTE: Please use absolute paths for files in your FROM clause to avoid path resolution errors.

Args:
    query: Standard DuckDB SQL query.
    
Returns:
    JSON string containing the query results (limit 100 rows).

Inputs: query (required). Returns: result

train_classifierA
Train a classification model using PyCaret with advanced configuration.

- NOTE: Please use absolute paths for data_path and test_data_path to avoid path resolution errors.

Args:
    data_path: Path to dataset (csv/parquet/json).
    target_column: Name of target column.
    test_data_path: Optional path to specific test dataset. If provided, used for evaluation/holdout.
    optimize: Metric to optimize for (e.g., 'Accuracy', 'AUC', 'Recall', 'Precision', 'F1', 'Kappa', 'MCC'). Default is 'Accuracy'.
    include_models: List of model IDs to include in comparison (e.g., ['lr', 'dt', 'rf']). If None, all models are compared (except heavy ones excluded by default).
    exclude_models: List of model IDs to exclude from comparison (e.g., ['catboost']). If None, defaults to excluding heavy models: ['svm', 'rbfsvm', 'gpc', 'mlp', 'ridge', 'qda'].
    ignore_features: Features to ignore.
    numeric_features: Features to treat as numeric.
    categorical_features: Features to treat as categorical.
    ordinal_features: Dictionary of ordinal features and their order (e.g., {'grade': ['low', 'medium', 'high']}).
    date_features: Features to treat as dates.
    text_features: Features to treat as text (for TF-IDF etc).
    keep_features: Features to ensure are kept.
    imputation_type: 'simple' or 'iterative' (default: 'simple').
    numeric_imputation: 'mean', 'median', 'mode' or int/float (default: 'mean').
    categorical_imputation: 'mode' or str (default: 'mode').
    fix_imbalance: If True, fix imbalance in training data (default: False).
    remove_outliers: If True, remove outliers from training data (default: False).
    normalize: If True, scale features (default: False). Recommended for linear models.
    normalize_method: 'zscore', 'minmax', 'maxabs', 'robust' (default: 'zscore').
    transformation: If True, apply gaussian transformation to make data more normal (default: False).
    transformation_method: 'yeo-johnson' or 'quantile' (default: 'yeo-johnson').
    polynomial_features: If True, create polynomial features (default: False).
    interaction_features: List of features to create interactions for.
    bin_numeric_features: List of numeric features to bin into categories.
    feature_selection: If True, select best features (default: False).
    feature_selection_method: 'classic', 'univariate', 'sequential' (default: 'classic').
    n_features_to_select: Fraction (0.0-1.0) or number of features to select (default: 0.2).
    fold_strategy: 'kfold', 'stratifiedkfold', 'groupkfold', 'timeseries' (default: 'kfold').
    fold: Number of folds (default: 10).
    n_jobs: Number of jobs to run in parallel (-1 for all cores).

Returns:
    JSON string with run_id, model_path, metrics, feature_importances, and report_path.

Inputs: data_path (required), target_column (required), fold, n_jobs, +27 more. Returns: result

train_regressorA
Train a regression model using PyCaret with advanced configuration.

- NOTE: Please use absolute paths for data_path and test_data_path to avoid path resolution errors.

Args:
    data_path: Path to dataset (csv/parquet/json).
    target_column: Name of target column.
    test_data_path: Optional path to specific test dataset. If provided, used for evaluation/holdout.
    optimize: Metric to optimize for (e.g., 'R2', 'RMSE', 'MAE', 'MSE', 'RMSLE', 'MAPE'). Default is 'R2'.
    include_models: List of model IDs to include in comparison (e.g., ['lr', 'dt', 'rf']). If None, all models are compared (except heavy ones excluded by default).
    exclude_models: List of model IDs to exclude from comparison (e.g., ['catboost']). If None, defaults to excluding heavy models: ['svm', 'mlp', 'kr', 'ard', 'par', 'ransac', 'tr', 'huber'].
    ignore_features: Features to ignore.
    numeric_features: Features to treat as numeric.
    categorical_features: Features to treat as categorical.
    ordinal_features: Dictionary of ordinal features and their order.
    date_features: Features to treat as dates.
    text_features: Features to treat as text (for TF-IDF etc).
    keep_features: Features to ensure are kept.
    imputation_type: 'simple' or 'iterative' (default: 'simple').
    numeric_imputation: 'mean', 'median', 'mode' or int/float (default: 'mean').
    categorical_imputation: 'mode' or str (default: 'mode').
    remove_outliers: If True, remove outliers from training data (default: False).
    normalize: If True, scale features (default: False). Recommended for linear models.
    normalize_method: 'zscore', 'minmax', 'maxabs', 'robust' (default: 'zscore').
    transformation: If True, apply gaussian transformation to make data more normal (default: False).
    transformation_method: 'yeo-johnson' or 'quantile' (default: 'yeo-johnson').
    polynomial_features: If True, create polynomial features (default: False).
    interaction_features: List of features to create interactions for.
    bin_numeric_features: List of numeric features to bin into categories.
    feature_selection: If True, select best features (default: False).
    feature_selection_method: 'classic', 'univariate', 'sequential' (default: 'classic').
    n_features_to_select: Fraction (0.0-1.0) or number of features to select (default: 0.2).
    fold_strategy: 'kfold', 'stratifiedkfold', 'groupkfold', 'timeseries' (default: 'kfold').
    fold: Number of folds (default: 10).
    n_jobs: Number of jobs to run in parallel (-1 for all cores).

Returns:
    JSON string with run_id, model_path, metrics, feature_importances, and report_path.

Inputs: data_path (required), target_column (required), fold, n_jobs, +26 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with local CSV and Parquet data files through natural language queries, facilitating tasks like summarizing datasets or retrieving specific information.
      4
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Gives LLM agents access to local and remote data via databases, files, graphs, and structured documents, along with a full data science toolkit for analysis and modeling.
      15
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM clients to load, clean, visualize, and analyze tabular datasets, and to generate multi-format analytic reports through natural language instructions.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Every live trading feed is a table: today it serves your CSV, Parquet and JSON files to AI agents as SQL tables (Apache DataFusion), with joins across files, schema and column statistics.
      1
      Apache 2.0