Linear-Regression
MCP server for training Linear Regression Model.
claude mcp add --transport stdio heetvekariya-linear-regression-mcp uv --directory ABSOLUTE/PATH/TO/YOUR-LINEAR-REGRESSION-REPO run server.py
How to use
This MCP server provides an end-to-end workflow for training a Linear Regression model using Claude and the MCP protocol. Users upload a CSV dataset, Claude handles data preprocessing (including column inspection and detection of categorical features), optional label encoding for categorical columns, and then trains a linear regression model while computing the RMSE as an evaluation metric. The server exposes tools to upload data, inspect columns, identify categorical features, encode categorical data, and kick off the model training pipeline with a specified target column. You can invoke these tools programmatically or via Claude Desktop integration to iterate on data preparation and model training without leaving the Claude environment.
How to install
Prerequisites:\n- Python environment (with uv installed) and access to the uv project manager.\n- A clone of the Linear-Regression-MCP repository.\n- Claude Desktop installed and configured for MCP servers.\n\nInstallation steps:\n1. Clone the repository:\nbash\ngit clone https://github.com/HeetVekariya/Linear-Regression-MCP\ncd Linear-Regression-MCP\n\n2. Install uv (Python package/project manager):\n- Follow instructions from the uv official documentation and install it on your system. This typically involves downloading the installer and adding the binary to your PATH.\n3. Install dependencies with uv:\nbash\nuv sync\n\n4. Configure Claude Desktop to connect to the MCP server (see README for details):\n- Open Claude Desktop configuration and set the mcpServers entry to point to your local uv-based server path, e.g.\njson\n{\n "mcpServers": {\n "linear-regression": {\n "command": "ABSOLUTE/PATH/TO/.local/bin/uv",\n "args": [\n "--directory",\n "ABSOLUTE/PATH/TO/YOUR-LINEAR-REGRESSION-REPO", \n "run",\n "server.py"\n ] \n }\n }\n}\n
Additional notes
Tips and common issues:\n- Ensure the absolute paths in the Claude config are correct to the uv executable and the Linear Regression MCP repo.\n- The dataset should have a clearly defined target column for the model to predict. Use the provided tools to inspect and preprocess data before training.\n- If you encounter encoding issues with categorical features, run label_encode_categorical_columns() before train_linear_regression_model(output_column).\n- RMSE is the primary evaluation metric used by train_linear_regression_model; ensure your dataset contains sufficient variance and a proper split for meaningful RMSE computation.
Related MCP Servers
mcp -qdrant
An official Qdrant Model Context Protocol (MCP) server implementation
mcp-pinecone
Model Context Protocol server to allow for reading and writing from Pinecone. Rudimentary RAG
mcp-rquest
A MCP server providing realistic browser-like HTTP request capabilities with accurate TLS/JA3/JA4 fingerprints for bypassing anti-bot measures. It also supports converting PDF and HTML documents to Markdown for easier processing by LLMs.
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
mcp-kubernetes
A Model Context Protocol (MCP) server that enables AI assistants to interact with Kubernetes clusters. It serves as a bridge between AI tools (like Claude, Cursor, and GitHub Copilot) and Kubernetes, translating natural language requests into Kubernetes operations and returning the results in a format the AI tools can understand.
davinci -professional
An enterprise-grade MCP server that exposes the full functionality of DaVinci Resolve and DaVinci Resolve Studio (through version 20) to either Claude Desktop or Cursor MCP clients. Fully configured and tested as a Claude Desktop Extension making installation as easy as clicking a button. Supports both Windows and Macintosh.