Ynab Budget
FreeMaintainedA local MCP server for AI-assisted YNAB budget understanding with guarded assignment previews.
About
A local MCP server for AI-assisted YNAB budget understanding with guarded assignment previews.
README
A local Model Context Protocol server that gives AI assistants a focused, guarded way to understand YNAB budget data.
For AI-assistant users
Use this when you want an MCP-capable assistant to help you understand your YNAB budget without giving it unrestricted control. It can inspect plans, budget snapshots, accounts, categories, transactions, scheduled transactions, and payees. It is not financial advice and does not replace your own review of your budget.
Examples of useful requests include:
- “Which categories are overspent this month?”
- “Show my uncategorized transactions from the last two weeks.”
- “What scheduled transactions are due in the next 30 days?”
- “Preview assigning $100 to Groceries, but do not apply it.”
You stay in control
All budget reads and assignment previews are read-only. The only write capability is an intentionally narrow, experimental category-assignment workflow:
- Your assistant creates a preview containing the exact category changes and planning-availability checks.
- You review and explicitly approve that exact preview.
- Applying it additionally requires
YNAB_ENABLE_WRITES=true, a fresh single-use token, and an unchanged YNAB state.
The server runs locally, sends requests directly to YNAB, and has no telemetry or persistent storage.
Connect it to your assistant
You need Node.js 22.9+ and a YNAB Personal Access Token from YNAB developer settings.
Ask your agent to install it
If your AI assistant supports local stdio MCP servers, copy and paste this prompt into it. The linked README is the source of truth; the agent should use the instructions for its own client.
Please install YNAB Budget MCP for me, following the canonical instructions at https://github.com/Orlando-Villanueva/ynab-budget-mcp#connect-it-to-your-assistant.
Use the published npm package, not a repository clone or local source checkout. Follow the generic terminal setup unless this is Codex, in which case use the Codex CLI or Codex app instructions. When the MCP configuration requires my YNAB token, stop and tell me to enter it myself in this client's MCP server Environment variables or Secrets field, using the exact key `YNAB_ACCESS_TOKEN`. Do not ask me to paste the token into chat, a command, a project file, or any shared configuration. Leave `YNAB_ENABLE_WRITES` unset. When setup is complete, tell me how to verify the MCP connected successfully.
Generic terminal setup
Install the published package:
npm install -g ynab-budget-mcp@beta
Then add a local stdio MCP server in your assistant's settings with:
| Field | Value |
|---|---|
| Command | ynab-mcp |
| Environment variable or secret | YNAB_ACCESS_TOKEN = your YNAB Personal Access Token |
| Working directory | Leave blank |
Enter the token in the assistant's MCP Environment variables or Secrets field—not in a repository .env file, an issue, a screenshot, or a chat message. Every MCP client labels this screen differently, but the variable name is always YNAB_ACCESS_TOKEN.
If your MCP client uses JSON configuration, this is the generic server definition:
{
"command": "ynab-mcp",
"env": {
"YNAB_ACCESS_TOKEN": "your-token"
}
}
Codex CLI
In Terminal, run the following. It uses a hidden token prompt, then saves a local Codex MCP configuration without requiring a repository checkout:
read -s "YNAB_ACCESS_TOKEN?Paste your YNAB access token: "
echo
codex mcp add ynab \
--env "YNAB_ACCESS_TOKEN=$YNAB_ACCESS_TOKEN" \
-- npx -y ynab-budget-mcp@beta
unset YNAB_ACCESS_TOKEN
Restart Codex, then run codex mcp get ynab to confirm the server is configured.
Codex app
In Codex, open Plugins, choose Add → MCP server, and create a stdio server with these values:
| Field | Value |
|---|---|
| Command | npx |
| Arguments | -y, ynab-budget-mcp@beta |
| Environment variable | YNAB_ACCESS_TOKEN = your YNAB Personal Access Token |
| Working directory | Leave blank |
Save the server and restart Codex. This downloads the published package when needed; no repository clone, local .env, or global installation is required.
Other MCP clients
If you prefer not to install globally, configure your client to run npx -y ynab-budget-mcp@beta instead. The following JSON is one generic example; it is not a Codex configuration file:
{
"command": "npx",
"args": ["-y", "ynab-budget-mcp@beta"],
"env": {
"YNAB_ACCESS_TOKEN": "your-token"
}
}
Keep the token private. It grants access to the YNAB data available to it; never add it to a repository, issue, screenshot, or shared configuration file.
For developers and maintainers
This section is for working on the MCP itself rather than simply using it with an assistant.
Run from source
Clone the repository, install its development dependencies, and create a local token file:
git clone https://github.com/Orlando-Villanueva/ynab-budget-mcp.git
cd ynab-budget-mcp
npm ci
cp .env.example .env
Set YNAB_ACCESS_TOKEN in your uncommitted .env. To permit a real, explicitly approved assignment apply during a local session, also set YNAB_ENABLE_WRITES=true; leave it unset for normal development and testing.
Start the local stdio server with:
npm run start
For an MCP client to use your source checkout directly, configure it with a portable path and working directory:
{
"command": "node",
"args": [
"--env-file-if-exists=.env",
"--experimental-transform-types",
"src/index.ts"
],
"cwd": "/absolute/path/to/ynab-budget-mcp"
}
This local-development configuration is separate from the published-package setup above. You can keep using an installed release while developing changes in another checkout.
Verify changes
npm test
npm run check
npm run check builds the package and runs the test suite. The project intentionally has no runtime dependencies; TypeScript build tools are development-only.
Security, privacy, and support
See SECURITY.md for security and privacy expectations, and SUPPORT.md for support expectations.
This project is not affiliated with, endorsed by, or sponsored by YNAB. YNAB is a trademark of its respective owner.
Install Ynab Budget in Claude Desktop, Claude Code & Cursor
unyly install ynab-budgetInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add ynab-budget -- npx -y ynab-budget-mcpStep-by-step: how to install Ynab Budget
FAQ
Is Ynab Budget MCP free?
Yes, Ynab Budget MCP is free — one-click install via Unyly at no cost.
Does Ynab Budget need an API key?
No, Ynab Budget runs without API keys or environment variables.
Is Ynab Budget hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Ynab Budget in Claude Desktop, Claude Code or Cursor?
Open Ynab Budget on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Stripe
Payments, customers, subscriptions
by Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
by malamutemayhemwhiteknightonhorse/APIbase
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
by whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
embeddedlayers/mcp-analytics
Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources
by embeddedlayerscarrierone/verilexdata-mcp
20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit
by carrieronetipdotmd/tip-md-x402-mcp-server
MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.
by tipdotmdlaundromatic/shopgraph
Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev
by laundromaticmrslbt/xendit-mcp
Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal
by mrslbt@arbitova/mcp-server
Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create
by jiayuanliang0716-maxCompare Ynab Budget with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All finance MCPs
