Token导航 LogoToken导航TokenDH.com
Swift Ynab MCP logo
AI代理未说明官方级别未说明来源级核验

Swift Ynab MCP

MCP Server

为YNAB(You Need A Budget)提供模型上下文协议(MCP)服务器,使AI助手能够读写用户的预算、交易、类别和收款人信息。

工具数

16

提示词数

0

GitHub Stars

1

资源数

0
SwiftClaudeAI代理Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jonathanspiva

提供方

jonathanspiva

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

YNAB MCP Server

![CI](https://github.com/jonathanspiva/swift-ynab-mcp/actions/workflows/ci.yml) ![Swift 6.2](https://swift.org) ![macOS 26+](https://developer.apple.com/macos/) ![License: MIT](LICENSE) ![Built with Claude Code](https://claude.ai/code)

A Model Context Protocol (MCP) server for YNAB (You Need A Budget).

Gives AI assistants like Claude read and write access to your YNAB budgets, transactions, categories, and payees.

Tools

Read Tools (11)

ToolDescription
list_budgetsList all budgets with names, IDs, and currency
list_accountsList accounts in a budget with balances
list_categoriesList category groups and categories with balances
get_budget_summaryBudget overview with accounts and category groups
list_recent_transactionsRecent transactions (filterable by account, date range, approval status)
get_month_summaryCategory breakdown for a specific month
get_transactionFull transaction details by ID
list_payeesList all payees in a budget
get_transactions_by_payeeTransaction history for a specific payee
get_transactions_by_categoryTransaction history for a specific category
list_scheduled_transactionsList upcoming scheduled transactions

Write Tools (5)

ToolDescription
create_transactionCreate a new transaction (amount in dollars)
update_transactionUpdate an existing transaction (amount, payee, category, flag, approval)
bulk_update_transactionsUpdate multiple transactions at once
rename_payeeRename a payee across all transactions
update_category_budgetSet the budgeted amount for a category in a given month

Requirements

Build

swift build -c release

The binary will be at .build/release/ynab-mcp.

Configure

Add to your Claude Code MCP config (~/.claude.json or project .claude/settings.json):

{
  "mcpServers": {
    "ynab": {
      "command": "/path/to/ynab-mcp",
      "env": {
        "YNAB_TOKEN": "your-token-here"
      }
    }
  }
}

1Password integration

If you use 1Password, you can avoid storing the token in plaintext by using op run:

{
  "mcpServers": {
    "ynab": {
      "command": "op",
      "args": ["run", "--no-masking", "--", "/path/to/ynab-mcp"],
      "env": {
        "YNAB_TOKEN": "op://Your Vault/YNAB Token/credential"
      }
    }
  }
}

Limitation: op requires an active biometric session. Claude Code spawns MCP servers non-interactively, so op can't prompt for authentication. If your session has expired, the MCP server will silently fail to connect, and /mcp reconnect won't help either.

To fix this, run any op command in a terminal first to establish a session, then restart Claude Code:

op read "op://Your Vault/YNAB Token/credential" > /dev/null

This is a known limitation of how Claude Code launches subprocesses. Native op:// resolution in MCP config would eliminate this problem.

Rate Limiting

200 requests per hour (in-memory, resets on restart). This matches the YNAB API limit of 200 requests per hour per token.

Dependencies

Important: Back up your budget

This server includes write tools that modify your live YNAB data. Export your budget before using write tools for the first time. In the YNAB web app, click your budget name in the top-left corner and choose "Export Budget."

Notes

  • Only tested with Claude Code. It should work with any MCP client, but your mileage may vary.
  • Write tools modify your actual YNAB data. Use with care.
  • Transaction amounts are in dollars (e.g., 25.50), not YNAB's native milliunits.
  • Budget and category IDs can be discovered using the read tools (list_budgets, list_categories, etc.).

License

MIT

目录标签

目录标签

SwiftClaudeAI代理本地部署预算管理财务自动化AI助手数据读写YNAB集成

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

16

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP