mcp-precios-ar
Allows querying the Precios Claros (SEPA) Argentine supermarket price dataset, with tools to find nearby stores, search products by name, compare a product across stores, and total a shopping basket across stores.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-precios-ar Tengo que comprar leche, yerba y aceite: ¿en qué súper cerca de Palermo me sale menos?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-precios-ar
An MCP server that gives AI assistants access to Argentine supermarket prices, from Precios Claros (SEPA), the dataset that large chains must report every day to the Secretaría de Comercio.
Ask your assistant things like:
¿Dónde está más barata la yerba Playadito cerca de Plaza Mitre, en Mar del Plata?
Tengo que comprar 2 leches descremadas, 1 kg de yerba y aceite de girasol. ¿En qué súper me sale menos?
It runs locally with npx. There is no server to host and no API key.
Tools
Tool | What it does |
| Supermarkets that report to Precios Claros near a location, closest first. |
| Searches products by name near a location, returning barcodes and price range. |
| One product (by barcode) in every nearby store: cheapest, median, best promo, and whether each price was updated today. |
| Totals a shopping list in each nearby store, ranks them, and also gives the total if you buy each item where it is cheapest. |
Every tool takes a location (lat, lng) and a radius_km (default 10). Assistants usually know the coordinates of a city or neighborhood, or you can paste them from a map.
Related MCP server: Superprecio MCP Server
Setup
Requires Node.js 20 or later.
Claude Desktop: add this to claude_desktop_config.json:
{
"mcpServers": {
"precios-ar": {
"command": "npx",
"args": ["-y", "mcp-precios-ar"]
}
}
}Claude Code:
claude mcp add precios-ar -- npx -y mcp-precios-arAny other MCP client works the same way: the server speaks MCP over stdio.
Important limitations
It only works from Argentina. The Precios Claros service rejects requests from foreign IP addresses (the server reports this as an HTTP 403 with a clear message).
The service is not an official, documented API. It is the backend of preciosclaros.gob.ar, and its responses can change without notice. The response shapes this server relies on are pinned by recorded responses in
test/fixtures, so a change shows up as a failing test.Coverage is what SEPA covers: large chains that are required to report. Small stores and neighborhood shops are not included.
Prices are list prices reported by each store. Promotions are shown separately, and
updatedToday: falseflags prices that may be stale.The free-text search endpoint (
/productos) was not recorded yet; its test fixture follows the product object of the recorded product response.
How it works
src/
api.ts HTTP client for Precios Claros (injectable fetch, timeout, clear errors)
prices.ts Pure functions: clean the raw data, compare prices, total a basket
server.ts MCP tool definitions (zod input schemas, read-only annotations)
index.ts stdio entry pointAll the logic lives in pure functions that are tested against recorded API responses. The MCP layer is tested end to end with the SDK's in-memory transport and a fake fetch. CI also starts the built server and checks that it lists its tools over stdio.
The basket comparison is sequential on purpose (one request per product) to be gentle with a free public service.
Development
npm install
npm test # unit + MCP integration tests
npm run build
npm run inspect # open the MCP Inspector against the built serverSet PRECIOS_CLAROS_BASE_URL to point the server at a different backend (for example, a local mock).
Data and license
Price data: Precios Claros, Secretaría de Comercio de la Nación, published under CC-BY 4.0. This project is not affiliated with the Argentine government.
Code: MIT.
Available Tools
4 toolscompare_basketFind the cheapest store for a shopping listARead-only
Totals a shopping list (barcodes and quantities) in each nearby supermarket and ranks them. Also returns the total if each item is bought where it is cheapest.
Inputs: lat (required), lng (required), items (required), top, +1 more.
find_storesFind nearby supermarketsARead-only
Lists supermarkets that report prices to Precios Claros near a location, closest first.
Inputs: lat (required), lng (required), radius_km.
get_product_pricesCompare one product across storesARead-only
Prices of one product (by barcode) in every nearby supermarket: cheapest store, median price, best promotion and whether each price was updated today.
Inputs: lat (required), lng (required), barcode (required), radius_km.
search_productsSearch products by nameARead-only
Searches products by name in the supermarkets near a location and returns their barcodes and price range. Use it to find the barcode before asking for detailed prices.
Inputs: lat (required), lng (required), query (required), limit, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct step in a clear workflow: discover stores, find a barcode, get prices for one barcode, then total a basket. Descriptions explicitly state the relationship between tools (e.g. search_products says to use it before requesting detailed prices), leaving no overlap.
All four names follow a consistent snake_case verb_noun pattern: find_stores, search_products, get_product_prices, compare_basket. Verbs are distinct and predictable (find/search/get/compare) with matching resource nouns.
Four tools are well-scoped for a focused price-comparison domain, and each covers a necessary stage of the workflow with no filler. The surface is lean without being trivial.
The surface covers the full core flow: store discovery, product lookup by name, per-barcode prices, and basket comparison. Minor gaps exist, such as no direct category/browse listing or barcode-to-product reverse lookup, but agents can work around these via search_products.
Maintenance
Related MCP Connectors
Search Coles, Woolworths and ALDI at once: prices, unit prices, specials, cheapest store per item.
Product search for AI shopping agents: prices and buy links from big retailers. No key needed.
Prices, availability and assortment for 150k+ products across 240+ Brazilian online supermarkets.
Search products in nearby stores. Agents can also list items for sale on a user's behalf.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides grocery price and nutritional information search capabilities, allowing AI agents to search for food products, compare prices, and analyze nutritional content across different grocery stores.1-
- AlicenseAqualityCmaintenanceEnables 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.1514 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to track global food prices, search products by barcode or name, and compare costs across 27 countries. It provides tools for real-time price scraping and data aggregation from major international supermarket chains.84MIT
- AlicenseAqualityBmaintenanceEnables an LLM to search grocery products across Russian retail chains, compare comparable items by unit price, and compute the cheapest basket either in one store or split across several.3MIT