Labsco
emircansoftware logo

MCP Server

β˜… 13

from emircansoftware

Automate data science stages using your own CSV data files.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Auto ML - Automated Machine Learning Platform

Python License MCP

An intelligent automated machine learning platform that provides comprehensive data analysis, preprocessing, model selection, and hyperparameter tuning capabilities through Model Context Protocol (MCP) tools.

πŸš€ Features

πŸ“Š Data Analysis & Exploration

  • Data Information: Get comprehensive dataset statistics including shape, memory usage, data types, and missing values
  • CSV Reading: Efficient CSV file reading with pandas and pyarrow support
  • Correlation Analysis: Visualize correlation matrices for numerical and categorical variables
  • Outlier Detection: Identify and visualize outliers in your datasets

πŸ”§ Data Preprocessing

  • Automated Preprocessing: Handle missing values, encode categorical variables, and scale numerical features
  • Feature Engineering: Prepare features for both regression and classification problems
  • Data Validation: Check for duplicates and data quality issues

πŸ€– Machine Learning Models

  • Multiple Algorithms: Support for various ML algorithms including:
    • Regression: Linear Regression, Ridge, Lasso, ElasticNet, Random Forest, XGBoost, SVR, KNN, CatBoost
    • Classification: Logistic Regression, Ridge Classifier, Random Forest, XGBoost, SVM, KNN, Decision Tree, Naive Bayes, CatBoost

πŸ“ˆ Model Evaluation & Visualization

  • Performance Metrics:
    • Regression: RΒ², MAE, MSE
    • Classification: Accuracy, F1-Score
  • Confusion Matrix Visualization: For classification problems
  • Model Comparison: Compare multiple models side-by-side

βš™οΈ Hyperparameter Tuning

  • Automated Tuning: Optimize model hyperparameters using advanced search algorithms
  • Customizable Scoring: Choose from various evaluation metrics
  • Trial Management: Control the number of optimization trials

πŸ“ Project Structure

AutoML/
β”œβ”€β”€ data/                   # Sample datasets
β”‚   β”œβ”€β”€ Ai.csv
β”‚   β”œβ”€β”€ Calories.csv
β”‚   β”œβ”€β”€ Cost.csv
β”‚   β”œβ”€β”€ Digital.csv
β”‚   β”œβ”€β”€ Electricity.csv
β”‚   β”œβ”€β”€ ford.csv
β”‚   β”œβ”€β”€ Habits.csv
β”‚   β”œβ”€β”€ heart.csv
β”‚   β”œβ”€β”€ Lifestyle.csv
β”‚   β”œβ”€β”€ Mobiles.csv
β”‚   β”œβ”€β”€ Personality.csv
β”‚   β”œβ”€β”€ Salaries.csv
β”‚   β”œβ”€β”€ Shopper.csv
β”‚   β”œβ”€β”€ Sleep.csv
β”‚   β”œβ”€β”€ cat.csv
β”‚   β”œβ”€β”€ test.csv
β”‚   └── train.csv
β”œβ”€β”€ tools/
β”‚   └── all_tools.py       # MCP tool definitions
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ before_model.py        # Feature preparation
β”‚   β”œβ”€β”€ details.py             # Data information
β”‚   β”œβ”€β”€ external_test.py       # External data test with XGBoost
β”‚   β”œβ”€β”€ feature_importance.py  # Feature importance analysis
β”‚   β”œβ”€β”€ hyperparameter.py      # Hyperparameter tuning
β”‚   β”œβ”€β”€ model_selection.py     # Model selection and evaluation
β”‚   β”œβ”€β”€ prediction.py          # Prediction utilities
β”‚   β”œβ”€β”€ preprocessing.py       # Data preprocessing
β”‚   β”œβ”€β”€ read_csv_file.py       # CSV reading utilities
β”‚   └── visualize_data.py      # Visualization functions
β”œβ”€β”€ main.py                # Application entry point
β”œβ”€β”€ server.py              # MCP server configuration
β”œβ”€β”€ requirements.txt       # Python dependencies
└── README.md             # This file

Using with Claude Desktop

1. Data Path Setting

In utils/read_csv_file.py, update the path variable to match your own project directory on your computer:

# Example:
path = r"C:\\YOUR\\PROJECT\\PATH\\AutoML\\data"

2. Claude Desktop Configuration

In Claude Desktop, add the following block to your claude_desktop_config.json file and adjust the paths to match your own system:

{
  "mcpServers": {
    "AutoML": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\YOUR\\PROJECT\\PATH\\AutoML",
        "run",
        "main.py"
      ]
    }
  }
}

You can now start your project from Claude Desktop.

πŸ“‹ Dependencies

  • MCP Framework: mcp[cli]>=1.9.4 - Model Context Protocol for tool integration
  • Data Processing: pandas>=2.3.0, pyarrow>=20.0.0, numpy>=2.3.1
  • Machine Learning: scikit-learn>=1.3.0, xgboost>=2.0.0, lightgbm>=4.3.0
  • Additional ML: catboost (for CatBoost models)

πŸ“Š Sample Datasets (All CSV datasets are from Kaggle.)

The project includes various sample datasets for testing:

  • heart.csv: Heart disease prediction dataset
  • Salaries.csv: Salary prediction dataset
  • Calories.csv: Calorie prediction dataset
  • Personality.csv: Personality analysis dataset
  • Digital.csv: Digital behavior dataset
  • Lifestyle.csv: Lifestyle analysis dataset
  • Mobiles.csv: Mobile phone dataset
  • Habits.csv: Habit analysis dataset
  • Sleep.csv: Sleep pattern dataset
  • Cost.csv: Cost analysis dataset
  • ford.csv: Ford car dataset
  • Ai.csv: AI-related dataset
  • cat.csv: Cat-related dataset

🀝 Contributing

We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Contributing Guidelines

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with detailed information
  3. Contact the maintainers