YNAB MCP Server
An MCP server that connects AI assistants to your YNAB budget. Ask your budget questions YNAB can't answer.
mcp-ynab.com — Full setup guide, troubleshooting, and more.
Features
- 30+ tools — budgets, accounts, transactions, categories, payees, months, scheduled transactions, and analytics
- Delta sync — only fetches what changed since the last call (uses YNAB's server knowledge)
- 4-tier caching — TTL cache, delta sync, retry with backoff, SQLite persistence
- Search & analytics — text search across transactions, per-category spending breakdowns, Sankey flow data
- Bulk operations — create or update multiple transactions in a single call
- Dollar amounts — accepts dollars in parameters, converts to YNAB milliunits internally
Quick Start
uv tool run mcp-ynab@latest
Requires a YNAB personal access token set as YNAB_API_KEY.
@latest keeps you on the newest release: uv checks for an update each time the server starts. Without it, uv keeps using the version it installed first and never updates.
Configuration
Claude Desktop / ChatGPT
Add to your config file:
{
"mcpServers": {
"ynab": {
"command": "uv",
"args": ["tool", "run", "mcp-ynab@latest"],
"env": {
"YNAB_API_KEY": "your-api-key-here"
}
}
}
}
Claude Code
claude mcp add-json ynab --scope user '{"type":"stdio","command":"uv","args":["tool","run","mcp-ynab@latest"],"env":{"YNAB_API_KEY":"your-api-key-here"}}'
See mcp-ynab.com for config file locations and troubleshooting.
Windows: "An Application Control policy has blocked this file"
On Windows 11 with Smart App Control turned on, the server can fail to start
and Windows shows a notification that mcp-ynab.exe was blocked. That exe is a
small launcher uv creates when it installs the package. It is unsigned, so Smart
App Control blocks it. Your MCP client retries, so the notification keeps coming
back.
The fix is to start the server through Python instead of the launcher. Python
itself is not blocked. Replace the args in your config with:
"args": ["tool", "run", "--from", "mcp-ynab@latest", "python", "-m", "src.server"]
For Claude Code:
claude mcp add-json ynab --scope user '{"type":"stdio","command":"uv","args":["tool","run","--from","mcp-ynab@latest","python","-m","src.server"],"env":{"YNAB_API_KEY":"your-api-key-here"}}'
Turning Smart App Control off is not recommended: Windows cannot turn it back on without a reinstall.
Available Tools
| Group | Tools |
|---|---|
| User | get_user |
| Plans | list_plans, get_plan, get_plan_settings |
| Accounts | list_accounts, get_account, create_account |
| Categories | list_categories, get_category, create_category, update_category, create_category_group, update_category_group, get_category_for_month, update_category_for_month, auto_assign_monthly_targets |
| Payees | list_payees, get_payee, create_payee, update_payee |
| Payee Locations | list_payee_locations, get_payee_location, get_payee_locations_by_payee |
| Months | list_months, get_month |
| Money Movements | list_money_movements, get_money_movements_for_month, list_money_movement_groups, get_money_movement_groups_for_month |
| Transactions | list_transactions, get_transaction, get_transactions_by_account, get_transactions_by_category, get_transactions_by_month, get_transactions_by_payee, search_transactions, create_transaction, create_transactions, update_transaction, update_transactions, delete_transaction, import_transactions |
| Scheduled | list_scheduled_transactions, get_scheduled_transaction, create_scheduled_transaction, update_scheduled_transaction, delete_scheduled_transaction |
| Analytics | get_money_flow, get_spending_by_category |
Field selection
Every tool that returns a model accepts an optional exclude_fields list. By
default each tool returns a sensible subset of fields to keep token usage low.
See FIELDS.md for per-model defaults and override examples.
Development
# Install dependencies
uv sync
# Run tests (on Windows with Smart App Control, use: uv run python -m pytest)
uv run pytest
# Run server standalone
uv run python -m src.server
Requires YNAB_API_KEY in .env.local for running the server.
License
Metadata
Release files for mcp-ynab 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_ynab-1.2.0.tar.gz | 1.5 MB | With provenance | Details for mcp_ynab-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_ynab-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_ynab-1.2.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / mcp_ynab-1.2.0.tar.gz
| Download URL | mcp_ynab-1.2.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b3f00d3a3f8acc5cf8922a6682d280a7d28e51220c9e7ac91f7b0d9f0333aab
|
|
BLAKE2b-256 checksum How to use checksums |
c6bb3a520be69f3f040fff42c2e1d90cdd4c3032d9f04c1a4ecd3ec54aadc897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / mcp_ynab-1.2.0-py3-none-any.whl
| Download URL | mcp_ynab-1.2.0-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f5551000290d0ebdf76056600aaa94466c0a1df278c6d5ecb59d3d089a3b582
|
|
BLAKE2b-256 checksum How to use checksums |
70b286f00197a722e7047d12c030f7aeb1a1d7eab984d7f874ed1ab8cf209f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for mcp-ynab 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_ynab-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.