Back to Browse

For Ynab MCP Server

Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

YNAB budget access for AI assistants: safe gated writes, month-close sessions, float attribution.

About

YNAB budget access for AI assistants: safe gated writes, month-close sessions, float attribution.

Security Report

5.2
Moderate5.2Moderate Risk

This is a well-structured MCP server for YNAB (You Need A Budget) with proper authentication via API keys, read-only default access, and gated write operations. The codebase shows good security practices with TypeScript, schema validation via Zod, and no evidence of malicious patterns. Permissions appropriately match the server's purpose of providing financial data access and budgeting tools. Supply chain analysis found 4 known vulnerabilities in dependencies (2 critical, 1 high severity). Package verification found 1 issue (1 critical, 0 high severity).

4 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

Unverified package source

We couldn't verify that the installable package matches the reviewed source code. Proceed with caution.

What You'll Need

Set these up before or after installing:

YNAB Personal Access Token (app.ynab.com → Developer Settings)Required

Environment variable: YNAB_ACCESS_TOKEN

Set to 1 to enable write tools (off = read-only)Optional

Environment variable: YNAB_ALLOW_WRITES

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-walensis-labs-mcp-for-ynab": {
      "env": {
        "YNAB_ACCESS_TOKEN": "your-ynab-access-token-here",
        "YNAB_ALLOW_WRITES": "your-ynab-allow-writes-here"
      },
      "args": [
        "-y",
        "mcp-for-ynab-workspace"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

MCP for YNAB

A fast, safe MCP server for YNAB — full budget access for Claude and other AI assistants, read-only by default.

35 tools covering budgets, transactions, categories, payees, accounts, scheduled transactions, and server-computed analytics (spending summaries, budget health, recurring charges, income vs. expense, net worth, month-close coverage, category and credit-card float history). Writes are off unless you explicitly turn them on, risky writes require confirmation, and writes that edit or delete existing data can be undone.

Quickstart

Claude Code

claude mcp add ynab -e YNAB_ACCESS_TOKEN=xxx -- npx -y @walensis/mcp-for-ynab

Replace xxx with your personal access token (see Getting a token below).

Claude Desktop

Add this to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "ynab": {
      "command": "npx",
      "args": ["-y", "@walensis/mcp-for-ynab"],
      "env": {
        "YNAB_ACCESS_TOKEN": "xxx"
      }
    }
  }
}

Alternatively, install the .mcpb bundle from a release for a one-click, no-JSON install — Claude Desktop will prompt you for your token and whether to enable writes.

Other MCP clients

Any client that speaks MCP over stdio can run the server the same way:

npx -y @walensis/mcp-for-ynab

with YNAB_ACCESS_TOKEN set in its environment.

Getting a token

  1. Go to app.ynab.com and sign in.
  2. Open Account SettingsDeveloper Settings.
  3. Under Personal Access Tokens, click New Token, confirm your password, and copy the token.
  4. Use that value as YNAB_ACCESS_TOKEN. Treat it like a password — anyone with it has full access to your budget for as long as it's valid.

If you'd rather not put the token directly in your MCP client config, set YNAB_ACCESS_TOKEN_FILE to the path of a file containing just the token instead.

Read-only by default, writes are opt-in

By default this server only exposes read tools — nothing it does can change your budget. To enable the write tools (creating/editing/deleting transactions, assigning money, etc.), set:

YNAB_ALLOW_WRITES=1

in the server's environment and restart it. With writes enabled:

  • Confirmation gates: destructive or bulk operations (deleting a transaction, deleting a scheduled transaction, bulk-updating more than 5 transactions) require an explicit confirm: true — and bulk updates also require expected_count to match the number of rows — so the assistant has to show you what it's about to do before it does it.
  • Undo: writes that change existing data — transaction edits/deletes, category edits, budget assignments/moves, scheduled transaction edits/deletes, payee renames — are journaled locally, and the undo_last tool reverses the most recent one (up to 50 writes of history, stored in ~/.mcp-for-ynab/undo.json). Writes that create something (create_category, create_payee, create_account) and import_transactions are not reversible — YNAB's API has no delete for categories, payees, or accounts, and no way to undo an import. Those are still journaled (so undo history stays in order), but undo_last will tell you a given entry can't be undone and move on to the write before it. See PRIVACY.md for details on that file.

Rate limits

The underlying API allows 200 requests/hour per token, shared across every app using that same token (this server, the mobile and web apps for YNAB, other integrations, etc.). This server tracks its own usage client-side and stops itself at 190 requests/hour to leave headroom for the rest of your apps, and prefers small, server-computed responses (aggregates, summaries) over dumping raw rows where it can.

Tools

ToolTypeDescription
list_plansreadList all budgets (plans): id, name, currency, last modified.
get_plan_overviewreadOrient in one call: accounts, current-month Ready to Assign, age of money, category totals.
get_monthreadFull detail for one month: Ready to Assign, age of money, every category's status.
list_transactionsreadList or aggregate transactions with filters, pagination, and field selection.
get_transactionreadFull detail for one transaction, including split subtransactions.
create_transactionswriteCreate one or more transactions in bulk, with splits and import dedup.
update_transactionswriteBulk edit transactions: categorize, approve, set cleared, edit fields.
delete_transactionwriteDelete one transaction. Requires confirmation.
import_transactionswriteTrigger import of linked-account transactions.
list_scheduled_transactionsreadAll scheduled (upcoming/recurring) transactions.
create_scheduled_transactionwriteCreate a scheduled transaction (upcoming bill or recurring income).
update_scheduled_transactionwriteUpdate a scheduled transaction.
delete_scheduled_transactionwriteDelete a scheduled transaction. Requires confirmation.
list_categoriesreadAll visible categories with balances and target status.
create_categorywriteCreate a category (and its group, if needed).
update_categorywriteRename or hide a category, or set its target.
assign_budgetwriteSet a category's assigned amount for a month.
move_moneywriteMove assigned money between two categories in a month, atomically.
list_payeesreadAll payees (id, name, transfer flag).
rename_payeewriteRename a payee across all its transactions.
create_payeewriteCreate a payee.
create_accountwriteCreate an account, with a starting balance.
spending_summaryreadServer-computed spending by category or payee, with optional period comparison.
budget_healthreadCurrent-month health check: overspending, underfunded targets, credit-card float.
detect_recurring_chargesreadFind recurring charges (subscriptions/bills) from about 13 months of history.
income_vs_expensereadMonthly income/expense/net series.
net_worth_historyreadMonthly net-worth series computed from full transaction history.
month_closereadMonth-close report for a cutoff date: credit-card coverage, blockers, overspent categories, ranked donors.
propose_coveragereadOrdered move proposals to bring every overspent category to zero for the cutoff month.
get_category_historyreadOne category's monthly series (assigned/activity/available) across a month range.
credit_card_float_historyreadPer-month credit-card float analysis over a range: owed vs. payment-category available, gap, changed flag.
backfill_ledgerlocal writeBackfill the local balance-forward ledger from history: one record per card per fully-elapsed month, with causes and the discovery summary ("carrying $X since "). Local file only (~/.mcp-for-ynab/ledger.json) — never touches YNAB.
record_month_closelocal writePersist a month-close balance-forward record (per-card gaps, blockers, causes, applied moves). Local file only (~/.mcp-for-ynab/ledger.json) — never touches YNAB.
get_month_close_ledgerreadRead past balance-forward records (newest first), optionally filtered by cutoff.
undo_lastwriteUndo the most recent write made through this server.

The month-close session

A guided monthly catch-up flow (Balance → Plan) built on top of the tools above: it works through blockers until the coverage gap is trusted, attributes credit-card float changes to their cause, proposes donor-first coverage moves, and — once you approve them — writes a balance-forward record via record_month_close so next month's session has a baseline to compare against (get_month_close_ledger). On the very first run, the ledger is empty — the session runs backfill_ledger for each card first and leads with what it finds (e.g. "carrying $865.75 since 2024-08") before attributing anything further.

  • Claude Code: use the /month-close skill.
  • Claude Desktop and other MCP clients: the server exposes the same flow as the month-close-session MCP prompt.
  • Full walkthrough: docs/playbooks/month-close.md.

Always-on monitoring (self-host)

For hourly credit-card float monitoring, a weekly digest, and a monthly close report — delivered by email, with no local process to keep running — apps/worker ships a single-tenant Cloudflare Worker you deploy on your own Cloudflare account. It exposes the same 35 tools over a token-authenticated remote MCP endpoint (a bearer-header route for header-capable clients, plus a token-in-path route so claude.ai's URL-only custom connectors can reach your budget directly), built on the same library entrypoint this package exports for embedding:

import { tools, buildServer } from '@walensis/mcp-for-ynab'

Full deploy runbook: apps/worker/README.md.

Development

This is a pnpm monorepo: packages/core (@walensis/mcp-for-ynab-core, the API client for YNAB and domain logic) and apps/mcp (@walensis/mcp-for-ynab, the MCP server that wraps it).

pnpm install
pnpm build
pnpm test
pnpm typecheck

To smoke-test against a real budget (read-only — it never writes):

YNAB_ACCESS_TOKEN=xxx pnpm smoke

To validate credit_card_float_history against known-good fixture values (read-only):

YNAB_ACCESS_TOKEN=xxx pnpm validate:fixtures

Disclaimer

We are not affiliated, associated, or in any way officially connected with YNAB, or any of its subsidiaries or its affiliates.

License

MIT © walensis-labs

Reviews

No reviews yet

Be the first to review this server!

For Ynab MCP Server - YNAB budget access for AI assistants: safe gated writes, | MCP Marketplace