API & MCP

Everything a person can do on Personal Price Memory, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Personal Price Memory

Track your own purchase history by product and currency, normalize units and compare pack changes, shops and unit-price trends.

Inputs of Personal Price Memory
FieldTypeDefaultDescription
purchasestable[{"product":"Coffee","shop":"Shop A","day":"2026-10-01","quantity":500,"unit":"gPurchases

Example request

Try an example

curl -X POST https://ledgerlypricememory.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ledgerly-price-memory": { "type": "http", "url": "https://ledgerlypricememory.usefulweb.app/mcp" }
  }
}