Skip to content
v0.1.0MIT

Read and update YNAB budgets, accounts, categories, and transactions.

ynab

An Agent Plugin that wraps the YNAB API (https://api.ynab.com/v1) as a small stdio MCP server plus a skill. Use it from Cursor to list budgets, accounts, categories, and transactions, summarize a month, and create or update transactions after you confirm.

The official API currently calls budgets plans (/v1/plans). This plugin keeps the word "budget" in tool names. budget_id may be a plan id, an exact plan name, last-used, or default.

Tools

  • list_budgets — budgets visible to the token (or only those in YNAB_ALLOWED_PLANS when that is set)
  • list_accounts — account balances and ids
  • list_categories — category ids and budgeted / activity / balance for a month (optional month)
  • get_month_summary — Ready to Assign, income, assigned, activity, and Age of Money
  • list_transactions — filter with since_date, account_id, category_id, or type (uncategorized / unapproved)
  • create_transaction — MUTATING. Confirm the details with the user before calling.
  • update_transaction — MUTATING. Approve, categorize, or edit a transaction. Confirm first.

Install in Cursor

Grok Bot does not load local plugins. This is a Cursor IDE plugin.

From a clone

git clone https://github.com/dilloncoffman/YNAB-agent-plugin.git ~/.cursor/plugins/local/ynab

The directory name under ~/.cursor/plugins/local/ should match the plugin name (ynab). Copy or clone as a real directory, not a symlink, then reload plugins or restart Cursor.

From cursor.directory

You can also install this plugin from cursor.directory when it is listed there.

Configuration

Set these in Plugins → ynab → Configure, or in the environment Cursor uses to launch the MCP server. Do not commit them or paste the token into chat.

  • YNAB_ACCESS_TOKEN (required) — a personal access token from YNAB Developer Settings. The token can read and change every budget on the account; treat it like a password. YNAB shows it once. An unexpanded ${YNAB_ACCESS_TOKEN} placeholder is treated as missing.
  • YNAB_ALLOWED_PLANS (optional) — comma- or newline-separated exact plan names or ids this plugin may access. Unset, empty, or an unexpanded ${YNAB_ALLOWED_PLANS} placeholder means no restriction.

Example:

export YNAB_ALLOWED_PLANS="Household,Vacation Fund"

Quote the value if a plan name contains spaces or an apostrophe (for example, "Sam's Budget,Vacation Fund").

When the allowlist is set:

  • list_budgets returns only those plans.
  • Every other tool resolves budget_id at one boundary. last-used and default are resolved to a real id from GET /plans (cached per process) and refused if that plan is not allowed — the server will not silently use a disallowed last-used plan, and it will not fetch that plan's accounts, categories, transactions, or months.
  • An omitted budget_id uses the first allowed plan (allowlist order), not last-used.
  • Refusal errors name the allowed plans only.

The token and allowlist are never stored in this package. mcp.json only contains ${YNAB_ACCESS_TOKEN} and ${YNAB_ALLOWED_PLANS} placeholders.

Amounts (milliunits)

YNAB stores amounts in milliunits (1000 milliunits = 1.00 in the budget currency). Tools return decimal amounts (amount, balance, budgeted, and so on) and also keep the raw *_milliunits field. Outflows are negative (a $12.50 purchase is -12.5). When calling a write tool, pass amount as a decimal, not milliunits.

Safety: write tools

create_transaction and update_transaction change live budget data. Their descriptions are marked MUTATING. Confirm the account, date, decimal amount (with sign), payee, and category with the user before calling either tool. Do not approve, recategorize, or create transactions as a side effect of a read-only question.

Each access token may make 200 requests per hour.

License

MIT. See LICENSE.