Skip to content
MCP server
Registry

DevRay DataLab MCP Server

Local-first data science and machine learning MCP server

DevRay DataLab MCP scores 68 (Good), licensed MIT and written in Python. It installs as a local process. It declares 26 tools. Filed under AI and memory. GitHub shows 2 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by rayklandermanMITPython2 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "rayklanderman-devray-datalab-mcp": {      "command": "uvx",      "args": [        "devray-datalab-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools26Tool docs quality grade C

All capabilities

About

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 MCP server – quality and maintenance score on Glama DevRay DataLab MCP on mcprush M8ven Score

DevRay DataLab MCP is a local-first Model Context Protocol (MCP) server that lets AI assistants such as OpenAI Codex, Cursor, Claude Desktop, Cline, Kilo Code, and others 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:

VariableDefaultMeaning
DEVRAY_WORKSPACE_DIRdatasetsDataset directory on the machine running the server
DEVRAY_ARTIFACTS_DIRartifactsDirectory for saved model artifacts
DEVRAY_EXPERIMENTS_DB_PATHexperiments.dbSQLite experiment database path. Its parent directory must be writable.

MCP client configuration

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

1. OpenAI Codex (CLI & VS Code)

DevRay DataLab MCP connects to the OpenAI Codex CLI and its VS Code extension through local stdio execution. Codex and its VS Code extension share configuration, so registering the server once makes it available in both.

Prerequisites

  • Install the Codex CLI (codex on PATH).
  • Install uv (provides uvx).
  • Create the dataset and artifact directories before registering:
New-Item -ItemType Directory -Force "C:\MLData\datasets","C:\MLData\artifacts"
Copy-Item "examples\sample_classification.csv" "C:\MLData\datasets\"

Register the server

codex mcp add devray-datalab `
  --env DEVRAY_WORKSPACE_DIR=C:\MLData\datasets `
  --env DEVRAY_ARTIFACTS_DIR=C:\MLData\artifacts `
  -- uvx --from devray-datalab-mcp devray-datalab-mcp
  • DEVRAY_WORKSPACE_DIR — directory containing your CSV datasets.
  • DEVRAY_ARTIFACTS_DIR — directory where trained model artifacts are saved.
  • Replace C:\MLData with your own paths.

Verify registration

codex mcp list
codex mcp get devray-datalab

Expected output shows enabled: true, transport: stdio, command: uvx, and the devray-datalab-mcp args.

Manual config.toml configuration

Codex also reads ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml):

[mcp_servers.devray-datalab]
command = "uvx"
args = ["--from", "devray-datalab-mcp", "devray-datalab-mcp"]

[mcp_servers.devray-datalab.env]
DEVRAY_WORKSPACE_DIR = "C:/MLData/datasets"
DEVRAY_ARTIFACTS_DIR = "C:/MLData/artifacts"

Codex CLI and its VS Code extension share this configuration. Register once, use everywhere.

2. Cursor

Cursor uses the standard MCP client configuration format.

Add to your Cursor MCP settings (settings.json):

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

Replace C:\MLData with your own paths. Save the file and restart Cursor for changes to take effect.

3. Claude Desktop

Add to your Claude Desktop MCP settings (claude_desktop_config.json, typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

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

Replace C:\MLData with your own paths. Save the file and restart Claude Desktop for changes to take effect.

4. Cline

Add to your Cline MCP settings (settings.json):

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

Replace C:\MLData with your own paths. Save the file and restart Cline for changes to take effect.

5. 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"
      }
    }
  }
}

6. Other MCP clients

DevRay DataLab MCP works with any MCP-compatible client that supports stdio transport. Use devray-datalab-mcp as the command with no arguments, and set DEVRAY_WORKSPACE_DIR and DEVRAY_ARTIFACTS_DIR as environment variables.

7. 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"
      }
    }
  }
}

Available tools

ToolWhat it doesCategory
list_datasetsList CSV datasets in the workspaceDataset
inspect_datasetLoad a CSV; report types, missing values, stats, previewDataset
analyze_correlationsPearson/Spearman correlations, strongest pairsAnalysis
analyze_data_qualityMissing values, duplicates, constants, outliers, recommendationsAnalysis
detect_potential_leakageFlag potential data-leakage issues in a datasetAnalysis
analyze_feature_driftDetect feature drift between reference and current datasetsAnalysis
prepare_datasetDefine target + task type; fit preprocessing on train data onlyPreprocessing
train_baselineTrain a classification or regression modelTraining
start_training_jobSubmit a training job (non-blocking); returns a job idTraining
get_training_statusReturn the status and result of a training jobTraining
cancel_training_jobRequest cancellation of a queued or running training jobTraining
list_training_jobsList training jobs, newest firstTraining
compare_modelsCompare multiple algorithms; select best by metric (with cross-validation)Training
automl_runRun automated ML: train candidates with CV, rank by objectiveAutoML
tune_modelTune hyperparameters of a single model with cross-validationAutoML
get_model_leaderboardRun a fresh AutoML search and return ranked trials and the winnerAutoML
export_modelSave model with pipeline, metadata, and schemaModels
predictGenerate predictions from a saved local modelModels
list_experimentsList recorded training experiments, newest firstExperiments
get_experimentGet a single recorded experiment by IDExperiments
compare_experimentsCompare multiple recorded experiments by IDExperiments
list_modelsList experiments that produced a model artifactExperiments
load_model_handleLoad a previously exported model artifact by experiment ID or nameExperiments
create_split_manifestCreate a reproducible train/validation/test split manifestData Splits
validate_split_manifestValidate a stored split manifest against a datasetData Splits
list_split_manifestsList all stored split manifests, newest firstData Splits
system_infoCPU, RAM, storage, GPU detectionSystem

Supported algorithms

Classification: Logistic Regression, Decision Tree, Random Forest, Extra Trees, HistGradientBoosting, SVM, K-Nearest Neighbors.

Regression: Linear Regression, Ridge Regression, Decision Tree, Random Forest, Extra Trees, HistGradientBoosting, SVM, K-Nearest Neighbors.

Additional models (XGBoost, LightGBM) are available via the optional devray-datalab-mcp[boosting] extra.

Optional dependencies:

  • devray-datalab-mcp[boosting] — XGBoost, LightGBM
  • devray-datalab-mcp[explain] — SHAP explanations
  • devray-datalab-mcp[parquet] — Parquet file support (pyarrow)
  • devray-datalab-mcp[excel] — Excel file support (openpyxl)

What's new in v0.3.4

  • All 27 tool descriptions explain when to use them, what they return, and where they read or write data.
  • get_model_leaderboard now accepts models, for example ["decision_tree", "logistic_regression"] for classification. Omit it for the default candidates. The search evaluates explicit IDs in order within the available budget and ranks completed trials by the selection metric.
  • automl_run, tune_model, and get_model_leaderboard honor explicit CSV delimiters. Install optuna into the server's Python environment to enable hyperparameter search. The base install scores the selected candidates with cross-validation.
  • The reliability repairs cover chronological CV, reproducible tuning with a shared deadline, cancellation, model coverage, and prediction validation.

See the v0.3.4 release notes draft for details.

What's new in v0.3.2

  • Faster native MCP initialization: tool modules load lazily on first call, keeping server startup fast; no heavy ML imports at startup.
  • All 27 MCP tools correctly registered: every tool listed in the server spec is available via tools/list.
  • Leakage-safe training with excluded features: exclude_columns honored across prepare/train/compare/export/jobs/automl; preprocessing fitted on train data only.
  • Chronological splitting and reusable split manifests: row_order time-based splitting plus create_split_manifest/validate_split_manifest/list_split_manifests with dataset fingerprints.
  • Protected test-holdout isolation: test set kept as protected holdout, isolated from training.
  • AutoML, tuning and background-job safeguards: cooperative cancellation, trial and time limits.
  • Model export metadata improvements: schema, fingerprint, and library versions recorded with exported artifacts.
  • Unseen-category warnings in predictions: warns when categorical features were not seen during training.

What's new in v0.3.1

  • CSV delimiter detection: Automatic detection of comma, semicolon, tab, and pipe delimiters, with explicit override support.
  • Package version consistency: __version__ now correctly reports 0.3.1.
  • CSV parsing regression tests: 7 new tests covering all delimiter types including semicolon-delimited data with 21 columns.
  • Full tool compatibility: All 27 MCP tools work correctly with the new loader.

What's new in v0.3.0

  • Non-blocking training jobs: start_training_job, get_training_status, cancel_training_job, list_training_jobs — training runs off the MCP request loop with cooperative cancellation.
  • Automated Machine Learning: automl_run, tune_model, get_model_leaderboard — train candidates with CV, rank by objective, and optionally tune with Optuna.
  • More dataset formats: Parquet (.parquet) and Excel (.xlsx/.xls) via optional [parquet]/[excel] dependencies.
  • Reproducible split manifests: create_split_manifest, validate_split_manifest, list_split_manifests — stratified/group/time-ordered splits with dataset fingerprints; test set is a protected holdout.
  • Feature diagnostics: detect_potential_leakage, analyze_feature_drift — flag potential target leakage and distribution drift.

What's new in v0.2.0

  • Real cross-validation: compare_models now performs actual cross-validation (the cv parameter was previously ignored). Preprocessing is fitted independently inside each fold to prevent data leakage. Strategies: KFold, StratifiedKFold, GroupKFold, StratifiedGroupKFold, TimeSeriesSplit.
  • Richer metrics: balanced accuracy, macro/weighted F1, PR-AUC, log loss, Brier score, confusion matrix (classification); median absolute error, MAPE (regression).
  • Calibration: probability calibration with sigmoid or isotonic methods.
  • Threshold optimization: maximize F1/precision/recall or minimize a cost matrix, with optional precision/recall constraints.
  • Feature importance: permutation importance with baseline score and per-feature mean/std.
  • Experiment tracking: SQLite-backed recording of training runs (dataset fingerprint, feature schema, algorithm, hyperparameters, library versions, metrics, duration, artifacts). Tools: list_experiments, get_experiment, compare_experiments, list_models, load_model_handle.

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.

Links

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.

Frequently asked questions

What is DevRay DataLab MCP Server?

Local-first data science and machine learning MCP server

How do I install DevRay DataLab MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. DevRay DataLab MCP Server runs locally from the PyPI package devray-datalab-mcp with the command uvx devray-datalab-mcp.

Is DevRay DataLab MCP Server free and open source?

Yes. DevRay DataLab MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does DevRay DataLab MCP Server support remote (HTTP) connections?

No remote endpoint is listed for DevRay DataLab MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does DevRay DataLab MCP Server provide?

DevRay DataLab MCP Server provides 26 tools, including analyze_correlations, analyze_data_quality, analyze_feature_drift, and automl_run. See the full tool list for descriptions and parameters.

How is DevRay DataLab MCP Server's trust score calculated?

DevRay DataLab MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server