ZenMoney MCP Server
ZenMoney (Дзен-мани) finance for AI agents: transactions, reports, budgets, debts
ZenMoney scores 68 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 24 tools. Filed under Finance. GitHub shows 3 stars. Package registries report about 57 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
92/100 for listing completeness. Lost points: 4 of 24 tools barely described, short summary.
How quality is graded
Where the 68 comes from
22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "krax1337-mcp-server-zenmoney": { "command": "npx", "args": [ "-y", "mcp-server-zenmoney@1.0.1" ], "env": { "ZENMONEY_TOKEN": "YOUR_ZENMONEY_TOKEN", "ZENMONEY_READ_ONLY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
ZENMONEY_TOKENSecret | Required | ZenMoney API token, e.g. from https://zerro.app/token |
ZENMONEY_READ_ONLY | Optional | Set to true to expose only read tools |
Tools24Tool docs quality grade D
All capabilitiesMatch a real balance by recording a correction income/expense
period
create_accounttoolCreate a cash, card, checking or e-money account
create_categorytoolCreate a category or subcategory (one nesting level)
Record up to 50 expenses, incomes, transfers or debt operations; auto-categorizes, warns about duplicates
delete_categorytoolDelete a category, moving its transactions and planned operations to moveto or uncategorizing them
Soft-delete transactions by id
get_budgettoolMonthly budget vs. actual, remaining, % used and still-planned operations per category
get_overviewtoolStart here: today's date, main currency, net worth, account balances, this month's income/expenses, upcoming planned operations, data freshness
list_accountstoolAccounts with balances (also in main currency), credit limits, bank and flags
list_categoriestoolCategory tree with kind (expense/income/both) and 12-month usage counts
list_debtstoolPer-person debt balances (positive = they owe you); optionally a person's debt transactions
About
💸 ZenMoney MCP
Talk to your money. Let Claude, Cursor, Codex or any MCP agent read, analyze and update your ZenMoney (Дзен-мани) finances in plain language.
Example conversation:
You: How did October go? Anything unusual compared to September?
Agent: calls
summarize_transactions,get_budget→ Restaurants went 40% over budget, mostly in the last week. Taxi doubled after you started commuting by Yandex Go. Groceries were flat. Want me to raise the Restaurants budget for November or set up a category for the commute?
✨ Why
- 🔍 Ask anything. Balances, net worth, where the money went, budget status, who owes whom, what's due next week.
- ✍️ Record by talking. "Magnum 12 450 KZT from Kaspi Gold, groceries." Categories are filled in from your history, and duplicates trigger a warning.
- 📊 Budgets and reviews. Built-in
monthly_review,categorize_transactionsandplan_budgetworkflows. - 🛡️ Safe by default. Read-only mode,
dry_runpreviews, soft deletes with restore, confirmation hints on destructive tools. - 🔒 Private. Runs on your machine and talks only to the official ZenMoney API. Your token never touches disk.
Unofficial project, not affiliated with ZenMoney or Zerro.
🪄 Install with one prompt
Paste this into your coding agent (Claude Code, Codex, Cursor, omp, …):
Install the ZenMoney MCP server for me: https://github.com/krax1337/mcp-server-zenmoney
Follow the "Agent setup guide" in its README.
The agent checks Node, has you save the token to a private file (it never asks you to paste the token into chat), verifies it, and registers the server in its own config.
- Check that
node --versionis 22 or newer. If it isn't, stop and tell the user. - Ask the user to open https://zerro.app/token, log in with their ZenMoney account and save the token themselves with:
Do not ask for the token in chat, and do not write it into any config file.mkdir -p ~/.config && umask 077 && printf '%s' 'PASTE_TOKEN_HERE' > ~/.config/zenmoney-token - Verify the token:
ExpectZENMONEY_TOKEN_FILE=~/.config/zenmoney-token npx -y mcp-server-zenmoney --checkOK: <login>, main currency …. On exit code 1, show the user the reason and stop. - Ask the user whether the agent may change their data or should be read-only. For read-only, add
"ZENMONEY_READ_ONLY": "true"toenv(or-e ZENMONEY_READ_ONLY=truefor Claude Code). - Register the server in your own MCP config, using the absolute path of the token file:
- Claude Code:
claude mcp add zenmoney -e ZENMONEY_TOKEN_FILE=$HOME/.config/zenmoney-token -- npx -y mcp-server-zenmoney - Clients with an
mcpServersJSON file (Claude Desktop, Cursor, omp, …):"zenmoney": { "command": "npx", "args": ["-y", "mcp-server-zenmoney"], "env": { "ZENMONEY_TOKEN_FILE": "/home/<user>/.config/zenmoney-token" } }
- Claude Code:
- Tell the user to restart or reload MCP servers, then try: "Give me an overview of my finances."
🚀 Manual install
Requirements: Node.js >= 22.
- Get a token: open https://zerro.app/token, log in with your ZenMoney account and copy the token.
- Check it:
ZENMONEY_TOKEN=... npx -y mcp-server-zenmoney --checkprintsOK: <login>, main currency …, N active accounts, M transactions(exit code 1 with the reason otherwise). - Add it to your agent:
Claude Code
claude mcp add zenmoney -e ZENMONEY_TOKEN=YOUR_TOKEN -- npx -y mcp-server-zenmoney
Claude Desktop / Cursor / most MCP clients (claude_desktop_config.json, ~/.cursor/mcp.json, …)
{
"mcpServers": {
"zenmoney": {
"command": "npx",
"args": ["-y", "mcp-server-zenmoney"],
"env": { "ZENMONEY_TOKEN": "YOUR_TOKEN" }
}
}
}
omp: user-wide config ~/.omp/agent/mcp.json (or per project .omp/mcp.json), inside mcpServers:
"zenmoney": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-server-zenmoney"],
"env": { "ZENMONEY_TOKEN": "${ZENMONEY_TOKEN}" }
}
omp expands ${VAR} placeholders, so the token can stay in your shell environment. Then /mcp reload.
Without a token the server still starts, and every tool explains how to configure one.
Keeping the token out of config files
umask 077 && printf '%s' 'YOUR_TOKEN' > ~/.config/zenmoney-token
Then use "env": { "ZENMONEY_TOKEN_FILE": "~/.config/zenmoney-token" } instead of ZENMONEY_TOKEN.
Read-only
Add "ZENMONEY_READ_ONLY": "true" to env, or --read-only to args. Write tools are then not registered at all.
HTTP mode
ZENMONEY_TOKEN=... npx -y mcp-server-zenmoney --http --port 3000
- MCP endpoint (Streamable HTTP):
http://127.0.0.1:3000/mcp;GET /healthreturns{"ok":true}; any other path is 404. - Default bind is
127.0.0.1. Loopback binds (127.0.0.1,localhost,::1) apply Host/Origin validation against DNS rebinding. - Any other
--host/MCP_HTTP_HOSTis refused unlessMCP_HTTP_TOKENis set. When set (on any bind), clients must sendAuthorization: Bearer <MCP_HTTP_TOKEN>, otherwise they get 401. It is a single-user server: whoever has that token has your ZenMoney access, so keep it on a private network.
💬 Things to ask
- "How did October go? Biggest categories and anything unusual compared to September."
- "Add: Magnum 12 450 KZT today from Kaspi Gold, groceries."
- "Recategorize all Yandex Go rides from last month to Transport / Taxi."
- "Copy this month's budgets to next month, but raise Restaurants to 80 000."
- "Who owes me money, and how much in total?"
- "What payments are scheduled for the next two weeks?"
- "My cash wallet actually has 23 000; fix the balance."
🧰 Tools
Read (always registered, annotated readOnlyHint):
| Tool | Purpose |
|---|---|
get_overview | Start here: today's date, main currency, net worth, account balances, this month's income/expenses, upcoming planned operations, data freshness |
list_accounts | Accounts with balances (also in main currency), credit limits, bank and flags |
list_categories | Category tree with kind (expense/income/both) and 12-month usage counts |
list_payees | Known payees ranked by use, with last date and usual category |
list_transactions | Filtered, paginated transaction search plus income/expense totals of all matches |
summarize_transactions | Aggregate by category, parent category, payee, account or day/week/month/year; measure=both for cash flow |
get_budget | Monthly budget vs. actual, remaining, % used and still-planned operations per category |
list_planned | Planned / recurring operations still pending in a date range, with expected totals |
list_debts | Per-person debt balances (positive = they owe you); optionally a person's debt transactions |
suggest_category | Category/merchant suggestions for payee names from ZenMoney and your own history |
sync | Pull changes from ZenMoney now; full=true re-downloads everything |
Write (not registered in read-only mode):
| Tool | Purpose |
|---|---|
create_transactions | Record up to 50 expenses, incomes, transfers or debt operations; auto-categorizes, warns about duplicates |
update_transactions | Edit amount, account, category, payee, comment, date, original amount; transfer destination. Type cannot change |
delete_transactions | Soft-delete transactions by id |
restore_transactions | Bring deleted transactions back (as copies with new ids) |
create_category | Create a category or subcategory (one nesting level) |
update_category | Rename, move, change kind, budget inclusion, mandatory flag, archive |
delete_category | Delete a category, moving its transactions and planned operations to move_to or uncategorizing them |
set_budgets | Set exact monthly budgets per category, total or uncategorized; 0 removes |
create_account | Create a cash, card, checking or e-money account |
update_account | Rename, archive, include/exclude from balance, savings flag, credit limit |
adjust_account_balance | Match a real balance by recording a correction income/expense |
Write tools carry MCP annotations: creating tools are non-destructive (destructiveHint: false); editing/deleting tools are destructiveHint: true, so clients that honor hints can ask for confirmation.
create_transactions, update_transactions, delete_transactions, delete_category and set_budgets accept dry_run: true: they resolve everything and return the would-be result (for updates: before/after per transaction) without sending anything to ZenMoney.
Prompts
Clients that support MCP prompts (e.g. as slash commands) get three workflows that only orchestrate the tools above:
| Prompt | Arguments | What it does |
|---|---|---|
monthly_review | month (YYYY-MM) | Income, spending vs. previous month, budget status, large transactions, upcoming payments, suggestions |
categorize_transactions | period | Proposes categories for uncategorized transactions, applies after confirmation (dry run first) |
plan_budget | month (YYYY-MM) | Proposes budgets from the last three months and planned payments, applies with set_budgets after confirmation |
🔒 Data, privacy and sync
- The server keeps a local replica of your ZenMoney database, synced through the official API v8 (
POST /v8/diff/, plusPOST /v8/suggest/for categories): a full download on first use, incremental diffs afterwards. Data older thanZENMONEY_SYNC_TTLseconds is refreshed automatically before a tool runs;syncforces it. - The replica is persisted to
<cache dir>/snapshot-<hash>.json(directory created0700, file0600). The filename is a hash of token and API origin; the token itself is never written to disk. The snapshot does contain your financial data. SetZENMONEY_CACHE=offto keep everything in memory. - API origin:
https://api.zenmoney.rufirst; if it rejects the token before any request has succeeded,https://api.zenmoney.appis tried.ZENMONEY_API_URLpins a single origin. - HTTP 401 from ZenMoney means the token is no longer valid: get a fresh one at https://zerro.app/token.
- "Today" and default dates use the process time zone; set
TZ(e.g.TZ=Asia/Almaty) in the server'senvif the agent host runs in a different zone. - Snapshots of tokens you no longer use stay in the cache directory; delete old
snapshot-*.jsonfiles after rotating a token. - Logs go to stderr only.
| Variable / flag | Default | Meaning |
|---|---|---|
ZENMONEY_TOKEN | — | ZenMoney API token from https://zerro.app/token |
ZENMONEY_TOKEN_FILE | — | File containing the token (used when ZENMONEY_TOKEN is empty; ~ expanded) |
ZENMONEY_READ_ONLY / --read-only | false | 1/true/yes/on registers only read tools |
ZENMONEY_SYNC_TTL | 30 | Seconds before data is re-synced on the next tool call |
ZENMONEY_CACHE_DIR | $XDG_CACHE_HOME/mcp-server-zenmoney, else ~/.cache/mcp-server-zenmoney | Snapshot cache directory |
ZENMONEY_CACHE | on | 0/false/no/off keeps data in memory only |
ZENMONEY_API_URL | https://api.zenmoney.ru, fallback https://api.zenmoney.app | Pin a single API origin |
MCP_TRANSPORT / --http | stdio | http serves Streamable HTTP |
MCP_HTTP_HOST / --host | 127.0.0.1 | HTTP bind address |
MCP_HTTP_PORT / --port | 3000 | HTTP port |
MCP_HTTP_TOKEN | — | Bearer token HTTP clients must send; required for non-loopback binds |
--check | — | Sync once with the configured token, print a one-line summary and exit |
--help, -h / --version, -v | — | Print usage / version |
CLI flags take precedence over the corresponding environment variables.
- Amounts are always positive;
typegives the direction:expense,income,transfer(between own accounts),debt_out(money given to a person: lending or repaying),debt_in(money received: borrowing or being repaid). - Accounts and categories are referenced by name (case- and emoji-insensitive, unique substrings work),
"Parent / Child"category paths, or ids. Accounts can also be referenced by card last digits (4+). - Currencies are ISO codes (
RUB,USD,KZT, ...). Dates areYYYY-MM-DD. - Query tools accept
period:today,yesterday,this_week,last_week,this_month,last_month,this_quarter,last_quarter,this_year,last_year,last_7_days,last_30_days,last_90_days,last_12_months(weeks start Monday;date_from/date_tooverride either end). - Reports are in the main currency at ZenMoney's current exchange rates and, like ZenMoney, count only in-balance accounts unless asked otherwise. Transfers and debts are excluded from summaries. The totals returned by
list_transactionsfollow the same rules (in-balance, not deleted), even when the listed transactions include off-balance or deleted ones. - A missing expense/income category on new transactions is filled from this payee's history first, then from the ZenMoney suggestion service (only live categories of the right kind). A new transaction matching an existing one (same date, type, account and amount) produces a duplicate warning; it is still recorded.
update_transactionscategoryreplaces the main category and keeps secondary tags;nullleaves the transaction uncategorized. Moving a transaction to an account in another currency requires the newamount. Changing onlyamountof a same-currency transfer updates both sides unless the received amount differed (a fee), which is kept.- Every write syncs with ZenMoney first and runs one at a time, so edits made in the app moments earlier are not overwritten and parallel tool calls cannot clobber each other. References to categories/merchants deleted in the app are dropped from pushed objects instead of failing the whole batch.
- If ZenMoney accepts a write but the answer is lost (timeout), the tool says the change may or may not have been saved; the next call re-syncs, so a retry gets a duplicate warning instead of silently doubling.
- Deletes are soft. ZenMoney cannot undelete in place, so
restore_transactionsre-creates each transaction under a new id; restoring the same transaction again is a no-op that points at the existing copy. - Budgets:
set_budgetssets an exact amount (lock on);0removes the budget. Budgets without the lock (set in the app) also include the month's planned operations, as in ZenMoney. The profile's month start day is honored. Rollover between months is not modelled. - Zerro's hidden
🤖 [Zerro Data]account and the reminders attached to it are ignored everywhere.
⚠️ Limitations
- Planned (recurring) operations can be read but not created or edited.
- Loan and deposit accounts cannot be created; bank-synced accounts are created by ZenMoney itself.
- Balances are not edited directly;
adjust_account_balancerecords a correction transaction. - Currency conversions in reports use current exchange rates, not historical ones.
- Zerro's envelope budget rollover is not computed.
🇷🇺 По-русски
MCP-сервер для Дзен-мани: ИИ-агент (Claude, Cursor, Codex и др.) видит счета и балансы, ищет операции, строит отчёты, ведёт бюджеты и долги, добавляет и редактирует операции. Работает локально через официальный API, токен берётся на https://zerro.app/token. Быстрая установка: вставьте агенту промпт из раздела Install with one prompt. Есть режим только для чтения (ZENMONEY_READ_ONLY=true).
🛠️ Development
git clone https://github.com/krax1337/mcp-server-zenmoney && cd mcp-server-zenmoney
npm install # also builds dist/
npm run typecheck # tsc --noEmit
npm test # vitest; offline, against an in-repo fake ZenMoney server in test/
node dist/index.js # run the local build
Releases: bump version in package.json and server.json, then push a vX.Y.Z tag. The Publish workflow tests the code and stages the version on npm via Trusted Publishing (no token, with provenance). A maintainer approves it with 2FA on npmjs.com (Staged Packages tab), then runs the Publish workflow manually (gh workflow run publish.yml), which sees the version live and publishes it to the MCP Registry as io.github.krax1337/mcp-server-zenmoney.
src/index.ts— entry point, stdio and HTTP transportssrc/config.ts— environment variables and CLI flagssrc/server.ts— MCP server and agent instructionssrc/prompts.ts— MCP prompts (monthly_review,categorize_transactions,plan_budget)src/tools/— MCP tools (read.ts,write.ts, shared schemas and context)src/zenmoney/— API client (api.ts), sync store and cache (store.ts), ledger semantics (ledger.ts), analytics (analytics.ts), write builders (writes.ts), dates and types
License
MIT. If this saves you time, a ⭐ helps others find it.
Frequently asked questions
What is ZenMoney MCP Server?
ZenMoney (Дзен-мани) finance for AI agents: transactions, reports, budgets, debts
How do I install ZenMoney MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. ZenMoney MCP Server runs locally from the npm package mcp-server-zenmoney with the command npx -y mcp-server-zenmoney@1.0.1.
Is ZenMoney MCP Server free and open source?
Yes. ZenMoney MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does ZenMoney MCP Server support remote (HTTP) connections?
No remote endpoint is listed for ZenMoney MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does ZenMoney MCP Server provide?
ZenMoney MCP Server provides 24 tools, including adjust_account_balance, categorize_transactions, create_account, and create_category. See the full tool list for descriptions and parameters.
How is ZenMoney MCP Server's trust score calculated?
ZenMoney MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.