PM

pragprogrammer/mcp-ynab

分析与监控

本页由 AI 翻译,技术细节请以原文为准。 查看原文

49 stars 19 forks 质量 69 趋势 4AGPL-3.0

pragprogrammer/mcp-ynab 是从 https://github.com/pragprogrammer/mcp-ynab. 导入的 MCP 服务器候选

概览

pragprogrammer/mcp-ynab 是从 https://github.com/pragprogrammer/mcp-ynab. 导入的 MCP 服务器候选

概述(AI 翻译)

一个将AI助手连接到YNAB预算的MCP服务器。问问YNAB无法回答的预算问题。

mcp-ynab.com — 完整安装指南、故障排除及更多内容。

特色

  • 30+工具 — 预算、账户、交易、类别、收款人、月份、预定交易和分析
  • Delta sync — 仅获取自上次调用以来的变化(使用 YNAB 的服务器知识)
  • 4 层缓存 — TTL 缓存、delta 同步、带回退重试、SQLite 持久化
  • 搜索与分析 — 跨交易文本搜索、各类别支出明细、Sankey流程数据
  • 批量操作 — 在一次调用中创建或更新多个事务
  • 美元金额 — 接受美元参数,内部转换为YNAB毫单位

快速启动

需要将个人访问令牌设置为YNAB_API_KEY。

配置

克劳德桌面 / ChatGPT

添加到你的配置文件中:

克劳德·科德

请参见 mcp-ynab.com,了解配置文件位置和故障排除。

可用工具

组 工具
用户get_user
计划 list_plans,get_plan,get_plan_settings

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

YNAB MCP Server

An MCP server that connects AI assistants to your YNAB budget. Ask your budget questions YNAB can’t answer.

mcp-ynab.com — Full setup guide, troubleshooting, and more.

Features

  • 30+ tools — budgets, accounts, transactions, categories, payees, months, scheduled transactions, and analytics
  • Delta sync — only fetches what changed since the last call (uses YNAB’s server knowledge)
  • 4-tier caching — TTL cache, delta sync, retry with backoff, SQLite persistence
  • Search & analytics — text search across transactions, per-category spending breakdowns, Sankey flow data
  • Bulk operations — create or update multiple transactions in a single call
  • Dollar amounts — accepts dollars in parameters, converts to YNAB milliunits internally

Quick Start

uv tool run mcp-ynab

Requires a YNAB personal access token set as YNAB_API_KEY.

Configuration

Claude Desktop / ChatGPT

Add to your config file:

{
  "mcpServers": {
    "ynab": {
      "command": "uv",
      "args": ["tool", "run", "mcp-ynab"],
      "env": {
        "YNAB_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

claude mcp add-json ynab --scope user '{"type":"stdio","command":"uv","args":["tool","run","mcp-ynab"],"env":{"YNAB_API_KEY":"your-api-key-here"}}'

See mcp-ynab.com for config file locations and troubleshooting.

Available Tools

Group Tools
User get_user
Plans list_plans, get_plan, get_plan_settings
Accounts list_accounts, get_account, create_account
Categories list_categories, get_category, create_category, update_category, create_category_group, update_category_group, get_category_for_month, update_category_for_month
Payees list_payees, get_payee, update_payee
Payee Locations list_payee_locations, get_payee_location, get_payee_locations_by_payee
Months list_months, get_month
Money Movements list_money_movements, get_money_movements_for_month, list_money_movement_groups, get_money_movement_groups_for_month
Transactions list_transactions, get_transaction, get_transactions_by_account, get_transactions_by_category, get_transactions_by_month, get_transactions_by_payee, search_transactions, create_transaction, create_transactions, update_transaction, update_transactions, delete_transaction, import_transactions
Scheduled list_scheduled_transactions, get_scheduled_transaction, create_scheduled_transaction, update_scheduled_transaction, delete_scheduled_transaction
Analytics get_money_flow, get_spending_by_category

Field selection

Every tool that returns a model accepts an optional exclude_fields list. By

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ynab": { "command": "uv", "args": ["tool", "run", "mcp-ynab"], "env": { "YNAB_API_KEY": "your-api-key-here" } } } }