sentiment_analysis_mcp

hamdiaya/sentiment_analysis_mcp

3.2

If you are the rightful owner of sentiment_analysis_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Sentiment Analysis Server is a simple sentiment analysis server using Gradio and TextBlob, integrated with the Model-Component Protocol for remote communication.

MCP Sentiment Analysis Server

This project is a simple sentiment analysis server built with Gradio, powered by TextBlob, and integrated with the MCP (Model-Component Protocol) for remote communication.


šŸ“Œ Features

  • Sentiment analysis of English text: returns polarity, subjectivity, and a basic assessment.
  • Exposes a Gradio UI and an MCP-compatible API endpoint.
  • Lightweight and beginner-friendly implementation for learning MCP.

🧠 Technologies Used


šŸš€ How to Run

1. Install Dependencies:

Make sure you have Python 3 installed, then run:

pip install gradio textblob
python -m textblob.download_corpora

2. Run the Server:

Make sure you're in the project folder and run:

python app.py

3. Access the Interface:

After running the server, you'll get:

šŸ–„ Gradio Interface:
Open your browser and go to:
http://localhost:7860

šŸ”— MCP Server Endpoint:
Accessible at:
http://localhost:7860/gradio_api/mcp/sse