Superprecio MCP Server
Enables AI assistants to search products, compare prices, and find the best deals across multiple supermarkets in Argentina through Superprecio's price comparison API. Transforms Claude into an expert shopping assistant for Latin American grocery shopping.
README
Superprecio MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to Superprecio's price comparison functionality for supermarkets in Argentina (with plans to expand to all Latin America).
Overview
This MCP server transforms Claude (or any MCP-compatible AI assistant) into an expert price comparison assistant for Argentina. It provides real-time access to product prices, deals, and availability across multiple supermarkets.
Features
🛠️ Tools
The server provides 6 powerful tools:
- search_products - Search for products by name across all supermarkets
- search_by_code - Find products by EAN/barcode
- compare_prices - Compare prices and find the best deals
- get_best_deals - Discover current promotions and discounts
- send_notification - Send push notifications about deals (requires Firebase)
- subscribe_device - Subscribe devices to price alerts (requires Firebase)
📚 Resources
- supermarket://list - List of all available supermarkets
- supermarket://[id]/info - Detailed information about a specific supermarket
💬 Prompts
- price_expert - Transform Claude into an Argentina shopping expert
Prerequisites
- Node.js 18.0.0 or higher
- Access to Superprecio API (production) or a local instance
Installation
Option 1: Use with npx (Recommended)
Once published to npm, you can use directly with:
npx superprecio-mcp
Option 2: Install Globally
npm install -g superprecio-mcp
Option 3: Local Development
# Clone the repository
git clone https://github.com/bunkerapps/superprecio_mcp.git
cd superprecio_mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run the server
npm start
Configuration
Create a .env file in the project root:
# Copy the example file
cp .env.example .env
Edit .env with your settings:
# Superprecio API URL (required)
# Use production API or your local instance
SUPERPRECIO_API_URL=https://superprecio.ar
# Request timeout in milliseconds (optional)
REQUEST_TIMEOUT=30000
# Enable debug logging (optional)
DEBUG=false
Usage with Claude Desktop
Add this server to your Claude Desktop configuration:
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"superprecio": {
"command": "npx",
"args": ["superprecio-mcp"],
"env": {
"SUPERPRECIO_API_URL": "https://superprecio.ar"
}
}
}
}
Windows
Edit %APPDATA%/Claude/claude_desktop_config.json with the same configuration.
Using Local Installation
If you installed locally or are developing:
{
"mcpServers": {
"superprecio": {
"command": "node",
"args": ["/absolute/path/to/superprecio_mcp/build/index.js"],
"env": {
"SUPERPRECIO_API_URL": "https://superprecio.ar"
}
}
}
}
Example Conversations
Once configured, you can ask Claude:
Search for Products
You: "Busca el arroz más barato"
Claude: *Uses search_products and compare_prices tools*
"El arroz más barato está en [Supermercado] por $2,450..."
Compare Prices
You: "Compara precios de leche en todos los supermercados"
Claude: *Uses compare_prices tool*
"Aquí está la comparación de precios de leche:
1. Supermercado A: $850
2. Supermercado B: $750 🏆 MEJOR PRECIO
3. Supermercado C: $890
¡Puedes ahorrar $140 comprando en Supermercado B!"
Find Best Deals
You: "¿Cuáles son las mejores ofertas de hoy en cereales?"
Claude: *Uses get_best_deals tool*
"Aquí están las mejores ofertas en cereales:
1. Corn Flakes en [Supermercado] - $2,100 (15% OFF)
2. ..."
Use the Price Expert Prompt
You: "Use the price_expert prompt"
Claude: *Becomes an Argentina shopping expert*
"¡Hola! Soy tu experto en supermercados de Argentina.
¿Cómo puedo ayudarte a ahorrar dinero hoy?"
API Reference
Tools
search_products
{
query: string; // Product name (e.g., "leche descremada")
maxResults?: number; // Results per store (1-50, default: 9)
sortBy?: string; // "OrderByTopSaleDESC" | "OrderByPriceASC" | "OrderByPriceDESC"
}
search_by_code
{
code: string; // EAN/barcode (usually 13 digits)
}
compare_prices
{
productName: string; // Product to compare
maxResults?: number; // Results to analyze per store (1-20, default: 5)
}
get_best_deals
{
category: string; // Category (e.g., "lácteos", "cereales")
maxResults?: number; // Deals per store (1-30, default: 10)
}
send_notification
{
title: string; // Notification title
message: string; // Notification body
deviceToken?: string; // Optional: specific device (else broadcasts)
data?: object; // Optional: custom data
}
subscribe_device
{
deviceToken: string; // Firebase Cloud Messaging token
}
Resources
supermarket://list- Returns JSON with all supermarketssupermarket://[id]/info- Returns JSON with specific supermarket details
Prompts
price_expert- Takes optionalfocusargument
Development
# Install dependencies
npm install
# Watch mode (rebuilds on changes)
npm run dev
# Build for production
npm run build
# Run built server
npm start
Architecture
superprecio_mcp/
├── src/
│ ├── index.ts # Main MCP server
│ ├── client/
│ │ └── superPrecioApi.ts # HTTP client for Superprecio API
│ ├── tools/ # MCP tool implementations
│ ├── resources/ # MCP resource handlers
│ ├── prompts/ # MCP prompt templates
│ └── types/ # TypeScript type definitions
├── build/ # Compiled JavaScript
└── package.json
How It Works
- MCP Server: Runs as a stdio-based server that communicates with Claude
- HTTP Client: Makes requests to your Superprecio API instance
- Tools: Expose Superprecio functionality as MCP tools
- Resources: Provide access to supermarket data
- Prompts: Transform Claude into a shopping expert
Troubleshooting
"Could not connect to Superprecio API"
- Verify API is accessible:
curl https://superprecio.ar - Check
SUPERPRECIO_API_URLin your configuration - Ensure there are no firewall issues
"Unknown tool" errors
- Restart Claude Desktop after configuration changes
- Verify the MCP server is running (check Claude Desktop logs)
Debug Mode
Enable debug logging:
DEBUG=true
This will log all API requests/responses to stderr.
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details
Credits
- Built with Model Context Protocol SDK
- Integrates with Superprecio
Support
For issues and questions:
- GitHub Issues: https://github.com/bunkerapps/superprecio_mcp/issues
- Superprecio Website: https://superprecio.ar
Made with ❤️ in Argentina for Latin American shoppers
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。