Docs Memvo 0.2.0a1
Use Memvo.
Everything the command line and the MCP server can do today. Memvo is pre-alpha: the vault format may still change between releases.
Install
Python 3.10 or newer. Memvo has no run-time dependencies.
$ pip install memvo
$ memvo init
Vault created at ~/.memvo/vault.dbThe vault is one SQLite file. Its path is ~/.memvo/vault.db, or $MEMVO_HOME/vault.db, or whatever --vault points at. Every command accepts --vault and --json.
Demo
memvo demo imports three made-up statements (CSV, QFX and PDF) into a throwaway folder, searches, opens the receipt of a PDF entry, reconciles all three accounts, then edits one line of the sample CSV and lets audit catch it. Your own vault is never opened. Add --keep DIR to keep the files.
Commands
| Command | What it does | Exit code |
|---|---|---|
init | Create the vault, or report that it exists. | 0 |
import FILE --account NAME | Import a CSV, OFX, QFX or PDF statement. --kind is bank, card, broker, wallet, cash or other. --map role=column overrides header detection. | 0, or 1 on an unreadable file |
search [WORDS] | Full-text search. Filters: --account, --period YYYY-MM, --since, --until, --limit. No words lists the latest entries. | 0, or 1 when nothing matches |
show ID | One entry and its receipt. | 0, or 1 for an unknown id |
accounts | Accounts with entry count, net total and date range. | 0 |
periods [--account NAME] | Money in and out per month. | 0 |
audit | Re-hash every source file and compare each stored row with the bytes on disk, or with a fresh extraction of its PDF page. Lists likely duplicates across overlapping exports. | 0 when everything matches, 2 when not |
reconcile --account NAME | Check running balances row by row. --expect AMOUNT compares the sum of entries with a figure you read off a statement; --expect statement uses the newest OFX ledger balance or PDF closing balance. --as-of and --opening narrow it. | 0 when it balances, 2 when not |
stats | Vault path, counts and date range. | 0 |
mcp | Run the read-only MCP server on stdio. | runs until closed |
demo [--keep DIR] | The guided run described above. | 0 |
Import
CSV. The separator is sniffed (comma, semicolon, tab, pipe). Headers are matched against English and Indonesian names such as Date, Tanggal, Amount, Debit/Credit, Saldo. Day/month order is decided once per file. Amounts may be written 1,234.56, 1.234,56 or (12.00). Quoted fields may span lines; the entry keeps the full line range.
OFX and QFX. Both the SGML (1.x) and XML (2.x) forms. Each <STMTTRN> block is stored verbatim, its FITID is kept as the bank reference, and the statement's ledger balance is remembered for reconcile --expect statement.
PDF. Text-based statements, read with the standard library. A row is a printed line that starts with a date and ends with amounts. Which amount is the debit, the credit or the balance comes from the column header above it (Debit, Credit, Amount, Balance, Mutasi, Saldo), from a DB, DR or CR marker, or from the running balance. Text-only lines under a row, such as a reference, join it. Dates without a year take it from the full dates on the statement. Opening and closing balances are read, and the closing one is remembered for reconcile --expect statement. Encrypted files must be saved unprotected first. Scanned pages (pictures of text) are listed, not read.
$ memvo import november.pdf --account savings
savings: 11 entries added from november.pdf (pdf)
source sha256 35e096770fcd6bd4…
statement balance 5,610.25 as of 2026-11-28
opening balance 4,150.00 (pass --opening 4,150.00 to reconcile)Bad rows are skipped and listed with their line number (page and line in a PDF) and reason. Nothing is guessed. Importing the same file twice adds nothing, because entry ids come from the file hash, the line and the raw text.
Receipts
Every entry carries a receipt. Amounts are stored as integers scaled by 10,000, never as floats.
{
"entry": "e_87f7eaf199f9cde5",
"source": "/home/me/statements/checking.csv",
"lines": "7",
"source_sha256": "7e61003a02cb6628f28bcbd0e17aba1cef8d823813df4f95324ecfc53c8bdbdb",
"raw_sha256": "6fe2f1f304317c9b9e6e96db7823ae80c72b38804c7ced445335d126a9a81ac5",
"raw": "2026-11-05,\"STREAMLY SUBSCRIPTION, MONTHLY\",-17.99,4131.82"
}Multi-line rows give a range such as "12-14". OFX entries add bank_ref. PDF entries add page, and lines counts printed lines on that page (hashes left out here):
{
"entry": "e_9db7276ea4cb8f5c",
"source": "/home/me/statements/november.pdf",
"page": 1,
"lines": "9",
"raw": "05 Nov 2026 STREAMLY SUBSCRIPTION, MONTHLY 17.99 4,124.83"
}MCP tools
Memvo is listed in the official MCP Registry as pro.memvo/memvo, so clients that read the registry can find and install it. To register it by hand:
{
"mcpServers": {
"memvo": { "command": "memvo", "args": ["mcp"] }
}
}All seven tools are read-only. Imports stay a manual step. The server asks the agent to cite a receipt before stating an amount, and to say so when nothing matches.
| Tool | Input | Returns |
|---|---|---|
memvo_search | query, account, period, since, until, limit (1 to 100) | Entries with receipts, best match first |
memvo_get_entry | id | One entry with its receipt |
memvo_accounts | none | Accounts with count, net total, date range |
memvo_periods | account | Money in and out per month |
memvo_audit | none | Per-file status and likely duplicates |
memvo_reconcile | account, expected, as_of, opening | Balance breaks and the difference |
memvo_stats | none | Vault path, counts, date range |
Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05, JSON-RPC 2.0 over stdio, one message per line.
Verify a release
Releases are built and uploaded by publish.yml through PyPI trusted publishing. No upload token exists. Each file carries a signed provenance attestation that names the repository and workflow:
$ curl -s https://pypi.org/integrity/memvo/0.2.0a1/memvo-0.2.0a1-py3-none-any.whl/provenanceThe publisher block in the answer should read memvo/memvo, publish.yml, environment pypi.