Skip to content

amit-chaubey/mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Sentiment Inference API

A Machine Learning Inference API using MCP server architecture for sentiment analysis.

Setup and Installation

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Running the Application

  1. Start the FastAPI backend:
cd backend
uvicorn main:app --reload
  1. Start the Streamlit frontend:
cd frontend
streamlit run app.py

API Endpoints

  • POST /predict: Predict sentiment for given text
    • Request body: {"text": "your text here"}
    • Response: {"sentiment": "positive" | "negative"}

Technologies Used

  • FastAPI for backend API
  • Streamlit for frontend UI
  • Scikit-learn for ML model
  • Joblib for model persistence

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages