Skip to main content

avenir-mcp — an unofficial MCP server for YNAB

Works with YNAB YNAB API terms: self-checked

Self-checked on every change against YNAB's API terms of 2025-05-28 (naming, attribution, YNAB's own image, a personal token for its owner only, the hourly limit); a weekly job turns the badge red when YNAB changes its terms. Not reviewed or endorsed by YNAB.

quality MCP Inspector docs

PyPI python coverage types docstrings code style licence OpenSSF Best Practices last commit

🇬🇧 avenir-mcp (avenir is French for the future) lets an AI agent read your YNAB plan and help you plan what comes next.

🇫🇷 avenir-mcp permet à un agent IA de lire votre plan YNAB et de vous aider à préparer la suite.

Ask Claude — or any MCP client — about your plan in plain words: where the money went, what still needs a category, whether an account matches the bank, when money would run out. Every change is previewed, confirmed by you, and can be undone.

📖 Documentation: https://avenir-mcp.pages.dev/avenir-mcp/

English · Français · Español · Deutsch · Nederlands

Asked how the budget is doing this month, the agent reads the month with two read-only tools and answers: one category over budget, Restaurants by 22.50, everything else on track. get_net_worth_trend on the demo plan: over the last 18 months the debts shrink from 27,198 to 19,041 despite the car loan's interest, the assets grow, and the net worth rises from −24,038 to +1,230, with a dip for a car repair and another at Christmas. forecast_balance on the demo plan: the month-end balance rises from this month to three months ahead, with each month's lowest day and a yearly insurance payment scheduled next month.

All three come from the invented demo plan: a real reply of Claude Sonnet, and the net worth and the forecast the documentation shows.

Unofficial project. We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at https://www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB. They are named here only to say which service avenir-mcp works with.

avenir-mcp is for personal use on your own machine, with your own YNAB token. Running it as a public or shared server is not supported. It is provided as is, without warranty, and is not financial advice: you remain responsible for the changes you confirm. See the legal notice.

Why avenir-mcp

  • Tools for tasks, not endpoints. Classify a month of transactions, reconcile an account, forecast your balance: one tool each, not a wrapper of YNAB's API.
  • Read-only by default. Tools that change your plan exist only when you enable them.
  • Preview, confirm, undo. Every write shows what will change and waits for your yes; undo_operation reverts it.
  • Answers an agent can read. Currency units, short typed answers, pagination, errors that say what to fix, bank text treated as untrusted.
  • Verified. 100 % line and branch coverage, and an evaluation where a real agent works on an invented plan: 20/20 tasks.

Install

You need uv and a YNAB personal access token (YNAB → Account Settings → Developer Settings → New Token).

Install in VS Code Install in Cursor

One click installs avenir-mcp read-only: VS Code asks for your token in a password box and keeps it in its secret storage; in Cursor, replace your-token in the server's settings. Add AVENIR_MCP_WRITE=1 to allow changes.

Or by hand:

# Claude Code
claude mcp add avenir-mcp --env YNAB_API_KEY=your-token --env AVENIR_MCP_WRITE=1 -- uvx avenir-mcp
// Claude Desktop, Cursor: the mcpServers block of the client's configuration
{
  "mcpServers": {
    "avenir-mcp": {
      "command": "uvx",
      "args": ["avenir-mcp"],
      "env": { "YNAB_API_KEY": "your-token", "AVENIR_MCP_WRITE": "1" }
    }
  }
}

Drop AVENIR_MCP_WRITE to stay read-only. Other clients and every option: Install · Configuration.

What you can ask

You ask avenir-mcp
"Which category is overspent this month?" get_monthly_summary — totals and overspent categories
"Categorise what is pending." suggest_categories, then apply_categories after your yes
"Split this receipt: 81.15 groceries, 5.25 household." split_transaction — one transaction across categories, after your yes
"Which transaction is my 86.40 receipt from the 12th?" find_transactions — by dates, exact amount and account, categorised or not
"My bank shows 3,440.80. Does YNAB agree?" reconcile_account — explains the gap, changes nothing until it matches
"Will I go below zero before December?" forecast_balance — month by month, with its assumptions
"Am I paying off my debts?" get_net_worth_trend — assets, debts and net worth at each month end
"Move 30 from Tennis to Restaurants." set_category_budget, previewed and undoable
"Undo that." undo_operation

Walk-throughs with real answers: Use cases. Every tool, resource and prompt: Reference.

Development

git clone https://github.com/mathbeal/avenir-mcp && cd avenir-mcp
uv sync
just check        # lint, types, tests at 100 % coverage, vocabulary, lockfile
just docs-serve   # the documentation, live
just evaluate     # a real agent on the demo plan (uses your Claude plan)

Read AGENTS.md and CONTRIBUTING.md before opening a pull request. Security reports: SECURITY.md. Also: ARCHITECTURE.md, ROADMAP.md, GOVERNANCE.md and the code of conduct.

Licence

MIT.

Metadata

Release files for avenir-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avenir-mcp 0.4.0
File Size Uploaded
avenir_mcp-0.4.0.tar.gz 166.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avenir-mcp 0.4.0
File Interpreter ABI Platform
avenir_mcp-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 267.7 kB

Release files / avenir_mcp-0.4.0.tar.gz

Download URL avenir_mcp-0.4.0.tar.gz
Size 166.0 kB
Tags Source
SHA-256 checksum
How to use checksums
67ae9342ff9272d84b13cf5d2d980a2d873fce9f034eb1b7cc4c6863fe6779dd
BLAKE2b-256 checksum
How to use checksums
e91a0d3777202a60d6b60739f5e3e460416a6e2ba065652e5b932595b5a352cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log

Release files / avenir_mcp-0.4.0-py3-none-any.whl

Download URL avenir_mcp-0.4.0-py3-none-any.whl
Size 101.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4eb977a98d9329bf68a478a8e90df46a244a071ebe6d277de352e5b94e627522
BLAKE2b-256 checksum
How to use checksums
1d11c97cc68563ae048d71b1193a2ad99d731a215e607662786cd587b8a0ab17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.0

2 release files

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page