Skip to content

Install

This page takes you from nothing to a working avenir-mcp, in about ten minutes. Each step ends with a check, so you know it worked before moving on.

  1. Install uv, the tool that runs avenir-mcp.
  2. Get a YNAB token, avenir-mcp’s access to your budgets.
  3. Check that avenir-mcp starts, by hand, once.
  4. Add avenir-mcp to your client.
  5. Check it works with a first question.
  6. Allow changes, if you want the agent to tidy up for you.
Why Where to get it
A YNAB account avenir-mcp reads and changes your budgets app.ynab.com
An MCP client the application you talk to; it starts avenir-mcp Claude Code, Claude Desktop, Cursor, VS Code…
uv downloads and runs avenir-mcp, and the Python it needs, in an isolated environment the next step

You do not need to install Python, clone the repository or create a virtual environment: uv does all of it.

In a terminal:

Terminal window
curl -LsSf https://astral.sh/uv/install.sh | sh

Or, with Homebrew: brew install uv.

Close and reopen the terminal, then check:

Terminal window
uv --version

It prints a version, such as uv 0.12.19. Command not found? The installer adds uv to the PATH of new terminals only: open a new one. Details in uv’s documentation.

  1. Sign in to YNAB in a web browser at app.ynab.com — the mobile apps do not show developer settings.
  2. Click your name at the top left, then Account Settings.
  3. Open Developer Settings.
  4. Under Personal Access Tokens, click New Token, enter your YNAB password, then Generate.
  5. Copy the token shown at the top of the page: a long string of letters, digits and dashes. YNAB shows it only once. If you lose it, create another and revoke the old one.

Before configuring a client, run avenir-mcp once by hand. This downloads it and proves that it starts.

Terminal window
YNAB_API_KEY=your-token uvx avenir-mcp

The first run downloads avenir-mcp and Python: a few seconds to a minute. Then nothing is printed and the command does not return — that is expected: avenir-mcp waits for a client to talk to it. Press Ctrl+C to stop it.

An error is printed instead? See Troubleshooting.

Pick your client. These configurations are read-only: avenir-mcp can answer questions but change nothing. Allow changes comes after.

In a terminal:

Terminal window
claude mcp add avenir-mcp --scope user \
--env YNAB_API_KEY=your-token \
-- uvx avenir-mcp
Part Meaning
claude mcp add avenir-mcp register an MCP server named avenir-mcp
--scope user for all your projects; leave it out to register it for the current folder only
--env YNAB_API_KEY=… the environment avenir-mcp starts with
-- what follows is the command that starts the server
uvx avenir-mcp that command

Claude Code keeps this, token included, in ~/.claude.json, readable by you only.

Terminal window
claude mcp list

avenir-mcp should be connected:

avenir-mcp: uvx avenir-mcp - ✔ Connected

Then start claude and type /mcp: avenir-mcp shows its 9 tools.

Now ask, in a new conversation: “List my YNAB budgets.” The agent calls list_plans — your client may ask you to allow it — and answers with their names. Here, the demo budget used throughout this documentation:

list_plans
[
{
"id": "demo-budget",
"name": "Demo household",
"first_month": "2026-06-01",
"last_month": "2026-09-01"
}
]

avenir-mcp works. Continue with your first conversation, or allow changes first.

To let the agent classify transactions, move money between categories or reconcile accounts, add AVENIR_MCP_WRITE=1 to avenir-mcp’s environment.

Remove avenir-mcp and add it again with the extra variable:

Terminal window
claude mcp remove avenir-mcp --scope user
claude mcp add avenir-mcp --scope user \
--env YNAB_API_KEY=your-token \
--env AVENIR_MCP_WRITE=1 \
-- uvx avenir-mcp

The value must be exactly 1. Check: the client now lists 20 tools instead of 11.

Read-only (default) With AVENIR_MCP_WRITE=1
Tools listed 11 20
Classify, budget, reconcile, create — previewed, confirmed by you, undoable
If the agent misunderstands nothing can change a change you confirmed, which you can undo

Every change is shown to you before it is applied: see Safety by design.

To Do
Update uvx fetches new releases by itself from time to time; force it with uvx --refresh avenir-mcp
Remove claude mcp remove avenir-mcp --scope user, or delete the avenir-mcp entry from the client’s configuration
Clean up avenir-mcp’s only file on your machine is its journal, in ~/.local/state/avenir-mcp/
Revoke the token YNAB → Account Settings → Developer Settings → Revoke next to the token

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. avenir-mcp is provided as is, without warranty, and is not financial advice. Legal notice