mlops-engine
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mlops-engineProfile data.csv, train a random forest, and save an HTML report."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MLOps Model Context Protocol (MCP) Server
A production-grade Python Model Context Protocol (MCP) server built with the official mcp.server.fastmcp SDK, designed for local offline Machine Learning operations, dataset profiling, dynamic classification training, hyperparameter optimization, and evaluation metric visualization.
Key Architectural Principles
Protocol Standards: Implements the Model Context Protocol (MCP) over standard input/output (
stdio) transport.Stdout Framing Isolation: Standard output (
sys.stdout) is strictly reserved for JSON-RPC 2.0 frames (tools/call,tools/list, etc.). Zeroprint()statements are allowed.Stderr Operational Logging: All debugging information, training progress, and tracebacks are routed strictly to
sys.stderrvia Python's standardloggingand direct stream flushes.100% Offline Execution: Operates on local files using
pandas,numpy, andscikit-learnwithout external APIs.
Related MCP server: mcp-server
Implemented Tools Ecosystem (9 Production MLOps Tools)
# | Tool Signature | Description |
1 |
| Inspects CSV metadata, imputes missing values (median for numeric, mode for categorical), saves |
2 |
| One-hot encodes features, performs an 80/20 train/test split, fits Random Forest or Gradient Boosting, and generates precision, recall, F1, and accuracy tables. |
3 |
| Executes 3-fold cross-validated hyperparameter search over estimators and tree depth, logs progress to |
4 |
| Uses |
5 |
| Trains an Artificial Neural Network (ANN) using Keras/TensorFlow (or scikit-learn MLP fallback). Handles scaling, loss curves, milestone checkpoints, and test accuracy. |
6 |
| Builds a deep 3-layer MLP with Batch Normalization, Dropout (30%/20%), L2 regularization, and Early Stopping. Outputs macro/weighted F1 metrics and convergence epoch. |
7 |
| Synthesizes a ready-to-run interactive Streamlit web dashboard with CSV uploader, interactive hyperparameter tuning, model training, and confusion matrix visualization. |
8 |
| Generates a self-contained, responsive HTML website report with embedded base64 confusion matrix images, metric statistics, and MLOps recommendations. |
9 |
| Introspects and returns the comprehensive catalog of all 9 registered MCP tools, model architectures, hyperparameter spaces, and transport rules. |
Quickstart Setup
1. Create and Activate Virtual Environment
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate2. Install Dependencies
pip install -r requirements.txt3. Test with MCP Inspector
Inspect and interactively call the tools using the official MCP CLI:
npx @modelcontextprotocol/inspector python ml_server.py4. Configure in VS Code, Cursor, or Claude Desktop
A. VS Code (Cline / Roo Code / Continue)
Install Cline or Roo Code from the VS Code Extensions Marketplace (
Ctrl+Shift+X/Cmd+Shift+X).Open Cline settings > MCP Servers > Configure MCP Servers (
cline_mcp_settings.json).Add the server entry:
{
"mcpServers": {
"mlops-engine": {
"command": "/ABSOLUTE/PATH/TO/.venv/bin/python",
"args": [
"/ABSOLUTE/PATH/TO/ml_server.py"
],
"env": {
"PYTHONUNBUFFERED": "1"
},
"disabled": false
}
}
}(On Windows, use .venv\Scripts\python.exe with double backslashes \\).
B. Cursor IDE
Go to Settings (
Cmd+,orCtrl+,) > Features > MCP.Click + Add New MCP Server.
Set:
Name:
mlops-serverType:
commandCommand:
/ABSOLUTE/PATH/TO/.venv/bin/python /ABSOLUTE/PATH/TO/ml_server.py
Click Save. The status dot will turn green.
C. Claude Desktop
Add to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mlops-engine": {
"command": "python",
"args": [
"/absolute/path/to/ml_server.py"
],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}5. Example Prompts to Ask in VS Code / Cursor
"Profile and clean 'sample_dataset.csv', impute any missing values, and report statistics."
"Train a Random Forest classifier on 'sample_dataset.csv' predicting 'churn' with 80/20 train/test split."
"Run 3-fold cross-validated hyperparameter optimization for tree depth and estimators."
"Train an Artificial Neural Network on 'sample_dataset.csv' for 30 epochs and output test accuracy."
"Generate a 300-DPI confusion matrix heatmap and export an HTML executive report."
"Synthesize a ready-to-run interactive Streamlit web dashboard 'app.py' for customer churn."
6. Running Generated Artifacts
Streamlit Web Dashboard: Run
streamlit run app.pyto open the interactive UI in your browser.Standalone HTML Report: Open
ml_report.htmlin any web browser to view embedded visualizations and metrics.Confusion Matrix: View
confusion_matrix.pngdirectly in VS Code.
This server cannot be deployed
Maintenance
Related MCP Connectors
Train, explain, optimise and deploy transparent glass-box ML models via workflow tools.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Free OpenAI-compatible inference with signed provenance receipts and 3 focused MCP tools.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAdvanced machine learning platform with MCP integration that enables automated ML workflows from data analysis to model deployment, featuring smart preprocessing, 15+ ML algorithms, and interactive visualizations.-
- FlicenseNot gradedqualityDmaintenanceEnables AI models to interact with local CSV and Parquet data through MCP tools, providing summarization and analysis capabilities.1-
- FlicenseAqualityCmaintenanceEnables exploratory data analysis and machine learning on CSV datasets with tools for profiling, missing values, correlation, plotting, model training, and prediction.8-
- FlicenseNot gradedqualityCmaintenanceEnables training and using machine learning models on local CSV datasets or data from other MCP servers, supporting tasks like forecasting, regression, classification, and anomaly detection.-