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
POST https://ledgerlypricememory.usefulweb.app/api/v1/calculate– run Personal Price MemoryGET https://ledgerlypricememory.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Personal Price Memory
Track your own purchase history by product and currency, normalize units and compare pack changes, shops and unit-price trends.
| Field | Type | Default | Description |
|---|---|---|---|
purchases | table | [{"product":"Coffee","shop":"Shop A","day":"2026-10-01","quantity":500,"unit":"g | Purchases |
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)
- Streamable HTTP endpoint:
https://ledgerlypricememory.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ledgerly_price_memory - Local stdio connector:
node src/mcp-stdio.ts --tool=ledgerly-price-memory
{
"mcpServers": {
"ledgerly-price-memory": { "type": "http", "url": "https://ledgerlypricememory.usefulweb.app/mcp" }
}
}