Linear Regression MCP
선형 회귀 MCP
선형 회귀 MCP 에 오신 것을 환영합니다! 이 프로젝트는 Claude와 모델 컨텍스트 프로토콜(MCP)을 활용한 엔드투엔드 머신러닝 워크플로를 보여줍니다.
클로드는 데이터 세트가 포함된 CSV 파일을 업로드하는 것만으로 선형 회귀 모델을 완전히 스스로 학습할 수 있습니다. 시스템은 데이터 전처리, 학습, 평가(RMSE 계산)를 처리하는 전체 ML 모델 학습 라이프사이클을 거칩니다.
설정 및 설치
1. 저장소 복제:
먼저, 로컬 컴퓨터에 저장소를 복제합니다.
지엑스피1
2. uv 설치 :
uv Rust로 작성된 매우 빠른 Python 패키지 및 프로젝트 관리자입니다. 이 프로젝트의 서버 및 종속성 관리에 필수적입니다.
여기 에서
uv다운로드하여 설치하세요.
3. 종속성 설치:
uv가 설치되면 다음 명령을 실행하여 필요한 모든 종속성을 설치합니다.
uv sync4. Claude Desktop 구성:
서버를 Claude Desktop과 통합하려면 Claude 구성 파일을 수정해야 합니다. 운영 체제에 맞는 지침을 따르세요.
macOS 또는 Linux의 경우:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows의 경우:
code $env:AppData\Claude\claude_desktop_config.json구성 파일에서
mcpServers섹션을 찾아 자리 표시자 경로를uv설치 경로와 선형 회귀 프로젝트 디렉터리의 절대 경로로 바꾸세요. 다음과 같은 형식이어야 합니다.
{
"mcpServers":
{
"linear-regression":
{
"command": "ABSOLUTE/PATH/TO/.local/bin/uv",
"args":
[
"--directory",
"ABSOLUTE/PATH/TO/YOUR-LINEAR-REGRESSION-REPO",
"run",
"server.py"
]
}
}
}파일을 저장한 후 Claude Desktop을 다시 시작하여 MCP 서버와 연결합니다.
Related MCP server: MCP File Explorer
사용 가능한 도구
이 프로젝트에서는 데이터세트를 다루고 모델을 학습하는 데 도움이 되는 다음 도구를 사용할 수 있습니다.
도구 | 설명 | 인수 |
| CSV 파일을 업로드하고 처리를 위해 저장합니다. |
|
| 업로드된 데이터 세트에서 열 이름을 검색합니다. | 논쟁의 여지가 없습니다. |
| 데이터 세트에 범주형 열이 있는지 확인합니다. | 논쟁의 여지가 없습니다. |
| 레이블은 범주형 열을 숫자형 값으로 인코딩합니다. | 논쟁의 여지가 없습니다. |
| 선형 회귀 모델을 훈련하고 RMSE를 계산합니다. |
|
기여를 위해 열려 있습니다
이 프로젝트에 대한 기여를 환영합니다! 버그 수정, 새로운 기능 추가, 문서 개선 등 어떤 것이든 저장소를 포크하고 풀 리퀘스트를 제출해 주세요.
제안사항이나 기능 요청사항이 있으시면 이슈를 개설해 주세요. 기꺼이 논의해 드리겠습니다!
Available Tools
5 toolscheck_category_columnsC
This function check if data has categorical columns.
Returns: String which contains list of categorical columns.
Inputs: no named parameters.
get_columns_infoC
This function gives information about columns.
Returns: String which contains column names.
Inputs: no named parameters.
label_encode_categorical_columnsC
This function label encodes all the categorical columns.
Returns: String which confirms success of encoding process.
Inputs: no named parameters.
train_linear_regression_modelC
This function trains linear regression model.
Args: Takes input for output column name.
Returns: String which contains the RMSE value.
Inputs: output_column (required).
upload_fileC
This function read the csv data and stores it in the class variable.
Args: Absolute path to the .csv file.
Returns: String which shows the shape of the data.
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Most tools have distinct purposes: checking categorical columns, getting column info, label encoding, training a model, and uploading a file. However, 'check_category_columns' and 'get_columns_info' could be slightly confused as both provide column-related information, but their specific focuses (categorical vs. general) help differentiate them.
The tools use a consistent snake_case format, which is good. However, the naming pattern is mixed: some are verb_noun (e.g., 'upload_file', 'train_linear_regression_model'), while others are noun_verb (e.g., 'check_category_columns', 'get_columns_info', 'label_encode_categorical_columns'). This inconsistency in verb placement reduces predictability.
With 5 tools, the count is reasonable for a linear regression server, covering data upload, inspection, preprocessing, and model training. It's slightly thin as it lacks tools for prediction, model evaluation beyond RMSE, or data splitting, but it's well-scoped for basic workflows.
The toolset covers core steps: data upload, column analysis, encoding, and model training. However, there are notable gaps: no tools for making predictions with the trained model, evaluating model performance beyond RMSE (e.g., R-squared), splitting data into train/test sets, or handling missing values. This limits end-to-end workflow coverage.
Maintenance
Related MCP Connectors
Train AutoML models on CSV files and run predictions from Claude and other MCP clients.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that provides data visualization and machine learning tools, featuring automated intent-based pipeline routing for data cleaning and model training. It enables LLMs to process CSV or JSON data to generate visual charts, perform regressions, or execute clustering analysis.16-
- AlicenseNot gradedqualityDmaintenanceA beginner MCP server that enables Claude to read local text, CSV, and Markdown files. Built as a learning project to understand how to connect AI to local file systems using the MCP protocol.ISC
- FlicenseAqualityDmaintenanceAn MCP server for dataset exploration and analysis, enabling LLM clients to perform summary, correlation, distribution, missing value analysis, data cleaning, and statistical tests directly on CSV files.3-
- AlicenseNot gradedqualityBmaintenanceAn MCP server wrapping AutoGluon's AutoML capabilities, enabling data loading, model training, prediction, evaluation, and model management.Apache 2.0