Skip to main content
Glama

DevRay DataLab MCP

Local-first Data Science & Machine Learning for AI Assistants

PyPI version Python 3.11+ License: MIT CI MCP Registry Transport: stdio

DevRay DataLab MCP is a local-first Model Context Protocol (MCP) server that lets AI assistants such as Claude, Cursor, Cline, and Kilo Code perform real data science and machine learning on your own computer — no cloud services, no API keys, no paid subscriptions.

Everything runs locally via stdio: dataset loading, exploratory data analysis, preprocessing, classification/regression training, model comparison, export, and prediction. Your datasets never leave your machine.

Installation

Method A — uvx (simplest, no virtualenv)

uvx devray-datalab-mcp

Requires uv. Install uv if needed:

# Windows PowerShell
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Method B — pip in a virtual environment

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install devray-datalab-mcp
devray-datalab-mcp

Linux / macOS:

python3 -m venv .venv
source .venv/bin/activate
pip install devray-datalab-mcp
devray-datalab-mcp

Method C — from GitHub source

pip install git+https://github.com/rayklanderman/devray-datalab-mcp.git
devray-datalab-mcp

A stdio MCP server waits for input from an MCP client. Launching devray-datalab-mcp directly without a connected client will appear to do nothing — this is expected. Connect it through an MCP-compatible client (see client configuration below).

Configure where datasets and model artifacts live with environment variables:

Variable

Default

Meaning

DEVRAY_WORKSPACE_DIR

datasets

Directory containing CSV datasets

DEVRAY_ARTIFACTS_DIR

artifacts

Directory for saved model artifacts

Related MCP server: Kaggle Dataset Analyst

MCP client configuration

Add the server to your MCP-compatible client. Replace C:\MLData with your own paths.

Kilo Code

{
  "mcpServers": {
    "devray-datalab": {
      "command": "uvx",
      "args": [
        "--from",
        "devray-datalab-mcp",
        "devray-datalab-mcp"
      ],
      "env": {
        "DEVRAY_WORKSPACE_DIR": "C:\\MLData\\datasets",
        "DEVRAY_ARTIFACTS_DIR": "C:\\MLData\\artifacts"
      }
    }
  }
}

Cline / Cursor / Claude Desktop

These clients use the same mcpServers JSON structure:

{
  "mcpServers": {
    "devray-datalab": {
      "command": "devray-datalab-mcp",
      "args": [],
      "env": {
        "DEVRAY_WORKSPACE_DIR": "C:\\MLData\\datasets",
        "DEVRAY_ARTIFACTS_DIR": "C:\\MLData\\artifacts"
      }
    }
  }
}

VS Code / GitHub Copilot MCP

Add to your VS Code MCP settings (settings.json):

{
  "mcp.servers": {
    "devray-datalab": {
      "command": "devray-datalab-mcp",
      "args": [],
      "env": {
        "DEVRAY_WORKSPACE_DIR": "${workspaceFolder}/datasets",
        "DEVRAY_ARTIFACTS_DIR": "${workspaceFolder}/artifacts"
      }
    }
  }
}

Available tools

Tool

What it does

list_datasets

List CSV datasets in the workspace

inspect_dataset

Load a CSV; report types, missing values, stats, preview

analyze_correlations

Pearson/Spearman correlations, strongest pairs

analyze_data_quality

Missing values, duplicates, constants, outliers, recommendations

prepare_dataset

Define target + task type; fit preprocessing on train data only

train_baseline

Train a classification or regression model

compare_models

Compare multiple algorithms; select best by metric

export_model

Save model with pipeline, metadata, and schema

predict

Generate predictions from a saved local model

system_info

CPU, RAM, storage, GPU detection

Quickstart workflow

Using the included sample_classification.csv (target purchased):

  1. Inspect: inspect_dataset with {"name": "sample_classification.csv"}

  2. Data quality: analyze_data_quality with {"name": "sample_classification.csv"}

  3. Correlations: analyze_correlations with {"name": "sample_classification.csv", "method": "pearson"}

  4. Train & compare: compare_models with {"name": "sample_classification.csv", "target_column": "purchased", "task_type": "classification", "metric": "f1"}

  5. Export: export_model with {"artifact_name": "churn_model", "name": "sample_classification.csv", "target_column": "purchased", "task_type": "classification", "model_name": "random_forest"}

  6. Predict: predict with {"artifact_name": "churn_model", "features": {"age": 40, "income": 80000, "credit_score": 720, "category": "electronics", "region": "east"}}

A full step-by-step tutorial with copy-ready prompts is available in docs/quickstart.md.

Security and privacy

All processing is local; no data leaves your machine. File access is confined to the configured workspace/artifacts directories. Path traversal is blocked, file sizes and extensions are validated, and only artifacts created by this application are loaded for prediction. No cloud hosting, no paid AI APIs, no external downloads.

License

MIT License. See LICENSE.

Available Tools

10 tools
analyze_correlationsC

Compute numerical correlations and strongest pairs.

Inputs: name (required), top_n, method.

analyze_data_qualityC

Report data-quality issues and recommendations.

Inputs: name (required).

compare_modelsC

Train and compare multiple models; select best by metric.

Inputs: name (required), task_type (required), target_column (required), cv, +4 more.

export_modelC

Save a trained model with preprocessing pipeline and metadata.

Inputs: artifact_name (required), name, stratify, task_type, +5 more.

inspect_datasetC

Inspect a CSV dataset (types, missing values, stats).

Inputs: name (required), max_rows.

list_datasetsB

List datasets in the configured workspace.

Inputs: no named parameters.

predictC

Generate predictions using a previously trained local model.

Inputs: features (required), artifact_name (required).

prepare_datasetC

Define target and task type; fit preprocessing on training data only.

Inputs: name (required), task_type (required), target_column (required), stratify, +2 more.

system_infoA

Detect local CPU, RAM, storage, and GPU resources.

Inputs: no named parameters.

train_baselineC

Train one baseline model and report evaluation metrics.

Inputs: name (required), task_type (required), model_name (required), target_column (required), +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools map to distinct pipeline stages (inspect, correlate, quality, prepare, train, compare, export, predict). The only mild overlap is between train_baseline and compare_models, both of which train models, but the single-model vs multi-model distinction is stated in the descriptions.

    Naming Consistency4/5

    Names consistently use a verb_noun or clear verb-first pattern (list_datasets, inspect_dataset, analyze_correlations, prepare_dataset, train_baseline, compare_models, export_model). Minor deviations are predict (bare verb) and system_info (noun phrase), but these are still readable and unsurprising.

    Tool Count5/5

    Ten tools is well within the ideal range and each maps to a meaningful step in a data-science workflow. No tool feels redundant or gratuitous.

    Completeness4/5

    The surface covers discovery, inspection, analysis, preparation, training, comparison, export, and inference, which is strong lifecycle coverage. Minor gaps remain: no tool to list or delete exported/trained models, and no dataset creation/import, so predict requires the agent to already know a model path.

    Maintenance

    ActivityMaintained
    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
      B
      maintenance
      Enables AI assistants to perform data analysis on local datasets through natural language, orchestrating Python, R, SQL, Spark, Jupyter, Power BI, and Tableau engines for statistics, machine learning, dashboard generation, and batch processing.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to analyze large CSV files locally by importing them into SQLite, profiling columns, and running read-only SQL queries without data leaving the machine.
      MIT