Enables sending push notifications about deals and subscribing devices to price alerts through Firebase Cloud Messaging
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
A running instance of Superprecio
Superprecio API accessible via HTTP
Installation
Option 1: Use with npx (Recommended)
Once published to npm, you can use directly with:
Option 2: Install Globally
Option 3: Local Development
Configuration
Create a .env
file in the project root:
Edit .env
with your settings:
Usage with Claude Desktop
Add this server to your Claude Desktop configuration:
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
:
Windows
Edit %APPDATA%/Claude/claude_desktop_config.json
with the same configuration.
Using Local Installation
If you installed locally or are developing:
Example Conversations
Once configured, you can ask Claude:
Search for Products
Compare Prices
Find Best Deals
Use the Price Expert Prompt
API Reference
Tools
search_products
search_by_code
compare_prices
get_best_deals
send_notification
subscribe_device
Resources
supermarket://list
- Returns JSON with all supermarketssupermarket://[id]/info
- Returns JSON with specific supermarket details
Prompts
price_expert
- Takes optionalfocus
argument
Development
Architecture
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 Superprecio is running:
curl http://localhost:3000
Check
SUPERPRECIO_API_URL
in your configurationEnsure 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:
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/yourusername/superprecio_mcp/issues
Superprecio Issues: https://github.com/yourusername/superprecio/issues
Made with ❤️ in Argentina for Latin American shoppers
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
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.