Argentina Price Index

io.github.oscarlopez-gif由 GitHub 账号 oscarlopez-gif 发布v0.1.0更新于 Oct 24, 2026

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

发布方自己的服务:PriceWin

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

远程 MCP 服务器,提供阿根廷食品与饮料每日价格指数,免费获取最新值,完整序列需付费。

可以做什么
  • 读取食品与饮料指数的最新数值和 30 天变动率,可选 Jevons、Carli 或截尾估计方法
  • 对比同一底层数据在三种估计方法下的最新指数值
  • 获取完整的每日指数时间序列,可按乳制品、烘焙、生鲜、肉类、粮油、饮料等子类筛选
适用场景
适合试验面向智能体的价格指数接口或按次付费(x402 风格)流程,或演示通胀类数据获取。若需要真实的阿根廷价格数据则不适合。
运行要求
远程 streamable HTTP 端点;未声明任何软件包、账号、API 密钥或环境变量。付费序列调用需在请求中附带支付参数;README 的本地运行需要 Node 18+ 和 Cloudflare 账号。
安装前请注意
README 明确说明数据为合成的占位数据,不应视为真实的阿根廷价格。支付仅为共享密钥 HMAC 模拟校验,并非链上结算,且无重放保护;付费序列标价 0.02 美元。README 还指出该端点不支持会话与身份验证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Argentina Price Index,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.oscarlopez-gif%2Fargentina-price-index/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "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.

来源:README.md,提交 a65037e

工具

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.

输入参数methodcategory

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.

输入参数category

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.

输入参数methodsubcatcategory

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Price 集成