BuildMCPServer
35
This project is a comprehensive guide on building a Model Context Protocol (MCP) server to deploy and manage a trained Random Forest model. It integrates with the Bee Framework to enhance interactivity and also provides methods for setting up a FastAPI hosted ML server.
Build a MCP Server
A complete walkthrough on how to build a MCP server to serve a trained Random Forest model and integrate it with Bee Framework for ReAct interactivity.
See it live and in action šŗ
Startup MCP Server š
- Clone this repo
git clone https://github.com/nicknochnack/BuildMCPServer
- To run the MCP server
cd BuildMCPServer
uv venv
source .venv/bin/activate
uv add .
uv add ".[dev]"
uv run mcp dev server.py
- To run the agent, in a separate terminal, run:
source .venv/bin/activate
uv run singleflowagent.py
Startup FastAPI Hosted ML Server
git clone https://github.com/nicknochnack/CodeThat-FastML
cd CodeThat-FastML
pip install -r requirements.txt
uvicorn mlapi:app --reload
Detailed instructions on how to build it can also be found here
Other References š
Who, When, Why?
šØš¾āš» Author: Nick Renotte
š
Version: 1.x
š License: This project is licensed under the MIT License