Ynab MCP 1e6fb2e2

MCPAI代理

提供方 auzroz · 包名 ynab-mcp

AI代理 stdio · 本地进程 Token 社区 / 第三方 Claude DesktopClaude
查看接入方式

YNAB MCP Server是一个基于模型上下文协议(MCP)的服务器,为YNAB(You Need A Budget)提供AI助手功能,支持自然语言查询预算、分析消费模式、检测订阅并提供个性化财务建议。

一句话选型结论

按资料字段整理

Ynab MCP 1e6fb2e2 属于AI代理类 MCP 服务器,stdio · 本地进程,Token,可直接接入 Claude Desktop、Claude,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式stdio · 本地进程 鉴权Token 部署方式本地部署
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 55 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量55暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

预算管理TypeScript本地部署财务分析AI助手自然语言处理YNAB集成

安装与配置

stdio · 本地进程 Token
客户端在本机拉起子进程,数据不出本机
npx ynab-mcp

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 55 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 55 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好Token对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Ynab MCP 1e6fb2e2当前 55 stdio · 本地进程 本地部署 有 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方auzroz上游标注的维护方 auzroz
分类AI代理本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式Token远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时ynab-mcp · Node.js本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

14.4 KB
来自项目仓库与上游目录的原文,未做删改

YNAB MCP Server

A comprehensive Model Context Protocol (MCP) server for YNAB (You Need A Budget) that enables AI assistants like Claude Desktop to read your budget, analyze spending patterns, detect subscriptions, and provide personalized financial insights—all through natural conversation.

Why YNAB MCP?

Traditional YNAB integrations require manual API calls or custom scripting. This MCP server lets you:

  • Talk to your budget naturally — Ask Claude "Am I overspending on dining out?" and get instant insights
  • Get AI-powered financial analysis — Subscription detection, spending trends, savings recommendations, and budget health scores
  • Stay safe by default — Read-only mode protects against accidental changes
  • Access everything — 66 tools total: comprehensive YNAB API coverage (40 tools), 23 custom analytics tools, and 3 system tools

Features

Feature Description
Broad API Coverage 66 MCP tools spanning the YNAB API endpoints
Advanced Analytics 23 tools for spending analysis, trend detection, and financial insights
Read-Only by Default Write operations require explicit opt-in (YNAB_READ_ONLY=false)
Smart Rate Limiting Token bucket algorithm with 180 req/hour budget (10% safety margin)
Intelligent Caching Reduces API calls for infrequently changing data
Type-Safe Full TypeScript implementation with Zod schema validation

Quick Start

Prerequisites

  • A YNAB account with API access
  • A YNAB Personal Access Token (get one here)

Installation Options

Option 1: npx (Easiest)

No installation required—run directly:```bash
npx ynab-mcp


#### Option 2: Docker```bash
docker run -e YNAB_ACCESS_TOKEN=your_token ghcr.io/auzroz/ynab-mcp:latest

Option 3: Install from Source```bash

Clone the repository

git clone https://github.com/auzroz/ynab-mcp.git
cd ynab-mcp

Install dependencies and build

npm install
npm run build

Run the server

npm start


### Configuration

The server is configured via environment variables:

| Variable | Required | Description |
|----------|----------|-------------|
| `YNAB_ACCESS_TOKEN` | Yes | Your YNAB Personal Access Token |
| `YNAB_BUDGET_ID` | No | Default budget UUID (uses "last-used" if not set) |
| `YNAB_READ_ONLY` | No | Set to `false` to enable write operations (default: `true`) |

### Remote / HTTP mode

By default the server speaks **stdio** (local). Set `MCP_TRANSPORT=http` to run it
as a **remote** server over the MCP Streamable HTTP transport at `POST /mcp`, with a
plain `GET /health` for load balancers. Each session gets an isolated
client/cache/rate-limiter/audit-log.

| Variable | Description |
|----------|-------------|
| `MCP_TRANSPORT` | `stdio` (default) or `http` |
| `PORT` | HTTP port (default `3000`) |
| `ALLOWED_HOSTS` / `ALLOWED_ORIGINS` | Comma-separated allowlists for DNS-rebinding protection |
| `ENABLE_DNS_REBINDING_PROTECTION` | Enable Origin/Host checks (needs an allowlist) |

**Multi-user (YNAB OAuth).** Configure a YNAB OAuth app + `ENCRYPTION_KEY` +
`PUBLIC_URL` and the server becomes an OAuth 2.1 Authorization Server federated to
YNAB: many users connect their own YNAB accounts to one instance, each isolated,
choosing read-only or read-write at consent. See
**docs/REMOTE_HOSTING.md** for the full deployer guide
(registering the YNAB app, storage, TLS).

> **Single-user (header auth).** If the OAuth variables aren't all set, HTTP mode
> takes the YNAB token per request via the `X-YNAB-Token` header (falling back to
> `YNAB_ACCESS_TOKEN` for one user). **Serve behind TLS.**```bash
MCP_TRANSPORT=http PORT=3000 YNAB_ACCESS_TOKEN=… npm start
# connect an MCP client via the mcp-remote shim:
npx mcp-remote http://localhost:3000/mcp --header "X-YNAB-Token: <your-token>"

Claude Desktop Integration

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Using npx (Recommended)```json

{
"mcpServers": {
"ynab": {
"command": "npx",
"args": ["ynab-mcp"],
"env": {
"YNAB_ACCESS_TOKEN": "your_token_here"
}
}
}
}


#### Using Docker```json
{
  "mcpServers": {
    "ynab": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "YNAB_ACCESS_TOKEN",
        "ghcr.io/auzroz/ynab-mcp:latest"
      ],
      "env": {
        "YNAB_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

Using Local Build```json

{
"mcpServers": {
"ynab": {
"command": "node",
"args": ["/path/to/ynab-mcp/dist/index.js"],
"env": {
"YNAB_ACCESS_TOKEN": "your_token_here"
}
}
}
}


## Example Conversations

Once connected, try asking Claude:

| Question | Tool Used |
|----------|-----------|
| "What's my current net worth?" | `ynab_net_worth` |
| "How much did I spend on dining out this month?" | `ynab_list_category_transactions` |
| "What subscriptions do I have?" | `ynab_detect_recurring` |
| "Is my budget in good shape?" | `ynab_budget_health` |
| "Where can I cut back on spending?" | `ynab_savings_opportunities` |
| "Am I on track this month?" | `ynab_spending_pace` |
| "Compare this month to last month" | `ynab_monthly_comparison` |

## Available Tools (66 Total)

### Analytics Tools (23)

These tools provide AI-powered financial insights beyond basic YNAB functionality:

| Tool | Description |
|------|-------------|
| `ynab_detect_recurring` | Find subscription patterns and recurring payments |
| `ynab_spending_analysis` | Analyze spending trends by category |
| `ynab_budget_health` | Assess overall budget health with score and alerts |
| `ynab_savings_opportunities` | Identify potential areas to save money |
| `ynab_budget_vs_actuals` | Compare budgeted vs actual spending |
| `ynab_quick_summary` | At-a-glance budget status overview |
| `ynab_income_expense` | Income vs expense breakdown and trends |
| `ynab_net_worth` | Calculate total net worth from all accounts |
| `ynab_goal_progress` | Track goal funding progress with projections |
| `ynab_spending_by_payee` | Analyze spending by merchant/payee |
| `ynab_unused_categories` | Find inactive or unused categories |
| `ynab_monthly_comparison` | Month-over-month spending comparison |
| `ynab_spending_trends` | Multi-month trend analysis with projections |
| `ynab_cash_flow_forecast` | Project future cash flow based on scheduled transactions |
| `ynab_reconciliation_helper` | Help with account reconciliation |
| `ynab_budget_suggestions` | Get budget suggestions based on history |
| `ynab_overspending_alerts` | Quick check for overspent categories |
| `ynab_transaction_search` | Powerful multi-filter transaction search |
| `ynab_spending_pace` | Track daily spending rate vs target |
| `ynab_category_balances` | Quick category balance lookup |
| `ynab_credit_card_status` | Credit card balances vs payment categories |
| `ynab_age_of_money` | Age of money metric with explanation |
| `ynab_preview_scheduled_transaction` | Preview the budget impact of a scheduled transaction |

### Core YNAB API Tools (40)

Coverage of the YNAB API endpoints:

User Tools (1)

- `ynab_get_user` — Get authenticated user information

Budget Tools (3)

- `ynab_list_budgets` — List all accessible budgets
- `ynab_get_budget` — Get detailed budget information
- `ynab_get_budget_settings` — Get budget settings (currency format, etc.)

Account Tools (3)

- `ynab_list_accounts` — List all accounts with balances
- `ynab_get_account` — Get specific account details
- `ynab_create_account` — Create a new account *(write mode)*

Category Tools (7)

- `ynab_list_categories` — List all category groups and categories
- `ynab_get_category` — Get category details
- `ynab_get_month_category` — Get category budget for specific month
- `ynab_update_category` — Update category budgeted amount *(write mode)*
- `ynab_create_category` — Create a new category in a group *(write mode)*
- `ynab_create_category_group` — Create a new category group *(write mode)*
- `ynab_update_category_group` — Rename a category group *(write mode)*

Payee Tools (7)

- `ynab_list_payees` — List all payees (merchants/vendors)
- `ynab_get_payee` — Get specific payee details
- `ynab_create_payee` — Create a new payee *(write mode)*
- `ynab_update_payee` — Rename a payee *(write mode)*
- `ynab_list_payee_locations` — List all payee locations for mapping
- `ynab_get_payee_location` — Get specific payee location
- `ynab_list_payee_locations_by_payee` — List locations for a specific payee

Month Tools (2)

- `ynab_list_months` — List all budget months
- `ynab_get_month` — Get detailed month summary with categories

Transaction Tools (11)

- `ynab_list_transactions` — List transactions with filters
- `ynab_get_transaction` — Get transaction details
- `ynab_create_transaction` — Create a new transaction *(write mode)*
- `ynab_create_transactions` — Bulk create transactions *(write mode)*
- `ynab_update_transaction` — Update a transaction *(write mode)*
- `ynab_update_transactions` — Bulk update transactions *(write mode)*
- `ynab_delete_transaction` — Delete a transaction *(write mode)*
- `ynab_list_account_transactions` — List transactions for a specific account
- `ynab_list_category_transactions` — List transactions for a specific category
- `ynab_list_payee_transactions` — List transactions for a specific payee
- `ynab_import_transactions` — Trigger import from linked banks *(write mode)*

Scheduled Transaction Tools (5)

- `ynab_list_scheduled_transactions` — List scheduled/recurring transactions
- `ynab_get_scheduled_transaction` — Get scheduled transaction details
- `ynab_create_scheduled_transaction` — Create a scheduled transaction *(write mode)*
- `ynab_update_scheduled_transaction` — Update a scheduled transaction *(write mode)*
- `ynab_delete_scheduled_transaction` — Delete a scheduled transaction *(write mode)*

Money Movement Tools (1)

- `ynab_list_money_movements` — List moves of funds between categories

System Tools (3)

- `ynab_rate_limit_status` — Check API rate limit status
- `ynab_audit_log` — View write operation audit log
- `ynab_health_check` — Test API connectivity

## Available Prompts

Beyond raw tool access, the server exposes 7 MCP Prompts — guided workflows
grounded in YNAB's own budgeting methodology (the Four Rules, Age of Money,
True Expenses) that orchestrate several tools into a single review. Any MCP
client that supports the `prompts` capability can invoke them directly.

| Prompt | What it does |
|--------|---------------|
| `ynab-pulse-check` | Fast daily-style status check |
| `ynab-monthly-review` | Full end-of-month budget review and next month's suggested targets |
| `ynab-assign-money` | Give Every Dollar a Job — allocate unassigned funds |
| `ynab-true-expenses` | Embrace Your True Expenses — plan for irregular/annual costs |
| `ynab-overspending-triage` | Roll With the Punches — find and fix overspending |
| `ynab-age-of-money` | Age Your Money — check cash cushion and credit card float |
| `ynab-reconcile-cleanup` | Weekly hygiene: reconciliation and category cleanup |

See docs/REMOTE_HOSTING.md for details.

## Skills

Our MCP server gives Claude access to your YNAB budget. Our skills teach
Claude YNAB's own best practices — some work standalone, some get sharper
when connected. Together, they turn raw budget data into an actual coach.

The `skills/` directory has 15 Claude Agent Skills:
7 that orchestrate this MCP server's tools into guided reviews, and 8
standalone coaching skills (getting started, debt payoff, irregular income,
windfalls, emergency funds, and more) that work with or without this server
connected. Every GitHub Release
attaches them as downloadable zips — see skills/README.md
for the full list and install instructions.

## Development```bash
# Run with hot reload
npm run dev

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Lint code
npm run lint

# Fix lint issues
npm run lint:fix

# Type check only
npm run typecheck

Testing with MCP Inspector```bash

npx @modelcontextprotocol/inspector node dist/index.js


## Architecture```
src/
├── index.ts              # Entry point (selects stdio or http transport)
├── server.ts             # Per-user server + tool registration
├── http.ts               # Express app for remote (Streamable HTTP) mode
├── crypto.ts             # AES-256-GCM at-rest token encryption
├── config/               # Environment configuration
├── auth/                 # Remote OAuth: MCP AS provider, YNAB client, sessions
├── storage/              # Pluggable storage (memory / sqlite / postgres)
├── services/             # Core services
│   ├── ynab-client.ts    # YNAB API wrapper with rate limiting
│   ├── rate-limiter.ts   # Token bucket rate limiter
│   ├── audit-log.ts      # Per-user write audit log
│   └── cache.ts          # In-memory TTL cache
├── tools/                # MCP tool implementations
│   ├── user/
│   ├── budgets/
│   ├── accounts/
│   ├── categories/
│   ├── payees/
│   ├── months/
│   ├── transactions/
│   ├── scheduled-transactions/
│   └── analytics/
└── utils/                # Helpers (currency, dates, errors)

Security

Feature Description
Read-Only Default Write operations disabled unless YNAB_READ_ONLY=false
Token Security Never commit your YNAB_ACCESS_TOKEN; use environment variables
Input Validation All tool parameters validated with Zod schemas
Rate Limiting Built-in protection against API quota exhaustion
Audit Logging All write operations logged for review

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests and linting: npm test && npm run lint
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • YNAB for their excellent budgeting platform and API
  • Anthropic for Claude and the Model Context Protocol
  • Model Context Protocol for the MCP specification

Related Projects

  • YNAB API Documentation
  • Model Context Protocol
  • Claude Desktop

Built with ❤️ for the YNAB community

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Ynab MCP 1e6fb2e2 怎么安装?

在客户端按下面的安装命令接入:npx ynab-mcp。对应的包名是 ynab-mcp。装完在客户端配置里引用同一个包或端点。

Ynab MCP 1e6fb2e2 怎么在 Claude Desktop、Claude 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Ynab MCP 1e6fb2e2 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Ynab MCP 1e6fb2e2 需要 API Key 吗?

资料标注需要Token认证,使用前准备好对应凭据,并按最小权限配置。

Ynab MCP 1e6fb2e2 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Ynab MCP 1e6fb2e2 能提供哪些能力?

资料显示约 55 个工具;能力标签包括 财务分析、TypeScript、Claude、自然语言处理。具体工具清单以官方文档为准。

Ynab MCP 1e6fb2e2 需要什么运行环境?

运行时为 Node.js;属于本地进程,需要在本机装好运行环境。

Ynab MCP 1e6fb2e2 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。