avenir-mcp — an unofficial MCP server for YNAB
🇬🇧 avenir-mcp (avenir is French for the future) lets an AI agent read your YNAB budget and help you plan what comes next.
🇫🇷 avenir-mcp permet à un agent IA de lire votre budget YNAB et de vous aider à préparer la suite.
Ask Claude — or any MCP client — about your budget 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://mathbeal.github.io/avenir-mcp/
Unofficial project. We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. YNAB and You Need A Budget are registered trademarks of YNAB, 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 budget exist only when you enable them.
- Preview, confirm, undo. Every write shows what will change and waits for your
yes;
undo_operationreverts 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: 17/17 tasks.
Install
You need uv and a YNAB personal access token (YNAB → Account Settings → Developer Settings → New Token).
# 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 |
| "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 budget (uses your Claude plan)
Read AGENTS.md and CONTRIBUTING.md before opening a pull request. Security reports: SECURITY.md.
Licence
MIT.
Release files for avenir-mcp 0.1.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 | |
|---|---|---|---|
| avenir_mcp-0.1.0.tar.gz | 119.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avenir_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 192.0 kB
Release files / avenir_mcp-0.1.0.tar.gz
| Download URL | avenir_mcp-0.1.0.tar.gz |
|---|---|
| Size | 119.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12f7ce38804109f4bac4dd257dccd31954fd70c87f025d6951a802ebaf109f87
|
|
BLAKE2b-256 checksum How to use checksums |
b3133b9393669e3118bd4e462adeb4f463743fa1f7ec1727c95c1b34db4484a1
|
| 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 Sep 27, 2026.
Transparency logRelease files / avenir_mcp-0.1.0-py3-none-any.whl
| Download URL | avenir_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 72.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45cf6d3daee3a5343d2244820bf5ed949712419b935fca87e36b4a81631ef606
|
|
BLAKE2b-256 checksum How to use checksums |
e7b3169bdabfe5964af1f4bc0161e81c13fd598c95c50853579a612c7235ca0c
|
| 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 Sep 27, 2026.
Transparency log