mcp-server-scikit-learn: MCP server for Scikit-learn

by shibuiwilliam

235 downloads
Not rated
GitHub

Description

# mcp-server-scikit-learn: MCP server for Scikit-learn ## Overview This is a Model Context Protocol server for Scikit-learn, providing a standardized interface for interacting with Scikit-learn models and datasets. ## Features * Train and evaluate Scikit-learn models * Handle…

About

# mcp-server-scikit-learn: MCP server for Scikit-learn ## Overview This is a Model Context Protocol server for Scikit-learn, providing a standardized interface for interacting with Scikit-learn models and datasets. ## Features * Train and evaluate Scikit-learn models * Handle datasets and data preprocessing * Model…

Details

Author
shibuiwilliam
Downloads
235
Categories
Other

- Train and evaluate Scikit-learn models
- Handle datasets and data preprocessing
- Model persistence and loading
- Feature engineering and selection
- Model evaluation metrics
- Cross-validation and hyperparameter tuning

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-server-scikit-learn: MCP server for Scikit-learn
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository locally, then launch the MCP inspector using npx @modelcontextprotocol/inspector uv --directory=src/mcp_server_scikit_learn run mcp-server-scikit-learn. Alternatively, add it as a MCP server in your configuration with the uv command pointing to the local directory.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-server-scikit-learn: mcp server for scikit-learn": {
            "mcp-server-scikit-learn": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "uv",
                    "--directory=src/mcp_server_scikit_learn",
                    "run",
                    "mcp-server-scikit-learn"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-scikit-learn": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "uv",
            "--directory=src/mcp_server_scikit_learn",
            "run",
            "mcp-server-scikit-learn"
        ]
    }
}

mcp-server-scikit-learn: MCP server for Scikit-learn

Overview

This is a Model Context Protocol server for Scikit-learn, providing a standardized interface for interacting with Scikit-learn models and datasets.

Features

Train and evaluate Scikit-learn models
Handle datasets and data preprocessing
Model persistence and loading
Feature engineering and selection
Model evaluation metrics
Cross-validation and hyperparameter tuning

Run this project locally

This project is not yet set up for ephemeral environments (e.g. uvx usage). Run this project locally by cloning this repo:

git clone https://github.com/yourusername/mcp-server-scikit-learn.git
cd mcp-server-scikit-learn

You can launch the MCP inspector via npm:

npx @modelcontextprotocol/inspector uv --directory=src/mcp_server_scikit_learn run mcp-server-scikit-learn

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

OR Add this tool as a MCP server:

{
  "scikit-learn": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/mcp-server-scikit-learn",
      "run",
      "mcp-server-scikit-learn"
    ]
  }
}

Development

1. Create and activate a virtual environment:

python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate

2. Install dependencies:

pip install -e ".[dev]"

3. Run tests:

pytest -s -v tests/

License

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.