Skip to main content
Glama

Linear Regression MCP

by HeetVekariya

Linear Regression MCP

Welcome to Linear Regression MCP! This project demonstrates an end-to-end machine learning workflow using Claude and the Model Context Protocol (MCP).

Claude can train a Linear Regression model entirely by itself, simply by uploading a CSV file containing the dataset. The system goes through the entire ML model training lifecycle, handling data preprocessing, training, and evaluation (RMSE calculation).

Setup and Installation

1. Clone the Repository:

First, clone the repository to your local machine:

git clone https://github.com/HeetVekariya/Linear-Regression-MCP cd Linear-Regression-MCP

2. Install uv:

uv is an extremely fast Python package and project manager, written in Rust. It is essential for managing the server and dependencies in this project.

  • Download and install uv from here.

3. Install Dependencies:

Once uv is installed, run the following command to install all necessary dependencies:

uv sync

4. Configure Claude Desktop:

To integrate the server with Claude Desktop, you will need to modify the Claude configuration file. Follow the instructions for your operating system:

  • For macOS or Linux:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • For Windows:
code $env:AppData\Claude\claude_desktop_config.json
  • In the configuration file, locate the mcpServers section, and replace the placeholder paths with the absolute paths to your uv installation and the Linear Regression project directory. It should look like this:
{ "mcpServers": { "linear-regression": { "command": "ABSOLUTE/PATH/TO/.local/bin/uv", "args": [ "--directory", "ABSOLUTE/PATH/TO/YOUR-LINEAR-REGRESSION-REPO", "run", "server.py" ] } } }
  • Once the file is saved, restart Claude Desktop to link with the MCP server.

Available Tools

The following tools are available in this project to help you work with the dataset and train the model:

ToolDescriptionArguments
upload_file(path)Uploads a CSV file and stores it for processing.path: Absolute path to the CSV file.
get_columns_info()Retrieves the column names in the uploaded dataset.No arguments.
check_category_columns()Checks for any categorical columns in the dataset.No arguments.
label_encode_categorical_columns()Label encodes categorical columns into numerical values.No arguments.
train_linear_regression_model(output_column)Trains a linear regression model and calculates RMSE.output_column: The name of the target column.

Open for Contributions

I welcome contributions to this project! Whether it's fixing bugs, adding new features, or improving the documentation, feel free to fork the repository and submit pull requests.

If you have any suggestions or feature requests, open an issue, and I'll be happy to discuss them!

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude が CSV ファイルをアップロードするだけで線形回帰モデルをトレーニングし、データの前処理からモデル評価までの ML パイプライン全体を処理できるようにする MCP サーバー。

  1. セットアップとインストール
    1. 1. リポジトリのクローンを作成します。
    2. 2. uvをインストールします。
    3. 3. 依存関係をインストールします。
    4. 4. Claude Desktop を構成する:
  2. 利用可能なツール
    1. 寄稿を募集中

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
        Last updated 6 months ago
        47
        5
        TypeScript
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Python-based MCP server that allows Claude and other LLMs to execute arbitrary Python code directly through your desktop Claude app, enabling data scientists to connect LLMs to APIs and executable code.
        Last updated 14 days ago
        26
        MIT License
        • Apple
        • Linux
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables Claude to load CSV files and execute JavaScript data analysis scripts for advanced data exploration and insights generation.
        Last updated 5 months ago
        2
        8
        Python
        MIT License
      • -
        security
        F
        license
        -
        quality
        An MCP server that allows Claude to interact with local LLMs running in LM Studio, providing access to list models, generate text, and use chat completions through local models.
        Last updated 5 months ago
        10
        Python

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/HeetVekariya/Linear-Regression-MCP'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server