Avenir Mcp

io.github.mathbeal由 GitHub 帳號 mathbeal 發布v0.8.0更新於 Oct 25, 2026

Unofficial MCP server for YNAB: read-only by default, every change previewed and undoable.

已驗證STDIO僅桌面效率與工作流金融

概覽

AI 產生的概覽

一個非官方的本機 MCP 伺服器,讓助理讀取你的 YNAB 預算計畫、預測餘額、規劃還債,並在啟用後預覽與復原預算變更。

可以做什麼
彙總某月預算並找出超支類別,預測餘額並規劃還債,將帳戶與銀行金額對帳。尋找單筆交易,並為待處理交易建議分類。啟用寫入工具後可在類別間轉移資金,每項變更都會先預覽、經你確認,並可透過復原操作還原。
適用情境
適合使用 YNAB 記帳、希望用自然語言詢問某月情況、支出預測、還債進度或特定交易,並可選擇在確認後做小幅預算調整的人。
執行需求
以 stdio 在本機執行,從 PyPI 安裝(avenir-mcp,通常透過 uvx)或作為 Claude Code 外掛使用。需要 YNAB 個人存取權杖,透過環境變數 YNAB_API_KEY 提供,並需連線至 YNAB API 的網路。僅當 AVENIR_MCP_WRITE 設為 1 時才提供寫入工具。
安裝前請注意
需要你的 YNAB 個人存取權杖;權杖從環境讀取並傳送給 YNAB,預算資料會回傳給你的 MCP 用戶端,因此模型供應商也能看到。啟用 AVENIR_MCP_WRITE 後寫入工具會變更你的預算,不過變更會先預覽、需確認且可復原。僅供個人使用,不構成財務建議。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Avenir Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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] [PyPI] [avenir-mcp on Glama] [Mentioned in Awesome MCP Servers] [licence] [quality] [MCP Inspector] [mutation] [docs] [YNAB API terms: self-checked] [coverage] [types] [docstrings] [code style] [python] [OpenSSF Best Practices] [last commit]

Ask Claude — or any MCP 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]

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 · 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 available (120.00 budgeted + 24.00 left from earlier months), 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 budgeted 80.00 → 57.50, Restaurants budgeted 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.]

▶ Watch the 20-second tour

[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 · Use cases.

Missing a question? Have an idea? Tell us the question you would like to ask your budget in Discussions → Ideas; help with using avenir-mcp is in Discussions → 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: https://avenir-mcp.pages.dev/avenir-mcp/ · English · Français · Español · Deutsch · Nederlands

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 pluginWhat
runsuv 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
contactspypi.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
writesthe environment uv resolves inside the plugin's folder, and uv's own cache. Nothing elsewhere
changes in your plannothing. 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-mcpuv syncjust check        # lint, types, tests at 100 % coverage, vocabulary, lockfilejust docs-serve   # the documentation, livejust 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.

Built and tested against YNAB's API v1.87.0; a weekly YNAB API drift 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: https://avenir-mcp.pages.dev/avenir-mcp/project/privacy/.

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 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.

來源:README.md,提交 98f658b

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:軟體包安裝失敗。

版本歷史

9
  1. v0.8.0最新Oct 25, 2026
  2. v0.7.1Oct 25, 2026
  3. v0.7.0Oct 22, 2026
  4. v0.6.0Oct 10, 2026
  5. v0.5.0Oct 2, 2026
  6. v0.4.0Oct 2, 2026
  7. v0.3.0Oct 1, 2026
  8. v0.2.1Oct 1, 2026
  9. v0.2.0Sep 30, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分