Linear Regression MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
upload_file

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.

get_columns_info

This function gives information about columns.

Returns: String which contains column names.

check_category_columns

This function check if data has categorical columns.

Returns: String which contains list of categorical columns.

label_encode_categorical_columns

This function label encodes all the categorical columns.

Returns: String which confirms success of encoding process.

train_linear_regression_model

This function trains linear regression model.

Args: Takes input for output column name.

Returns: String which contains the RMSE value.

ID: a74sssgn6g