Review Analysis MCP Server
A local, privacy-friendly pipeline for analyzing customer reviews using Ollama for sentiment analysis and issue clustering.
README
Review Analysis MCP Server
A local, privacy-friendly pipeline for analyzing customer reviews. An MCP client (VS Code, Claude Desktop, …) drives a FastMCP server whose tools call a local Ollama model (Llama 3.1) to classify sentiment, surface recurring issues, and generate reports. A Streamlit dashboard visualizes the results.
MCP client ──MCP──▶ FastMCP server ──▶ Ollama (Llama 3.1)
│
▼
data/store.json ◀──reads── Streamlit dashboard
Tools
| Tool | Description |
|---|---|
upload_reviews(csv_text | reviews, replace) |
Ingest reviews from CSV text or a list of dicts. |
analyze_sentiment() |
Classify each review positive / neutral / negative. |
get_top_issues(limit) |
Cluster complaints into the top recurring issues. |
generate_report() |
Render a markdown report from the analysis. |
Setup
# 1. Python deps
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# 2. Local LLM
# Install Ollama from https://ollama.com, then:
ollama pull llama3.1
ollama serve # if not already running as a service
Run
MCP server (stdio transport):
python server.py
Register it with your client. Example Claude Desktop / VS Code MCP config:
{
"mcpServers": {
"review-analyzer": {
"command": "/Users/chandangowda/Desktop/mcp/.venv/bin/python",
"args": ["/Users/chandangowda/Desktop/mcp/server.py"]
}
}
}
Point
commandat the Python inside your virtualenv (as above) so the server starts withmcp,ollama, etc. already installed.
Run with the MCP Inspector
The MCP Inspector is a browser UI for calling the server's tools by hand — the fastest way to try the pipeline without wiring up a full client.
# From the project root, with the virtualenv active:
source .venv/bin/activate
mcp dev server.py
This launches the Inspector and prints a local URL (default http://localhost:6274). Open it in your browser, then:
- Connect — the transport is already set to stdio with the command
pre-filled from
server.py. Click Connect. - Open the Tools tab and click List Tools to see the four tools:
upload_reviews,analyze_sentiment,get_top_issues,generate_report. - Run them in order:
upload_reviews— paste the contents ofdata/sample_reviews.csvinto thecsv_textfield (leavereplaceastrue), then Run Tool. You should see{"uploaded": 15, "total_reviews": 15}.analyze_sentiment— no arguments; Run Tool. Returns the sentiment distribution. (Requiresollama serverunning.)get_top_issues— optionally setlimit(default 5); Run Tool.generate_report— no arguments; Run Tool. Returns the final markdown report.
Prerequisites: ollama serve must be running and llama3.1 pulled (see
Setup), otherwise the analysis tools return an LLMError. If the
mcp command isn't found, install the CLI extra with
pip install "mcp[cli]".
Dashboard:
streamlit run dashboard/app.py
Try it end to end
- Start
ollama serveand the dashboard. - In the dashboard sidebar, upload
data/sample_reviews.csv→ Ingest CSV. - Click Run sentiment analysis, Find top issues, Generate report.
- Or drive the same flow from your MCP client by calling the tools.
Configuration
| Env var | Default | Purpose |
|---|---|---|
OLLAMA_MODEL |
llama3.1 |
Which Ollama model to use. |
OLLAMA_HOST |
(library default) | Ollama server URL, e.g. http://localhost:11434. |
REVIEW_STORE_PATH |
data/store.json |
Where shared state is persisted. |
Notes
- The server and dashboard are separate processes; they communicate only
through
data/store.json(atomic writes, so readers never see partial data). - Uploading new reviews clears any prior analysis for that dataset.
- Swapping to OpenAI/GPT-4o later means implementing the same
chat_jsoncontract insrc/llm.py— nothing else changes.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.