YNAB MCP Server
Click on "Install 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 ServerShow my budget summary"
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 Server
An MCP server for YNAB with batch operations, deterministic analysis tools, and robust undo support.
AI Disclosure: This project was built with Claude Code and Cursor. It works and is tested, but the code is largely clanker-made.
Highlights
26 tools covering budgets, accounts, transactions, categories, targets, scheduled transactions, and spending analysis
Deterministic analysis — spending aggregation, trends, income vs expense, recurring-charge and anomaly detection, and a one-call budget health snapshot. Judgment calls (forecasting, reallocation, prioritization) are deliberately left to the calling agent, which has the exact data and more context
Batch operations — create, update, and delete multiple transactions in a single call, with per-item API costs documented where the YNAB API has no bulk endpoint
Undo support — every write operation is recorded and reversible
Smart categorization — transaction category suggestions from payee history and scheduled-transaction matching, with confidence gating so only high-confidence suggestions land in the ready-to-apply actions
Built-in knowledge base — YNAB methodology docs (credit cards, targets, overspending, reconciliation) served as MCP resources
5 workflow prompts — monthly reviews, spending reports, unapproved triage, budget optimization, and subscription audits
Read-only mode — write tools are not even registered, so clients only see tools they can use
Efficient caching — delta sync with YNAB's server knowledge system, configurable TTLs, and client-side rate-limit tracking
Related MCP server: YNAB Assistant
Setup
Prerequisites
Node.js >= 20
A YNAB personal access token
Usage
Run directly with npx:
YNAB_API_TOKEN=your-token npx @maro-org/ynab-mcpOr install globally:
npm install -g @maro-org/ynab-mcp
YNAB_API_TOKEN=your-token ynab-mcpMCP Client Configuration
Add the server to your MCP client config. For example, in Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"ynab": {
"command": "npx",
"args": ["-y", "@maro-org/ynab-mcp"],
"env": {
"YNAB_API_TOKEN": "your-token"
}
}
}
}For Cursor, add the same structure to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally.
Configuration
All configuration is done through environment variables.
Variable | Description | Default |
| YNAB personal access token | required |
| Override the YNAB API base URL | YNAB default |
| Directory for undo history storage |
|
| Hide and disable all write operations ( |
|
| Cache TTL in seconds for live data |
|
| Cache TTL in seconds for completed past months |
|
| Undo entries kept per budget (oldest are dropped beyond this) |
|
Tools
Budgets
Tool | Description |
| List all budgets with metadata |
| Force-refresh cached data from YNAB |
Accounts
Tool | Description |
| List accounts with balances, filterable by type and on/off budget |
Transactions
Tool | Description |
| Search with filters (dates, amounts, accounts, categories, payees, flags, cleared status) — supports multiple queries in one call |
| Batch create transactions with optional splits (one bulk API call) |
| Batch update existing transactions (one bulk API call; split changes are replaced via delete+recreate) |
| Batch delete transactions (one API call per transaction) |
Categories
Tool | Description |
| Category group hierarchy with IDs and names |
| Target details: type, amounts, underfunded, percent complete, cadence, and deadlines |
| Month-level budgeted/activity/balance per category |
| Batch set budgeted amounts (up to two API calls per category/month pair, max 50) |
| Set or clear a category's target amount and date (the API does not expose target type) |
Spending Analysis & Diagnostics
Tool | Description |
| Spending aggregates by category/payee with top-N ranking; optional |
| Multi-month time series by category, payee, or group; the partial current month is marked and excluded from trends |
| Income vs expense totals with savings rate; partial current month excluded from averages |
| Single-call snapshot: net worth, month totals, overspending, target gaps, credit card payment gaps, RTA, issues |
| Subscription and recurring charge detection from transaction history |
| Flag unusual transactions with leave-one-out statistical baselines |
| Audit feed of budget moves between categories or Ready to Assign, including moves made in the YNAB apps |
All analysis tools are deterministic — no LLM sampling involved. They report facts and clearly-labeled statistical estimates; forecasting and reallocation decisions are left to the calling agent (the workflow prompts walk it through that reasoning using get_targets, get_monthly_budget, and get_scheduled_transactions).
Scheduled Transactions
Tool | Description |
| List scheduled transactions with optional filters |
| Batch create with any of the 13 YNAB frequencies (one API call per item) |
| Batch update scheduled transactions (one API call per item) |
| Batch delete scheduled transactions (one API call per item) |
Smart Tools
Tool | Description |
| Suggest categories for uncategorized transactions based on payee history and patterns |
Suggestions carry confidence levels; only those at or above action_confidence (default high) are included in the ready-to-apply update_actions, and approval is opt-in.
Undo
Tool | Description |
| List recorded undo entries |
| Undo one or more previous write operations by ID |
Resources
Knowledge base resources for YNAB methodology. Workflow prompts reference these automatically.
URI | Topic |
| Core YNAB concepts and terminology |
| Credit card handling |
| Target types and behavior |
| Overspending mechanics |
| Reconciliation workflow |
| API quirks and limitations |
Prompts
Prompt | Description |
| Guided monthly budget review |
| Spending report for a date range |
| Batch review and approve unapproved transactions |
| Analyze budget for optimization opportunities |
| Review recurring charges and manage subscriptions |
Key Concepts
Currency units — All monetary amounts in tool inputs and outputs use standard currency units (e.g., 12.50), not YNAB's native milliunits. Most tools also echo a top-level currency ISO code; get_spending_analysis additionally reports raw *_milliunits totals alongside them.
budget_id — Most tools accept an optional budget_id. Omit it or pass "last-used" to target the most recently accessed budget.
Undo — Every write operation records an undo entry. Use list_undo_history and undo_operations to review or revert changes. The most recent 2000 entries per budget are kept (tunable via YNAB_UNDO_HISTORY_LIMIT).
Read-only mode — Set YNAB_READ_ONLY=true to hide and block all write operations. Useful for exploring your budget safely or restricting an MCP client to read-only access.
Rate limiting — The YNAB API allows 200 requests per rolling hour. The server tracks usage locally and reports when capacity frees up if the limit is reached. (The API used to expose an X-Rate-Limit header the tracker reconciled against; the live API no longer sends it, so the local tracker is the sole signal until a 429 confirms exhaustion.) Tools that cost one API call per item say so in their descriptions.
Development
npm install
npm run dev # run with tsx watch
npm run build # compile TypeScript
npm test # run tests (vitest)
npm run typecheck # type-check without emitting
npm run lint # lint with Biome
npm run ci # typecheck + lint + testLicense
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to help manage your You Need A Budget (YNAB) finances through comprehensive budget operations. Supports account management, transaction handling, category budgeting, split transactions, scheduled payments, and spending analytics with robust error handling and automatic retry logic.214MIT
- Flicense-qualityDmaintenanceEnables AI assistants to interact with YNAB budgets through natural language. Supports managing accounts, categories, transactions, and budget months with 21 tools for comprehensive budget operations.
- AlicenseAqualityCmaintenanceEnables interaction with You Need A Budget (YNAB) through their API, allowing users to manage budgets, accounts, categories, transactions, payees, and scheduled transactions through natural language.12141GPL 3.0
- AlicenseAqualityAmaintenanceConnects AI assistants to YNAB budgets, providing over 30 tools for managing budgets, accounts, transactions, categories, and analytics with delta sync and caching.4727AGPL 3.0
Related MCP Connectors
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
Hosted remote MCP server for YNAB on Cloudflare Workers with OAuth
Deterministic bank-statement parsing: messy CSV/OFX to clean categorized rows. In-memory only.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Maronato/ynab-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server