YNAB MCP Server
ynab-mcp-서버
mcp-framework로 구축된 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 MCP는 https://ynab.com 에서 YNAB 예산 설정과 상호 작용할 수 있는 도구를 제공합니다.
AI가 이 도구와 상호 작용하려면 YNAB에서 개인 액세스 토큰( https://api.ynab.com/#personal-access-tokens )을 받아야 합니다. 이 MCP 서버를 클라이언트에 추가할 때 개인 액세스 토큰을 YNAB_API_TOKEN으로 제공해야 합니다. 이 토큰은 LLM으로 직접 전송되지 않습니다. YNAB API에서 사용할 수 있도록 환경 변수에 비공개로 저장됩니다.
설정
환경 변수 지정:
YNAB_API_TOKEN(필수)
YNAB_BUDGET_ID(선택 사항)
Related MCP server: ynab-mcp
목표
이 프로젝트의 목표는 AI 대화를 통해 YNAB 예산과 소통하는 것입니다. 몇 가지 주요 워크플로를 활성화하고자 합니다.
워크플로:
첫 번째 설정
사용 가능한 예산 중에서 예산을 선택하라는 메시지가 표시됩니다. 다른 도구를 먼저 사용하려고 하면 기본 예산을 설정하라는 메시지가 표시됩니다.
필요한 도구: ListBudgets
초과 지출 카테고리 관리
새로운 거래 추가
거래 승인
월 총 지출과 총 수입을 확인하세요
카테고리 목표에 따라 자금을 할당할 준비가 된 자동 분배
현재 상태
사용 가능한 도구:
ListBudgets - 계정에서 사용 가능한 예산을 나열합니다.
BudgetSummary - 자금이 부족한 범주와 예산이 부족한 계정에 대한 요약을 제공합니다.
GetUnapprovedTransactions - 승인되지 않은 모든 거래 검색
CreateTransaction - 지정된 예산 및 계정에 대한 거래를 생성합니다.
예시 프롬프트:
Add a transaction to my Ally account for $3.98 I spent at REI today먼저 GetBudget을 호출해야 계정 ID를 알 수 있습니다.
ApproveTransaction - YNAB 예산에서 기존 거래를 승인합니다.
승인하려면 거래 ID가 필요합니다.
GetUnapprovedTransactions와 함께 사용하여 보류 중인 거래를 승인할 수 있습니다.
승인되지 않은 거래에 대해 전화한 후
approve the transaction for $6.95 on the Apple Card요청합니다.
다음:
1번의 전화로 여러 거래를 승인할 수 있습니다
updateCategory 도구 - 또는 Zod 및 MCP 프레임워크에서 선택적 매개변수가 제대로 작동하도록 할 수 있는 경우 updateTransaction이 더 일반적인 도구입니다.
MCP 프레임워크에서 벗어나 모델 컨텍스트 프로토콜 SDK를 직접 사용할 수 있나요?
빠른 시작
지엑스피1
프로젝트 구조
ynab-mcp-server/
├── src/
│ ├── tools/ # MCP Tools
│ └── index.ts # Server entry point
├── .cursor/
│ └── rules/ # Cursor AI rules for code generation
├── package.json
└── tsconfig.json구성 요소 추가
YNAB SDK는 사용 가능한 API 엔드포인트를 설명합니다: https://github.com/ynab/ynab-sdk-js .
YNAB 오픈 API 사양은 https://api.ynab.com/papi/open\_api\_spec.yaml 에 있습니다. 이 사양은 AI가 새로운 도구를 생성하도록 유도하는 데 사용할 수 있습니다. 커서 에이전트에 대한 프롬프트 예시:
create a new tool based on the readme and this openapi doc: https://api.ynab.com/papi/open_api_spec.yaml
The new tool should get the details for a single budgetCLI를 사용하여 더 많은 도구를 추가할 수 있습니다.
# Add a new tool
mcp add tool my-tool
# Example tools you might create:
mcp add tool data-processor
mcp add tool api-client
mcp add tool file-handler도구 개발
도구 구조의 예:
import { MCPTool } from "mcp-framework";
import { z } from "zod";
interface MyToolInput {
message: string;
}
class MyTool extends MCPTool<MyToolInput> {
name = "my_tool";
description = "Describes what your tool does";
schema = {
message: {
type: z.string(),
description: "Description of this input parameter",
},
};
async execute(input: MyToolInput) {
// Your tool logic here
return `Processed: ${input.message}`;
}
}
export default MyTool;npm에 게시하기
package.json을 업데이트하세요:
name이 고유하고 npm 명명 규칙을 따르는지 확인하세요.적절한
version설정하세요description,author,license등을 추가합니다.올바른 항목 파일에 대한
bin포인트를 확인하세요.
로컬로 빌드하고 테스트하세요.
npm run build npm link ynab-mcp-server # Test your CLI locallynpm에 로그인합니다(필요한 경우 계정을 만듭니다):
npm login패키지를 게시하세요:
npm publish
게시 후 사용자는 이를 Claude 데스크톱 클라이언트에 추가하거나(아래 참조) npx로 실행할 수 있습니다.
Claude Desktop과 함께 사용
Smithery를 통해 설치
Smithery 를 통해 Claude Desktop용 YNAB Budget Assistant를 자동으로 설치하려면:
npx -y @smithery/cli install @calebl/ynab-mcp-server --client claude지역 개발
Claude Desktop 구성 파일에 다음 구성을 추가하세요.
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"ynab-mcp-server": {
"command": "node",
"args":["/absolute/path/to/ynab-mcp-server/dist/index.js"]
}
}
}출판 후
Claude Desktop 구성 파일에 다음 구성을 추가하세요.
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"ynab-mcp-server": {
"command": "npx",
"args": ["ynab-mcp-server"]
}
}
}다른 MCP 클라이언트
사용 가능한 다른 클라이언트는 https://modelcontextprotocol.io/clients에서 확인하세요.
빌딩 및 테스트
도구를 변경하세요
npm run build실행하여 컴파일합니다.서버는 시작 시 자동으로 도구를 로드합니다.
자세히 알아보기
Available Tools
13 toolsynab_balance_forecastBalance ForecastARead-only
Projects the combined balance of your accounts over the next N days (from today in UTC) from scheduled transactions only: the starting balance, the scheduled events, the end-of-day running balance and the lowest point. Income or spending that is not scheduled in YNAB is not in the forecast. Transfers between two included accounts (credit card payments too) net to zero; a transfer to an account outside the forecast counts as money leaving, and one from an account outside it as money arriving. Split schedules are counted leg by leg. Occurrences whose date has passed but that YNAB has not entered yet count on the first day, marked overdue with their scheduled_date and summarised in overdue_schedules. Where YNAB does not give the second date of a twice-a-month schedule, it is approximated as 15 days after the first. Events are capped by limit; the running balance, low point and ending balance always cover every day. For past income versus spending, use ynab_cash_flow; to list the schedules themselves, use ynab_list_scheduled_transactions.
Inputs: days, limit, planId, budgetId, +1 more.
ynab_cash_flowCash FlowARead-only
Income versus spending, month by month, so you can see whether you are running a surplus. Uses YNAB's own monthly totals rather than re-adding transactions. For a projected balance, use ynab_balance_forecast.
Inputs: months, planId, budgetId, sinceDate.
ynab_detect_recurringDetect RecurringARead-only
Finds recurring outflows (subscriptions, bills, memberships) in transaction history by payee, similar amount and regular spacing, whether or not they are scheduled in YNAB. For the scheduled transactions set up in YNAB, use ynab_list_scheduled_transactions. Gives each one's cadence, typical amount, yearly cost at the latest amount, next expected date, whether it seems to have stopped, and already_scheduled (a scheduled transaction has the same payee name; amounts are not compared). This is a heuristic: check the results before acting on them. Splits are counted through their subtransactions. Transfers are excluded, so loan and mortgage payments (transfers to a loan account) and credit card payments are not reported. Inflows are excluded too, and refunds are not netted against charges. Reads the whole window from YNAB in one request, which is slow for a long sinceDate on a busy plan. Yearly charges need a sinceDate far enough back to show minOccurrences of them.
Inputs: planId, budgetId, sinceDate, minOccurrences, +1 more.
ynab_get_transactionsGet TransactionsARead-only
Gets transactions from a plan, optionally between a start and end date and by type (all, uncategorized or unapproved). Filter by at most one of account, category or payee: they cannot be combined, and if several are given only the first in that order is applied. month (a plan month) cannot be combined with any of them. Pass transactionId to get just that one transaction: it overrides every other filter, which are all ignored, and a missing or deleted transaction is an error. To search, add payee or memo text, an amount range or a direction. Any search option (or untilDate) adds inflow, outflow and net totals over every match; the totals include transfers between accounts, such as credit card payments. totalsOnly returns just the totals (e.g. categoryId with a year's dates and totalsOnly). Without categoryId or payeeId, split transactions are matched leg by leg and the totals count only the matching legs. With categoryId or payeeId, rows are matched as YNAB returns them, so a split's parent row in the payee listing counts at its full amount.
Inputs: type, limit, month, planId, +13 more.
ynab_list_accountsList AccountsARead-only
Lists all accounts in a plan. Useful for finding account IDs when creating transactions.
Inputs: planId, budgetId, includeClosedAccounts.
ynab_list_categoriesList CategoriesARead-only
Lists all categories in a plan, grouped by category group. Useful for finding category IDs when creating transactions or updating budgeted amounts.
Inputs: planId, budgetId.
ynab_list_monthsList MonthsARead-only
Lists every plan month since the plan began, with raw summary fields: income, budgeted, activity, Ready to Assign, age of money and the month note. For income-versus-spending questions over recent months, use ynab_cash_flow instead.
Inputs: planId, budgetId.
ynab_list_payeesList PayeesARead-only
Lists all payees in a plan. Useful for finding payee IDs when creating transactions.
Inputs: planId, budgetId.
ynab_list_plansList PlansARead-only
Lists all available plans from YNAB API
Inputs: no named parameters.
ynab_list_scheduled_transactionsList Scheduled TransactionsARead-only
Lists the scheduled transactions set up in YNAB, optionally only those in one account with accountId. Pass scheduledTransactionId to fetch just one (accountId is then ignored). To find recurring charges in transaction history, including ones that are not scheduled, use ynab_detect_recurring. For a projected balance, use ynab_balance_forecast.
Inputs: planId, budgetId, accountId, scheduledTransactionId.
ynab_plan_summaryPlan SummaryARead-only
Get a summary of the plan for a specific month highlighting overspent categories that need attention and categories with a positive balance that are doing well. Set budgetVsActuals to also compare assigned with actual spending that month: budgeted, activity, balance, variance (budgeted plus activity; below zero means more was spent than assigned) and percent used for every visible category, with subtotals per category group and overall totals, which leave out Credit Card Payments.
Inputs: month, planId, budgetId, budgetVsActuals.
ynab_spending_by_categorySpending By CategoryARead-only
Totals spending per category over a date range, biggest spend first. Splits are counted through their subtransactions, and transfers between your own accounts are excluded. Totals are gross outflows: refunds and other inflows aren't netted, so they can differ from a category's activity in YNAB. With monthly: true, each category also gets a month-by-month series, its mean over full months, and how its last full month compares with the earlier ones.
Inputs: limit, months, planId, monthly, +3 more.
ynab_spending_by_payeeSpending By PayeeARead-only
Totals spending per payee over a date range, biggest spend first - where the money actually goes by merchant. Splits are counted through their subtransactions, and transfers between your own accounts are excluded. Totals are gross outflows: refunds and other inflows aren't netted, so they can differ from a category's activity in YNAB. With monthly: true, each payee also gets a month-by-month series, its mean over full months, and how its last full month compares with the earlier ones.
Inputs: limit, months, planId, monthly, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct domains (transactions, accounts, payees, categories, cash flow, forecast, recurring detection), and the descriptions actively cross-reference alternatives ('for X use Y'), which sharply reduces misselection. The one soft spot is ynab_get_transactions, which is a swiss-army tool whose filters/totalsOnly overlap with ynab_spending_by_category, ynab_spending_by_payee and ynab_cash_flow, so an agent could reach for the wrong one for reporting tasks.
All tools use a uniform ynab_ snake_case prefix with a predictable verb_noun or noun_phrase form (ynab_list_accounts, ynab_get_transactions, ynab_spending_by_category, ynab_balance_forecast). List-style operations consistently use list_ and analytical operations use descriptive noun phrases, so the convention is readable and stable across the set.
Thirteen tools is well within the sweet spot and each one maps to a distinct reporting or lookup concern (plans, accounts, transactions, payees, categories, months, three analytics views, forecast, recurring detection). Nothing feels padded or duplicative in count.
The surface is strong on read/analytics but appears entirely read-only: there is no tool to create, update or delete a transaction, and no way to assign budgeted amounts, even though ynab_list_categories and ynab_list_accounts explicitly advertise themselves as useful 'when creating transactions or updating budgeted amounts'. That leaves agents with dead ends suggested by the descriptions, though reporting and forecasting coverage is thorough.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
A Model Context Protocol server for Wix AI tools
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that allows users to interact with YNAB data, enabling access to account balances, transactions, and the creation of new transactions through the Model Context Protocol.86MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for interacting with YNAB (You Need A Budget). Provides tools for accessing budget data through MCP-enabled clients like Claude Desktop.4MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables interaction with You Need A Budget (YNAB) via their API, allowing users to manage budgets, accounts, categories, and transactions through natural language.2MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server for YNAB (You Need A Budget). Enables users to query budgets, accounts, categories, transactions, and more, as well as create, update, and delete transactions and manage scheduled transactions from any MCP client.272MIT