ynab-mcp-lite
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ynab-mcp-lite show me unapproved transactions from my checking account this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ynab-mcp-lite
A deliberately tiny, non-destructive MCP server for YNAB, built on the official public API. Read-first: the only write it can ever perform is adding transactions — always unapproved, so nothing affects a budget until the account owner reviews and approves it in the YNAB app.
Why another YNAB MCP server?
Several exist. Most are stdio-first, and their safety is configuration — one env flag away from full read-write against a budget. This one makes the dangerous operations impossible by construction:
Only
GETrequests and "create transaction(s)"POSTs exist in the codebase. There is no code path for update, delete, approve, import-trigger, or any budget/category mutation — and a CI guard (part of the test suite) fails the build if a destructive call ever appears in the source.Created transactions are forced unapproved; the server cannot approve anything. Worst-case recovery for a wrong entry is deleting an unapproved item with two taps in the app.
Every write tool is dry-run by default — preview first, explicit
dry_run=falseafter that.A duplicate pre-check refuses to add an amount that already exists in the same account within ±N days, unless explicitly overridden.
Stateless. No storage, no cache. The token comes from the environment and is never logged or returned by any tool.
Related MCP server: YNAB MCP Server
Tools
Reads (always available)
tool | description |
| token validity, plan list, server config |
| plans (budgets) on the account |
| accounts: id, name, type, on-budget, balance |
| categories + groups, budgeted/activity/balance |
| payees, optional name search |
| transactions, filter by account / dates / unapproved |
Add-only writes (registered only when YNAB_ALLOW_WRITES=1)
tool | description |
| add one transaction (dry-run default) |
| add up to 50 in one call |
Names (account, payee, category) resolve loosely: exact id, exact name,
or a unique substring — ambiguity is an error listing the candidates, never a
guess. Amounts are in dollars (e.g. -12.34) and converted to YNAB
milliunits with exact decimal math. Payee names that don't exist yet are
passed through so YNAB can create them.
Status
Server + 45-test suite green (no network: a fake YNAB over
httpx.MockTransport)Container build, GHCR publish and Dockge deploy kit included (
deploy/)Writes ship disabled; enable with
YNAB_ALLOW_WRITES=1on a single-user deploy
Quick start
Docker
docker run --rm -p 8000:8000 \
-e YNAB_API_TOKEN="<your token>" \
ghcr.io/realbeepmcjeep/ynab-mcp-lite:latestMCP endpoint: http://localhost:8000/mcp · health: /healthz.
From source
uv sync
YNAB_API_TOKEN=<token> uv run ynab-mcp-lite serve # HTTP (127.0.0.1:8000)
YNAB_API_TOKEN=<token> uv run ynab-mcp-lite serve --transport stdioUse with an MCP client
HTTP clients: point at http://<host>:8000/mcp. For stdio clients:
{
"mcpServers": {
"ynab": {
"command": "ynab-mcp-lite",
"args": ["serve", "--transport", "stdio"],
"env": { "YNAB_API_TOKEN": "<your token>" }
}
}
}Configuration
All via environment; every variable except the token is optional.
variable | default | meaning |
| — | YNAB Personal Access Token (Settings → Developer) |
|
|
|
| — | default plan id; a single plan resolves automatically |
|
| duplicate pre-check window, in days |
| container name + localhost | Host allowlist for the HTTP transport |
|
| API base (development only) |
|
| bind address for |
Reconciliation workflow
The reason the write path exists: reconciling a card or account against a statement / receipt screenshots.
Pull what's already recorded:
get_transactionsfor the account and date range.Diff against the statement (anywhere: chat, script, human).
Preview the additions with
create_transaction(s)(dry-run default).Create them for real (
dry_run=false) — all unapproved, optionally flagged for easy review.Approve them in the YNAB app when satisfied; the duplicate pre-check makes overlapping or re-sent statements safe to process.
Development
uv sync
uv run ruff check src tests
uv run pytest # offline — fake YNAB over httpx.MockTransport
uv run python scripts/smoke.py http://127.0.0.1:8000 # against a running serverDeployment
deploy/ contains a ready-made Dockge/compose stack: internal-only network,
no published ports, GHCR image with pull_policy: always, secrets via the
stack .env, rollback by pinning a :sha-<commit> tag.
Design
See docs/design.md for the full design and rationale.
License
MIT — see LICENSE.
Available Tools
6 toolsauth_statusARead-only
Check the YNAB connection: token validity, plan list, and this server's configuration (writes on/off, dedupe window). Never returns the token.
Inputs: no named parameters. Returns: result
get_transactionsARead-only
List transactions, newest first. Optional filters: one account, a date range (YYYY-MM-DD, inclusive), or only unapproved. Returns dollar amounts as strings plus exact milliunits. limit caps the rows returned (max 500).
Inputs: plan, limit, account, since_date, +2 more. Returns: result
list_accountsARead-only
List accounts in a plan: id, name, type, on-budget flag, balance. Closed accounts are hidden unless include_closed=true.
Inputs: plan, include_closed. Returns: result
list_categoriesARead-only
List categories in a plan: id, group, name, and budgeted/activity/balance for the current month. Hidden categories are excluded unless include_hidden=true; search matches name or group (substring).
Inputs: plan, search, include_hidden. Returns: result
list_payeesARead-only
List payees in a plan: id, name, and the transfer target account for transfer payees. search matches the name (substring).
Inputs: plan, search. Returns: result
list_plansARead-only
List the plans (budgets) on this YNAB account: id, name, last month, currency.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct YNAB resource or concern: plans, transactions, payees, auth, accounts, and categories. There is no overlap between them.
Most tools follow a consistent list_<resource> pattern. get_transactions and auth_status deviate slightly but are still clear and predictable.
Six tools is well-scoped for a lightweight YNAB server, covering all essential read-only resources without unnecessary bloat.
The read-only surface is complete for YNAB: plans, accounts, transactions, payees, categories, and authentication status are all covered. Write operations are absent, but this is a 'lite' server; the auth_status mention of writes feels slightly disconnected.
Maintenance
Related MCP Connectors
Read your accounts, budgets and net worth, and draft changes you confirm.
Read-only access to your bank, investment, and crypto accounts: balances, transactions, holdings.
Read-only: transactions, budgets, forecasts and insights from the PocketSmith personal finance tool.
Multi-currency budgeting: read and update your accounts, transactions, categories and budgets.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to interact with YNAB budgets, performing read-only queries by default and optional write operations like creating transactions and managing categories through natural language.45950 npm53MIT
- AlicenseAqualityDmaintenanceEnables users to interact with YNAB budgets, accounts, transactions, and more through a comprehensive set of tools with batch operations, deterministic analysis, and undo support.26104 npm6MIT
- AlicenseAqualityCmaintenanceProvides a read-only interface to YNAB budget data, allowing AI assistants to inspect budgets, accounts, categories, transactions, and more. Includes an experimental guarded write workflow for category assignments.108 npmMIT
- AlicenseAqualityCmaintenanceEnables AI assistants to connect to YNAB budgets, providing tools for accounts, transactions, categories, payees, and analytics, including search, bulk operations, and delta sync.47AGPL 3.0