# avenir-mcp: an unofficial MCP server for YNAB > πŸ‡¬πŸ‡§ **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. [![Works with YNAB](https://api.ynab.com/papi/works_with_ynab.svg)](https://api.ynab.com/#works-with-ynab-third-party) [![PyPI](https://img.shields.io/pypi/v/avenir-mcp)](https://pypi.org/project/avenir-mcp/) [![avenir-mcp on Glama](https://glama.ai/mcp/servers/mathbeal/avenir-mcp/badges/score.svg)](https://glama.ai/mcp/servers/mathbeal/avenir-mcp) [![Mentioned in Awesome MCP Servers](https://awesome.re/mentioned-badge.svg)](https://github.com/punkpeye/awesome-mcp-servers) [![licence](https://img.shields.io/badge/licence-MIT-blue)](https://github.com/mathbeal/avenir-mcp/blob/main/LICENSE) [![quality](https://github.com/mathbeal/avenir-mcp/actions/workflows/quality.yml/badge.svg)](https://github.com/mathbeal/avenir-mcp/actions/workflows/quality.yml) [![MCP Inspector](https://github.com/mathbeal/avenir-mcp/actions/workflows/inspector.yml/badge.svg)](https://github.com/mathbeal/avenir-mcp/actions/workflows/inspector.yml) [![mutation](https://github.com/mathbeal/avenir-mcp/actions/workflows/mutation.yml/badge.svg)](https://github.com/mathbeal/avenir-mcp/actions/workflows/mutation.yml) [![docs](https://github.com/mathbeal/avenir-mcp/actions/workflows/docs.yml/badge.svg)](https://avenir-mcp.pages.dev/avenir-mcp/) [![YNAB API terms: self-checked](https://github.com/mathbeal/avenir-mcp/actions/workflows/ynab-terms.yml/badge.svg)](https://github.com/mathbeal/avenir-mcp/actions/workflows/ynab-terms.yml) [![coverage](https://img.shields.io/badge/coverage-100%25%20lines%20and%20branches-brightgreen)](https://avenir-mcp.pages.dev/avenir-mcp/project/development/#the-checks) [![types](https://img.shields.io/badge/types-mypy%20strict-blue)](https://avenir-mcp.pages.dev/avenir-mcp/project/development/#the-checks) [![docstrings](https://img.shields.io/badge/docstrings-Google%20style%2C%20ruff-blue)](https://avenir-mcp.pages.dev/avenir-mcp/project/development/#the-checks) [![code style](https://img.shields.io/badge/code%20style-ruff-261230)](https://avenir-mcp.pages.dev/avenir-mcp/project/development/#the-checks) [![python](https://img.shields.io/pypi/pyversions/avenir-mcp)](https://pypi.org/project/avenir-mcp/) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/15139/badge)](https://www.bestpractices.dev/projects/15139) [![last commit](https://img.shields.io/github/last-commit/mathbeal/avenir-mcp)](https://github.com/mathbeal/avenir-mcp/commits/main) Ask Claude β€” or any [MCP](https://modelcontextprotocol.io) client β€” about your plan in plain words. Read-only by default; every change is previewed, confirmed by you, and can be undone. ## Install You need a YNAB personal access token: YNAB β†’ Account Settings β†’ Developer Settings β†’ New Token. [![Download for Claude Desktop](https://img.shields.io/badge/Claude_Desktop-Download_the_extension-D97757?style=flat-square&logo=claude&logoColor=white)](https://github.com/mathbeal/avenir-mcp/releases/latest/download/avenir-mcp.mcpb) **Claude Desktop**, no terminal: drop the file the button downloads onto **Settings β†’ Extensions**, then paste your token on that screen. **Claude Code**, one command with your token in it: ```bash claude mcp add avenir-mcp --env YNAB_API_KEY=your-token -- uvx avenir-mcp ``` Both install it read-only. Cursor, LM Studio, VS Code, Windows, changes to your plan (`AVENIR_MCP_WRITE=1`) and every option: [Install](https://avenir-mcp.pages.dev/avenir-mcp/getting-started/install/) Β· [Configuration](https://avenir-mcp.pages.dev/avenir-mcp/reference/configuration/). One conversation, in thirty seconds. Asked how the month is going and where the room is, the agent calls four read-only tools at the same time: Month summary, Every category, Budget vs spent and Three months. It answers that Restaurants is the only category over budget: 166.50 spent of 144.00 (120.00 budgeted + 24.00 carried over from the months before), 138.8 %, available βˆ’22.50; that its spending rose 113.70 β†’ 119.90 β†’ 166.50 over three months; and that 80.00 is left in Tennis and 411.90 in Groceries. It offers to cover the 22.50 from Tennis, which has nothing spent yet. The user answers β€œCover it from Tennis.”, and move_money shows a preview that changes nothing: Tennis 80.00 β†’ 57.50, Restaurants 120.00 β†’ 142.50, available βˆ’22.50 β†’ 0.00, exactly on budget, with a Cancel button, a Confirm button, and the reminder that nothing changes until you confirm and that any change can be undone. 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. Both come from an invented demo plan, replayed by `python -m docsgen`: every figure is what avenir-mcp answers today. ## What you can ask - **Understand a month** β€” "Which category is overspent this month?" β†’ `get_monthly_summary` - **Prepare a spend** β€” "Will I go below zero before December?" β†’ `forecast_balance` - **Pay off a debt** β€” "When will my debts be paid off if I put 500 a month on them?" β†’ `get_debt_payoff_plan` - **Tidy the transactions** β€” "Categorise what is pending." β†’ `suggest_categories`, applied after your yes - **Find one transaction** β€” "Which transaction is my 86.40 receipt from the 12th?" β†’ `find_transactions` - **Reconcile an account** β€” "My bank shows 3,440.80. Does YNAB agree?" β†’ `reconcile_account` - **Change something** β€” "Move 30 from Tennis to Restaurants." β†’ `move_money`, previewed, confirmed, and undone by `undo_operation` Every tool, with a real answer: [Reference](https://avenir-mcp.pages.dev/avenir-mcp/reference/tools/) Β· [Use cases](https://avenir-mcp.pages.dev/avenir-mcp/guides/classify/). **Missing a question? Have an idea?** Tell us the question you would like to ask your budget in [Discussions β†’ Ideas](https://github.com/mathbeal/avenir-mcp/discussions/categories/ideas); help with using avenir-mcp is in [Discussions β†’ Q&A](https://github.com/mathbeal/avenir-mcp/discussions/categories/q-a). Never post a real amount, a real account or your token. ## Why avenir-mcp - **Tools for tasks, not endpoints.** One tool classifies a month, one reconciles an account. - **Read-only by default.** The tools that change a plan are registered only if you enable them. - **Preview, confirm, undo.** A write waits for your yes; `undo_operation` reverts it. - **Answers an agent can read.** Currency units, typed answers, bank text treated as untrusted. - **Verified.** 100 % line and branch coverage, and a real agent on an invented plan: 25/25. 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. 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. **πŸ“– Documentation: ** Β· [English](https://avenir-mcp.pages.dev/avenir-mcp/) Β· [FranΓ§ais](https://avenir-mcp.pages.dev/avenir-mcp/fr/) Β· [EspaΓ±ol](https://avenir-mcp.pages.dev/avenir-mcp/es/) Β· [Deutsch](https://avenir-mcp.pages.dev/avenir-mcp/de/) Β· [Nederlands](https://avenir-mcp.pages.dev/avenir-mcp/nl/) ## Claude Code plugin `plugin/` is avenir-mcp as a Claude Code plugin: Claude Code asks for your token, keeps it out of sight, and starts the server from the plugin's own locked environment. From a clone: `claude --plugin-dir plugin`. | The plugin | What | |---|---| | runs | `uv run --locked --project` *the plugin's folder*, which starts the release `plugin/pyproject.toml` pins, and nothing else. No script of its own, no build step, no hook, no shell | | contacts | `pypi.org` and `files.pythonhosted.org`, to install that release and the versions `plugin/uv.lock` pins, the first time; then `api.ynab.com`, with your token, as avenir-mcp always does | | writes | the environment `uv` resolves inside the plugin's folder, and `uv`'s own cache. Nothing elsewhere | | changes in your plan | nothing. It starts avenir-mcp read-only: `AVENIR_MCP_WRITE` is not set, so the tools that change a plan are never registered | ## Development ```bash 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](AGENTS.md) and [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. Security reports: [SECURITY.md](SECURITY.md). Also: [ARCHITECTURE.md](ARCHITECTURE.md), [ROADMAP.md](ROADMAP.md), [GOVERNANCE.md](GOVERNANCE.md) and the [code of conduct](CODE_OF_CONDUCT.md). Built and tested against YNAB's API v1.87.0; a weekly [`YNAB API drift`](https://github.com/mathbeal/avenir-mcp/actions/workflows/api-drift.yml) check fails when YNAB publishes a new version. 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 that badge red when they change. ## Privacy Policy avenir-mcp is a program you run yourself, not a service: its publisher runs no server and receives none of your data. Your token is read from the environment, kept in memory as a secret value and sent only to YNAB; your plan's data is fetched when a tool needs it and returned to your agent, so the model provider behind your MCP client sees it too. What is handled, how long it is kept and how to erase it: . ## Licence MIT. ## 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. Listed by YNAB in its [Works with YNAB](https://api.ynab.com/#works-with-ynab-third-party) directory, among third-party apps. Not endorsed by YNAB. 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](https://avenir-mcp.pages.dev/avenir-mcp/project/legal/).