LedgersHoard
Reads a connected Gmail mailbox to find payment-related messages (receipts, "has pagado", card notices, bills, shop orders, refunds) and turns them into ledger expenses. The mail search uses Gmail-specific queries and skips the Promotions, Social and Forums tabs, returning only matching messages so merchants, amounts, currencies and charge dates can be extracted and recorded.
Stores the entire household ledger (accounts, categorised entries, monthly budgets, imports, scenarios and settings) in a single local SQLite file on the user's own computer, using Node's built-in node:sqlite with no native modules or external database server.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Ledger's Hoard
A local household ledger: accounts, categorised entries, budgets, reports, bank imports, payments read from your mail, shared expenses and a month-end forecast, stored in one SQLite file on your own computer.
Spanish version: README.es.md.
What it is
Ledger's Hoard is a small web app (Express + React) that keeps your household money in a single local SQLite database. Everything is stored as integer cents, nothing leaves the machine, and the same data is exposed to an assistant through MCP, so you can use the interface, ask Faustus, or both.
It is one app of the Hoard family and works on its own. When the family hub or Faustus is running it also reads payment mail, sends collection notices, notifies you and appears on the family agenda. The interface is in Spanish.
Related MCP server: Family Expense MCP
What it does
Entries and accounts
Accounts (cash, bank, card, savings, other) with a currency each and an opening balance; archived instead of deleted when they have entries.
Expense and income categories with optional parent, colour and an editable monthly budget; a Spanish default set is seeded on first run.
Entries table with filters (dates, account, category, free text, partial tag), quick-add row, inline edit, delete with confirmation, tag editor, "create a similar entry" and incremental loading with totals per currency.
Transfers between accounts (two linked entries): they change balances but are excluded from income, expense and budgets.
Find a payment by exact amount within five days of a date, to check whether an invoice was paid.
Attach documents of other apps to a movement (
hoard://app/kind/idreferences shown as chips that open in the owning app).
Import
Bank CSV: delimiter, header row, date formats, decimal comma and separate debit/credit columns are detected; the mapping can be corrected, the preview shows duplicates, and repeating an import is safe.
OFX/QFX statements.
A bank row that matches a movement already recorded from mail or typed by hand joins it instead of creating a second entry.
Reports and planning
Summary: month picker, income / expense / net / balance tiles, budget bars per category, account balances, what the mail recorded this month and a projected balance at month end with its lines.
Month comparison against the previous month and the three-month average, total and per category.
Reports: 12-month income vs expense, expense by category, yearly report by month and category, and detection of recurring charges.
"Unusual charges": a repeated charge within days, a spike against the merchant's median, an extra charge from a monthly merchant, a large first charge. Signals to review, not proof of fraud.
Forecast: named what-if scenarios with one-time, monthly or quarterly assumptions, compared against recorded balances for 3-24 months, or against each other.
Budget and renewal alerts, charged-after-cancelling alerts, and a daily check of overdue invoices.
Reads the mail account connected to Faustus (or the hub's mail gateway) and records receipts, card notices, bills, shop orders and refunds as expenses on the charge date, with merchant, amount, order number and confidence.
Low-confidence mail goes to a review queue (accept, ignore, undo) with possible duplicates pointed out; the same message or order is never recorded twice.
Paste a receipt that is not in the inbox.
Mail text is treated as untrusted data and stored only as a short snippet.
Subscriptions
Found in mail or in repeated charges, with monthly and yearly cost per currency, price history, next charge, trial end, cancel / pause, and upcoming charges.
Shared expenses
Split an expense you paid among people (by share, amount or equally); per-person balances and paybacks, applied to the oldest open share first.
Cobros (invoices you issue)
Invoices with client, concept, amount, due date, reference and payment instructions.
A notice ladder: a plain reminder on day 1, a firmer one on day 7, and an internal notification on day 14. Drafts are editable and sent through the family mail service on request; automatic sending is off by default.
Payments in the ledger that look like a pending invoice are proposed for you to accept or dismiss.
Income from sales
Books the income of a sales batch from the family's sales app, one entry per currency and day, idempotent.
Run it
Requires Node.js 22.13 or later (it uses the built-in node:sqlite). No native modules, no Docker.
npm install
npm run build
npm start # http://127.0.0.1:5180npm run open starts the server and opens the browser on Windows. npm run dev runs the API and Vite together. The server binds to 127.0.0.1; if the port is busy it takes the next free one unless PORT_STRICT=1.
Variable | Purpose |
| Preferred port (default |
| Do not fall back to another port. |
| Data folder (default |
| Extra host names accepted behind a tunnel, comma-separated, exact or |
| Faustus folder used to read mail (also settable in Ajustes). |
| Do not start the background mail reader. |
| Turn off the hourly alert check. |
| MCP bridge: app URL and bearer token location. |
| Faustus address for the copilot (default |
| Disable the Faustus copilot button and routes. |
Behind a private tunnel, list the host names in LEDGER_ALLOWED_HOSTS; the browser then offers to install the app as a PWA.
Connect an assistant (MCP)
server/mcp.js is a stdio MCP server that proxies every call to the running app, so only one process opens the database. Keep the app running while the assistant works.
{
"command": "node",
"args": ["C:/path/to/ledgers-hoard/server/mcp.js"],
"env": { "LEDGER_URL": "http://127.0.0.1:5180", "LEDGER_TOKEN_FILE": "C:/path/to/ledgers-hoard/data/mcp-token" }
}faustus-plugin.json describes the app for Faustus (health check, launch hint, MCP command). The tools, about sixty, are grouped as:
Area | Tools |
Accounts and categories |
|
Entries |
|
Reports |
|
Forecast |
|
CSV import |
|
| |
Subscriptions and alerts |
|
Shared expenses |
|
Invoices issued |
|
Sales |
|
Account and category names are matched fuzzily and accent-insensitively; ambiguous names return candidates so the assistant can ask. Destructive tools require confirm: true. The tool catalogue is also served at GET /api/agent/tools.
Connection with Faustus and the Hoard family
Copilot: every page has a floating Faustus button that opens the assistant in a side panel. The conversation lives in Faustus; this app relays it and tells the assistant which page, month, filters and open form you are looking at. When the assistant finishes a turn the page reloads its data in place without losing what you typed.
App Dock: opened beside a Faustus chat, the page registers
ledger_open,ledger_filterandledger_viewso the assistant can open records, apply filters and switch sections.Hub: mail gateway, notifications (quiet hours, phone), address book for shared expenses, and the family agenda (
GET /api/family/agenda: subscription renewals, trial ends, expected charges, old shared debts).Skills:
faustus-plugin.jsonnames the family skillhousehold-ledger-month-close.
All of these are optional: with the hub or Faustus away, every local feature still works and the ones that need another app say so.
Data and security
data/ledgers-hoard.db: SQLite in WAL mode with versioned migrations.data/mcp-token: a random token written at every start, never committed.Requests are accepted only from
localhost/127.0.0.1hosts and origins (plus any inLEDGER_ALLOWED_HOSTS); cross-site requests are rejected.The server talks to nothing outside the machine; only the mail helper process talks to a mail server.
Money input such as
12,50,1.234,56or1,234.56is parsed byshared/money.js, which the interface, API and tools share.
Project layout
Path | Contents |
| Express API, SQLite access, mail engine and parser, scheduler, receivables, reports, forecast, MCP bridge, family client |
| Vendored shared code of the Hoard family (money, dates, guard, MCP bridge); do not edit here |
| React 19 + Vite + Tailwind v4 (Resumen, Movimientos, Cuentas, Categorías, Importar, Informes, Compartidos, Previsión, Correo, Suscripciones, Cobros, Ajustes) |
| Code used by both server and client ( |
|
|
|
|
npm test # node --test tests/*.test.js
npm run build # vite build -> dist/Tests use temporary data directories and never touch data/.
License: MIT (see LICENSE).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Log, query, and edit expenses, budgets, and accounts in Manilo (formerly Ledgy) from any MCP-compatible AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables personal finance management through natural language, including tracking income/expenses, categories, loans, subscriptions, budgets, and AI-powered insights, all backed by a local SQLite database.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables families to manage shared expenses, income, budgets, and financial reports through natural language, with all data stored in PostgreSQL and exposed as MCP tools to compatible LLM clients.-
- FlicenseAqualityCmaintenanceEnables AI assistants to manage local expense and income records, including adding, listing, editing, deleting expenses, tracking credits, categorizing spending, and calculating balances via SQLite-backed MCP tools.8-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to manage a local SQLite personal-finance ledger by recording income and expenses, listing transactions, aggregating spending by category, summarizing income/expense/net, and setting and tracking monthly budgets.MIT