ProductLens-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ProductLens MCP π
A Product Intelligence MCP server β exposes product comparison and analysis tools that any MCP-compatible AI assistant (Claude Desktop, ChatGPT, Cursor, VS Code) can discover and use.
Built with FastMCP. Demo dataset: Indian compact SUVs.
Demo
βΆοΈ Watch the 90-second demo β Claude Desktop autonomously chaining compare_products β swot_analysis β recommend_product to answer:
"Compare the Brezza and Nexon, give me a SWOT of the winner, and tell me what to buy under βΉ9 lakh if safety matters most."
Related MCP server: BopMarket MCP Server
Why MCP?
Instead of building a chatbot locked into one AI platform, ProductLens is a service. Build the logic once; every MCP client can call it:
Claude ββ
ChatGPT ββΌβββΊ ProductLens MCP βββΊ data / logic
Cursor ββThe server describes its own tools (names, arguments, docs), so AI clients discover them automatically β no custom integration per assistant.
Tools
Tool | What it does |
| Head-to-head comparison on price, mileage, power, safety, boot space β with per-metric winners and an overall edge |
| SWOT for one product, computed against the segment average (beats average β strength, trails β weakness) plus rule-based opportunities/threats |
| Top-3 picks within budget, ranked by one priority ( |
| Lists the product catalog |
Roadmap: summarize_reviews, generate_prd, a second product category (phones) to prove the server is category-agnostic.
Quick start
git clone https://github.com/<you>/ProductLens-MCP.git
cd ProductLens-MCP
pip install -r requirements.txt
python server.py # runs over stdio for MCP clients
python test_client.py # smoke-test via a real MCP clientRequires Python 3.10+ (FastMCP does not support older versions).
Connect to Claude Desktop
Add to claude_desktop_config.json (Settings β Developer β Edit Config):
{
"mcpServers": {
"productlens": {
"command": "/full/path/to/your/python",
"args": ["/full/path/to/ProductLens-MCP/server.py"]
}
}
}Note: use the full path to the Python that has fastmcp installed (find it with
which python). Claude Desktop launches the server itself, so a bare"python"may resolve to a different interpreter β especially with conda environments.
Restart Claude Desktop fully (Cmd+Q), then ask: "Compare Brezza and Nexon."
Project structure
ProductLens-MCP/
βββ server.py # MCP layer β thin, just registers tools
βββ tools/
β βββ compare.py # head-to-head comparison logic
β βββ swot.py # SWOT vs segment average
β βββ recommend.py # budget + priority recommendations
βββ data/
β βββ cars.csv # demo dataset (swap for any product CSV)
βββ test_client.py # end-to-end MCP protocol test
βββ demo.mp4 # Claude Desktop demo recording
βββ requirements.txtDesign principle: logic and protocol are separated. Everything in tools/ is plain Python that knows nothing about MCP β it could power a web app or CLI unchanged. server.py is just the MCP "waiter."
Sample output
compare_products("Brezza", "Nexon") returns structured JSON β per-metric winners, each product's advantages, and an overall edge β which the AI client turns into a natural-language answer. Errors are AI-friendly too: an unknown product returns the list of available products, so the assistant can recover in conversation instead of dead-ending.
Challenges & learnings
numpy vs JSON: pandas returns numpy
int64/float64, which fail MCP's structured-output validation. Fixed by converting to native Python types before returning.Docstrings are the interface: the AI selects tools purely from their descriptions, so writing them as "what + when to use" directly improved tool selection (e.g., disambiguating SWOT-of-one vs compare-two).
stdio means the client launches you: Claude Desktop starts the server itself as a subprocess, so the config must point to the conda environment's Python β a bare
pythonresolved to an old 3.8 interpreter without fastmcp.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Shopping MCP for AI agents: search, compare, Amazon buy links. Auto-register.
Product search for AI shopping agents: prices and buy links from big retailers. No key needed.
AI commerce for Shopify: product search, comparison, recommendations, and checkout via MCP.
Search and look up products across thousands of online stores, normalized into one schema.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables product search functionality via MCP, allowing Claude to search products by keyword with filters, list categories, and retrieve product details.3-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, compare, buy, and sell products across multiple e-commerce platforms through 13 marketplace tools.1MIT
- FlicenseBqualityDmaintenanceProvides MCP tools for searching and comparing products on Wildberries (and Ozon planned), including product search, detailed card retrieval, and review fetching, normalized for LLM consumption.32-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search products across affiliate networks, compare commissions, find arbitrage opportunities, and get auto-injected affiliate links via MCP.-