Skip to main content
Glama
walensis-labs

MCP for YNAB

MCP for YNAB

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

28 tools covering budgets, transactions, categories, payees, accounts, scheduled transactions, and server-computed analytics (spending summaries, budget health, recurring charges, income vs. expense, net worth). Writes are off unless you explicitly turn them on, risky writes require confirmation, and every write 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.

Related MCP server: ynab-mcp

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: every write made through this server is 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). 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

Tool

Type

Description

list_plans

read

List all budgets (plans): id, name, currency, last modified.

get_plan_overview

read

Orient in one call: accounts, current-month Ready to Assign, age of money, category totals.

get_month

read

Full detail for one month: Ready to Assign, age of money, every category's status.

list_transactions

read

List or aggregate transactions with filters, pagination, and field selection.

get_transaction

read

Full detail for one transaction, including split subtransactions.

create_transactions

write

Create one or more transactions in bulk, with splits and import dedup.

update_transactions

write

Bulk edit transactions: categorize, approve, set cleared, edit fields.

delete_transaction

write

Delete one transaction. Requires confirmation.

import_transactions

write

Trigger import of linked-account transactions.

list_scheduled_transactions

read

All scheduled (upcoming/recurring) transactions.

create_scheduled_transaction

write

Create a scheduled transaction (upcoming bill or recurring income).

update_scheduled_transaction

write

Update a scheduled transaction.

delete_scheduled_transaction

write

Delete a scheduled transaction. Requires confirmation.

list_categories

read

All visible categories with balances and target status.

create_category

write

Create a category (and its group, if needed).

update_category

write

Rename or hide a category, or set its target.

assign_budget

write

Set a category's assigned amount for a month.

move_money

write

Move assigned money between two categories in a month, atomically.

list_payees

read

All payees (id, name, transfer flag).

rename_payee

write

Rename a payee across all its transactions.

create_payee

write

Create a payee.

create_account

write

Create an account, with a starting balance.

spending_summary

read

Server-computed spending by category or payee, with optional period comparison.

budget_health

read

Current-month health check: overspending, underfunded targets, credit-card float.

detect_recurring_charges

read

Find recurring charges (subscriptions/bills) from about 13 months of history.

income_vs_expense

read

Monthly income/expense/net series.

net_worth_history

read

Monthly net-worth series computed from full transaction history.

undo_last

write

Undo the most recent write made through this server.

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

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

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/walensis-labs/mcp-for-ynab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server