Argentina Price Index

io.github.oscarlopez-gifPublished by GitHub account oscarlopez-gifv0.1.0Updated Oct 24, 2026

Daily Argentina food & beverage price index, source-cited from public retailer prices.

The publisher's own server: PriceWin

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Remote MCP server exposing a daily Argentina food and beverage price index, with a free headline and a paid full series.

What you can do
  • Read the latest food and beverage index value and 30-day rate, choosing a Jevons, Carli or trimmed estimator
  • Compare the latest index value across all three estimators from the same underlying data
  • Retrieve the full daily index time series, optionally filtered by subcategory such as dairy, bakery, produce, meat, pantry or beverages
When to use it
Useful for experimenting with an agent-facing price index or an x402-style pay-per-call flow, or for demoing inflation-style data retrieval. Not suitable when you need real Argentine price figures.
Requirements
A remote streamable HTTP endpoint; no package, account, API key or environment variable is declared. The paid series call expects a payment argument in the request, and the README's local setup needs Node 18+ and a Cloudflare account.
Before you install
The README states the data is synthetic placeholder data and should not be treated as real Argentine prices. Payment is a mock shared-secret HMAC check, not on-chain settlement, with no replay protection, and the paid series is listed at $0.02. The README also notes the endpoint lacks sessions and authentication.

Installation

In SourceWeft

  1. Open Argentina Price Index in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.oscarlopez-gif%2Fargentina-price-index/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "argentina-price-index": {
      "type": "http",
      "url": "https://api.oscar-lopez.com/mcp"
    }
  }
}

README

Paid Door — Argentina food & beverage price index (Cloudflare sandbox)

A minimal, working test of the video's core mechanic: one agent request becomes a paid transaction at the edge. A Cloudflare Worker serves a live-computed price index from D1, gated by an x402-style 402 → pay → retry → data loop. Payment is mocked (shared-secret HMAC) so the whole loop runs with zero wallet setup; swapping in real x402 is a localized change.

Data is synthetic. seed/observations.sql is generated placeholder data so the demo runs before a real scraper exists. Do not treat the numbers as real Argentine prices.

What's here

paid-door-index/├─ wrangler.jsonc         # Worker + D1 binding + sandbox vars├─ schema.sql            # price_observations + methodology (+ future index_series cache)├─ seed/│  ├─ generate.mjs       # deterministic synthetic data generator (60 SKUs x 30 days)│  └─ observations.sql   # generated seed (1,800 rows)├─ src/index.ts          # Worker: routes + live index math + mock x402 gate├─ agent/test-agent.mjs  # the paying "buyer": request → 402 → pay → retry → data└─ README.md

Endpoints

EndpointTierReturns
GET /v1/headline?country=AR&category=food_beveragesfreelatest index value + monthly rate (the teaser)
GET /v1/index?country=AR&category=food_beveragespaid ($0.02)full daily series
GET /v1/latest?country=AR&category=food_beveragespaid ($0.02)latest reading + methodology
POST /mcp—MCP JSON-RPC: initialize, tools/list, tools/call

MCP interface (what agents actually call)

The Worker also speaks MCP over HTTP at /mcp, exposing two tools:

  • get_ar_food_headline (free) — latest value + 30-day rate
  • get_ar_food_price_index (paid, $0.02 mock-x402) — full daily series; call once with no _payment to receive a challenge, then retry with arguments._payment = {nonce, resource, amount, signature}

Test the full agent flow (with npm run dev running):

bash
npm run agent:mcp     # initialize → tools/list → free call → paid call (challenge → pay → data)

Production note: /mcp here is a minimal JSON request/response subset of the Streamable HTTP transport (no SSE/sessions/auth). For a real deployment use the official MCP SDK or Cloudflare's agents McpAgent, and replace the mock HMAC with a real x402 facilitator.

Index math (methodology_version = v0-simple-avg): index = 100 × mean(price_t / price_base) over in-stock SKUs, base = first day in the window. Upgrade path baked into the schema: geometric mean within category + Laspeyres across categories.

Run it locally

Prereqs: Node 18+ and a Cloudflare account (npx wrangler login).

bash
cd paid-door-indexnpm install
# 1. Create the D1 database, then paste the printed database_id into wrangler.jsoncnpm run db:create
# 2. Load schema + seed into LOCAL D1npm run schema:localnpm run seed:gen        # (optional) regenerate observations.sqlnpm run seed:local
# 3. Start the Workernpm run dev             # serves http://127.0.0.1:8787
# 4. In a second terminal, run the paying agentnpm run agent

Expected agent output: the free headline, then a 402 with a price challenge, then a 200 with the full series and a PAYMENT-RESPONSE settlement header — one request turned into a transaction.

Deploy to your account

bash
npm run schema:remotenpm run seed:remotenpm run deploy# then point the agent at the deployed URL:BASE=https://paid-door-index.<your-subdomain>.workers.dev npm run agent

Watch live logs with npx wrangler tail.

Sandbox → real (later)

  1. Real data: replace seed/generate.mjs with a scheduled Worker that scrapes 1–2 Argentine online grocers daily into price_observations.
  2. Real payment: replace the HMAC mock in src/index.ts (verifyPayment / challenge) with a real x402 facilitator (POST /verify, POST /settle) per Cloudflare's Agents x402 docs.
  3. Move the secret: npx wrangler secret put MOCK_PAYMENT_SECRET instead of the plain var.
  4. Expose as MCP so any AI agent (including this assistant) can call get_index directly.
  5. Materialize index_series as a nightly cache once query volume grows.

Notes / caveats

  • Mock payment proves knowledge of a shared secret — it is not cryptographic on-chain settlement. It exists only to exercise the request/response shape.
  • No replay protection in the sandbox (any valid signature can be reused). Real x402 settlement handles this.
  • The synthetic monthly rate is intentionally noisy; single-endpoint inflation reads jump around, which is itself a good classroom point.

Source: README.md at commit a65037e

Tools

3

get_ar_food_headline

Free: latest Argentina food & beverage price index value + 30-day rate, source-cited and updated daily. Optional method: jevons (default, recommended), carli, or trimmed. For the full daily series use get_ar_food_price_index.

Parametersmethodcategory

get_ar_food_methods

Free: methodology comparison — the latest Argentina food & beverage index under every estimator (Jevons geometric mean, Carli arithmetic mean, trimmed mean), all computed from the same underlying data. Zero cost.

Parameterscategory

get_ar_food_price_index

Returns the full daily Argentina food & beverage price index time series (base=100). Source-cited from public retailer prices, updated daily, methodology published. Options: method (jevons/carli/trimmed), subcat (dairy/bakery/produce/meat/pantry/beverages) for a subcategory sub-index. Free during the public preview; metered x402 access ($0.02/call) is coming. Free headline via get_ar_food_headline.

Parametersmethodsubcatcategory

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.

Other Price integrations