MY

maronato/ynab-mcp

开发工具

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

6 stars 3 forks 质量 77 趋势 18MIT

YNAB MCP Server

概览

An MCP server for YNAB with batch operations, deterministic analysis tools, and robust undo support. This project was built with Claude Code and Cursor. It works and is tested, but the code is largely clanker-made. - covering budgets, accounts, transactions, categories, targets, scheduled transactions, and spending analysis - — spending aggregation, trends, income vs expense, recurring-charge and anomaly detection, and a one-call budget health snapshot. Judgment calls (forecasting, reallocation, prioritization) are deliberately left to the calling agent, which has the exact data and more context - — create, update, and delete multiple transactions in a single call, with per-item API costs documented where the YNAB API has no bulk endpoint - — every write operation is recorded and reversible - — transaction category suggestions from payee history and scheduled-transaction matching, with confidence gating so only high-confidence suggestions land in the ready-to-apply actions - — YNAB...

README

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

YNAB MCP Server

An MCP server for YNAB with batch operations, deterministic analysis tools, and robust undo support.

[!NOTE] AI Disclosure: This project was built with Claude Code and Cursor. It works and is tested, but the code is largely clanker-made.

Highlights

  • 26 tools covering budgets, accounts, transactions, categories, targets, scheduled transactions, and spending analysis
  • Deterministic analysis — spending aggregation, trends, income vs expense, recurring-charge and anomaly detection, and a one-call budget health snapshot. Judgment calls (forecasting, reallocation, prioritization) are deliberately left to the calling agent, which has the exact data and more context
  • Batch operations — create, update, and delete multiple transactions in a single call, with per-item API costs documented where the YNAB API has no bulk endpoint
  • Undo support — every write operation is recorded and reversible
  • Smart categorization — transaction category suggestions from payee history and scheduled-transaction matching, with confidence gating so only high-confidence suggestions land in the ready-to-apply actions
  • Built-in knowledge base — YNAB methodology docs (credit cards, targets, overspending, reconciliation) served as MCP resources
  • 5 workflow prompts — monthly reviews, spending reports, unapproved triage, budget optimization, and subscription audits
  • Read-only mode — write tools are not even registered, so clients only see tools they can use
  • Efficient caching — delta sync with YNAB’s server knowledge system, configurable TTLs, and client-side rate-limit tracking

Setup

Prerequisites

Usage

Run directly with npx:

YNAB_API_TOKEN=your-token npx @maro-org/ynab-mcp

Or install globally:

npm install -g @maro-org/ynab-mcp
YNAB_API_TOKEN=your-token ynab-mcp

MCP Client Configuration

Add the server to your MCP client config. For example, in Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "ynab": {
      "command": "npx",
      "args": ["-y", "@maro-org/ynab-mcp"],
      "env": {
        "YNAB_API_TOKEN": "your-token"
      }
    }
  }
}

For Cursor, add the same structure to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally.

Configuration

All configuration is done through environment variables.

Variable Description Default
YNAB_API_TOKEN YNAB personal access token required
YNAB_API_URL Override the YNAB API base URL YNAB default
在 GitHub 查看完整 README

安装

npx -y @maro-org/ynab-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ynab": { "command": "npx", "args": ["-y", "@maro-org/ynab-mcp"], "env": { "YNAB_API_TOKEN": "your-token" } } } }