YNAB MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
YNAB MCP Server
A Model Context Protocol (MCP) server that provides access to YNAB (You Need A Budget) data through a standardized interface. This server implements resources, tools, and prompts to interact with YNAB user information and budgets.
Features
Resources
User Information (
ynab://user) - Get authenticated user detailsBudget List (
ynab://budgets) - List all budgets for the authenticated userBudget Details (
ynab://budgets/{budgetId}) - Get detailed information for a specific budgetAccount List (
ynab://budgets/{budgetId}/accounts) - List all accounts for a specific budgetAccount Details (
ynab://budgets/{budgetId}/accounts/{accountId}) - Get detailed information for a specific accountCategory List (
ynab://budgets/{budgetId}/categories) - List all categories for a specific budgetCategory Details (
ynab://budgets/{budgetId}/categories/{categoryId}) - Get detailed information for a specific categoryMonth List (
ynab://budgets/{budgetId}/months) - List all months for a specific budgetMonth Details (
ynab://budgets/{budgetId}/months/{month}) - Get detailed information for a specific month including category balancesMonth Category (
ynab://budgets/{budgetId}/months/{month}/categories/{categoryId}) - Get category information for a specific monthPayee List (
ynab://budgets/{budgetId}/payees) - List all payees for a specific budgetPayee Details (
ynab://budgets/{budgetId}/payees/{payeeId}) - Get detailed information for a specific payeePayee Locations (
ynab://budgets/{budgetId}/locations) - List all payee locations for a specific budgetTransaction List (
ynab://budgets/{budgetId}/transactions) - List all transactions for a specific budgetTransaction Details (
ynab://budgets/{budgetId}/transactions/{transactionId}) - Get detailed information for a specific transaction
Tools
Budget Tools
list-budgets
Input:
includeDetails(optional boolean) - Include full budget details
Output: Formatted markdown list of all budgets with name, ID, date range, currency, and last modified date
get-budget-summary
Input:
budgetId(string) - Budget ID or 'last-used' for default budget
Output: Formatted markdown with budget overview including name, date range, currency settings
Account Tools
list-accounts
Input:
budgetId(string) - Budget ID or 'last-used'includeBalance(optional boolean, default: true) - Include account balances
Output: Formatted markdown grouped by account type (On Budget, Off Budget, Closed) with balances in dollars
get-account-details
Input:
budgetId(string) - Budget ID or 'last-used'accountId(string) - Account ID
Output: Formatted markdown with account type, balances, direct import status, and notes
Category Tools
list-categories
Input:
budgetId(string) - Budget ID or 'last-used'includeBudgeted(optional boolean, default: true) - Include budgeted amounts
Output: Formatted markdown grouped by category groups showing budgeted amounts, activity, and goals
get-category-details
Input:
budgetId(string) - Budget ID or 'last-used'categoryId(string) - Category ID
Output: Formatted markdown with category group, budget amounts, goal details, and progress
Month Tools
list-months
Input:
budgetId(string) - Budget ID or 'last-used'includeDetails(optional boolean, default: true) - Include financial details
Output: Formatted markdown sorted newest first, showing Ready to Assign, budgeted, activity, income, and Age of Money
get-month-details
Input:
budgetId(string) - Budget ID or 'last-used'month(string) - Month in ISO format (e.g., '2016-12-01') or 'current'
Output: Formatted markdown with month overview and all categories grouped by category group with balances
get-month-category
Input:
budgetId(string) - Budget ID or 'last-used'month(string) - Month in ISO format (e.g., '2016-12-01') or 'current'categoryId(string) - Category ID
Output: Formatted markdown with category's budgeted, activity, and available amounts for the specific month
Payee Tools
list-payees
Input:
budgetId(string) - Budget ID or 'last-used'includeTransferPayees(optional boolean, default: true) - Include transfer payees
Output: Formatted markdown separated into Regular Payees and Transfer Payees sections with IDs and transfer account details
get-payee-details
Input:
budgetId(string) - Budget ID or 'last-used'payeeId(string) - Payee ID
Output: Formatted markdown showing payee type, transfer account details if applicable, and status
list-payee-locations
Input:
budgetId(string) - Budget ID or 'last-used'groupByPayee(optional boolean, default: true) - Group locations by payee
Output: Formatted markdown with GPS coordinates and Google Maps links for each location
Transaction Tools
list-transactions
Input:
budgetId(string) - Budget ID or 'last-used'sinceDate(optional string) - Only return transactions on or after this date (ISO format: YYYY-MM-DD)type(optional enum: 'uncategorized', 'unapproved') - Filter by transaction typeaccountId(optional string) - Filter by accountcategoryId(optional string) - Filter by categorypayeeId(optional string) - Filter by payeelimit(optional number, default: 50) - Maximum number of transactions
Output: Formatted markdown grouped by month showing date, payee, amount, account, category, status, with summary totals
get-transaction-details
Input:
budgetId(string) - Budget ID or 'last-used'transactionId(string) - Transaction ID
Output: Formatted markdown with complete transaction details including splits, transfers, import info, and flags
create-transaction
Input:
budgetId(string) - Budget ID or 'last-used'accountId(string) - Account IDdate(string) - Transaction date (ISO format: YYYY-MM-DD)amount(number) - Amount in dollars (negative for outflows)payeeId(optional string) - Payee IDpayeeName(optional string) - Payee name (creates new if doesn't exist)categoryId(optional string) - Category IDmemo(optional string) - Transaction memocleared(optional enum: 'cleared', 'uncleared', 'reconciled') - Cleared statusapproved(optional boolean) - Approval statusflagColor(optional enum: 'red', 'orange', 'yellow', 'green', 'blue', 'purple') - Flag colorimportId(optional string) - Import ID for duplicate prevention
Output: Confirmation with created transaction details
update-transaction
Input:
budgetId(string) - Budget ID or 'last-used'transactionId(string) - Transaction ID to updateAll other fields from create-transaction are optional
Output: Confirmation with updated transaction details
delete-transaction
Input:
budgetId(string) - Budget ID or 'last-used'transactionId(string) - Transaction ID to delete
Output: Confirmation of deletion with transaction summary
Reconciliation Tools
bulk-update-transaction-status
Input:
budgetId(string) - Budget ID or 'last-used'updates(array) - Array of transaction updates with:transactionId(string) - Transaction ID to updateaccountId(optional string) - New account IDpayeeId(optional string) - New payee IDpayeeName(optional string) - New payee namecategoryId(optional string) - New category IDamount(optional number) - New amount in dollarsmemo(optional string) - New memoflagColor(optional enum: 'red', 'orange', 'yellow', 'green', 'blue', 'purple') - New flag colorcleared(optional enum: 'cleared', 'uncleared', 'reconciled') - New cleared statusapproved(optional boolean) - New approved statusdate(optional string) - New date (ISO format: YYYY-MM-DD)importId(optional string) - New import IDsubtransactions(optional array) - New subtransactions (replaces existing)amount(number) - Subtransaction amount in dollarspayeeId(optional string) - Subtransaction payee IDpayeeName(optional string) - Subtransaction payee namecategoryId(optional string) - Subtransaction category IDmemo(optional string) - Subtransaction memo
Output: Comprehensive update report with transaction details, field update summary, and next steps
reconcile-account-transactions
Input:
budgetId(string) - Budget ID or 'last-used'accountId(string) - Account ID to reconcilereconciliationDate(string) - Reconciliation date (ISO format: YYYY-MM-DD)endingBalance(optional number) - Expected ending balance in dollars for verification
Output: Comprehensive reconciliation report with balance verification and transaction summary
find-transactions-for-reconciliation
Input:
budgetId(string) - Budget ID or 'last-used'accountId(optional string) - Account ID to filter bycleared(optional enum: 'cleared', 'uncleared', 'reconciled') - Filter by cleared statusapproved(optional boolean) - Filter by approved statussinceDate(optional string) - Only include transactions on or after this dateuntilDate(optional string) - Only include transactions on or before this datelimit(optional number) - Maximum number of transactions to return (default: 50)
Output: Filtered list of transactions with status breakdown and reconciliation guidance
mark-transactions-cleared
Input:
budgetId(string) - Budget ID or 'last-used'transactionIds(array of strings) - Transaction IDs to mark as clearedalsoApprove(optional boolean) - Also mark transactions as approved (default: true)
Output: Summary of cleared transactions with balance impact and next steps
reconciliation-status-report
Input:
budgetId(string) - Budget ID or 'last-used'accountIds(optional array of strings) - Specific account IDs to includeincludeReconciledTransactions(optional boolean) - Include already reconciled transactions
Output: Comprehensive report with account-by-account reconciliation status, recommendations, and workflow guidance
match-bank-transactions
Input:
budgetId(string) - Budget ID or 'last-used'accountId(string) - Account ID to match transactions forbankTransactions(array) - Array of bank transactions with:date(string) - Transaction date (ISO format: YYYY-MM-DD)amount(number) - Transaction amount in dollars (negative for outflows)payee(optional string) - Transaction payee/description
tolerance(number, default: 3) - Date range tolerance in days for matching
Output: Detailed matching report with:
Summary statistics (match rate, counts)
Matched transactions grouped by confidence level (exact, high, medium, low)
Unmatched bank transactions (missing from YNAB)
Unmatched YNAB transactions (missing from bank)
Actionable recommendations
reconcile-account-with-adjustment
Input:
budgetId(string) - Budget ID or 'last-used'accountId(string) - Account ID to reconciletargetBalance(number) - Expected ending balance in dollarsreconciliationDate(string) - Reconciliation date (ISO format: YYYY-MM-DD)createAdjustment(boolean) - Auto-create adjustment if neededadjustmentMemo(optional string) - Custom memo for adjustment
Output: Complete reconciliation summary with:
Number of transactions reconciled
Balance comparison (starting vs target vs actual)
Adjustment transaction details (if created)
Success/warning status
Next steps and tips
Special Notes:
Uses YNAB's system payee ID for reconciliation adjustments
Adjustments are categorized to "Inflow: Ready to Assign"
Only reconciles cleared/uncleared transactions (skips already reconciled)
Prompts
analyze-budget - Analyze a YNAB budget and provide insights
Related MCP server: Finance MCP
Reconciliation Workflows
The reconciliation tools support common workflows for keeping your YNAB data synchronized with your bank statements:
Daily/Weekly Reconciliation
Use
find-transactions-for-reconciliationwithcleared: "uncleared"to find new transactionsVerify transactions against your bank account or credit card activity
Use
mark-transactions-clearedto mark verified transactions as clearedUse
reconciliation-status-reportto check overall account status
Monthly Reconciliation (Bank Statement)
Use
reconciliation-status-reportto see which accounts need reconciliationUse
find-transactions-for-reconciliationto review cleared but not reconciled transactionsUse
reconcile-account-transactionswith your statement ending date and balanceReview any discrepancies and resolve them
Bulk Status Update
Find transactions needing updates:
find-transactions-for-reconciliationUpdate multiple transactions at once:
bulk-update-transaction-statusVerify changes:
reconciliation-status-report
Bank Transaction Matching
Export transactions from your bank (CSV/statement)
Format bank data as JSON array with date, amount, and optional payee
Run
match-bank-transactionsto compare with YNABReview matches, especially low-confidence ones
Import missing transactions using
create-transactionUpdate matched transactions using
bulk-update-transaction-status
Complete Reconciliation with Adjustment
Get your bank statement ending balance
Run
reconcile-account-with-adjustmentwith:The account ID
Bank statement date
Bank statement ending balance
createAdjustment: true
Review the reconciliation summary
If adjustment was created, it will appear in "Inflow: Ready to Assign"
Transaction Status States
Uncleared: New transactions that haven't been verified against bank records
Cleared: Transactions that have been verified but not yet reconciled
Reconciled: Transactions that have been included in a bank statement reconciliation
Approved: Transactions that have been reviewed and confirmed (independent of cleared status)
Output Format Notes
General Formatting
All monetary values are converted from milliunits to dollars (divided by 1000)
Dates are displayed in human-readable format
Resources return raw JSON data
Tools return formatted markdown for easy reading
Common Input Patterns
Most tools accept
'last-used'as abudgetIdto use the default budgetMonth parameters accept ISO date format (YYYY-MM-DD) or
'current'for the current monthAll IDs support auto-completion in resources
Example Tool Outputs
list-accounts example output:
# YNAB Accounts
## On Budget Accounts
### Checking Account
- Type: Checking
- ID: account-123
- Balance: $1,234.56
- Cleared Balance: $1,200.00
- Uncleared Balance: $34.56
## Off Budget Accounts
### Investment Account
- Type: Other Asset
- ID: account-456
- Balance: $50,000.00get-month-details example output:
# Month: December 2024
## Overview
- Ready to Assign: $500.00
- Total Income: $5,000.00
- Total Budgeted: $4,500.00
- Total Activity: $4,200.00
- Age of Money: 30 days
## Categories
### Bills
#### Rent
- Budgeted: $1,500.00
- Activity: $1,500.00
- Available: $0.00Installation
# Clone the repository
git clone <repository-url>
cd mcp-ynab
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
Authentication
The server requires a YNAB Personal Access Token. You can obtain one from your YNAB account settings:
Log in to YNAB
Go to Account Settings
Navigate to Developer Settings
Create a new Personal Access Token
Set the token as an environment variable:
export YNAB_ACCESS_TOKEN="your-token-here"Usage
With Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ynab": {
"command": "node",
"args": ["/path/to/mcp-ynab/dist/index.js"],
"env": {
"YNAB_ACCESS_TOKEN": "your-token-here"
}
}
}
}Standalone Usage
# Set the access token
export YNAB_ACCESS_TOKEN="your-token-here"
# Run the server
npm startDevelopment
# Run in development mode
npm run dev
# Build the project
npm run build
# Run tests (if available)
npm testExample Usage
Using Resources
Access user information: Request resource
ynab://userList all budgets: Request resource
ynab://budgetsGet specific budget: Request resource
ynab://budgets/{budget-id}List budget accounts: Request resource
ynab://budgets/{budget-id}/accountsGet specific account: Request resource
ynab://budgets/{budget-id}/accounts/{account-id}List budget categories: Request resource
ynab://budgets/{budget-id}/categoriesGet specific category: Request resource
ynab://budgets/{budget-id}/categories/{category-id}List budget months: Request resource
ynab://budgets/{budget-id}/monthsGet specific month: Request resource
ynab://budgets/{budget-id}/months/{month}(month format: ISO date, e.g.,2016-12-01)Get month category: Request resource
ynab://budgets/{budget-id}/months/{month}/categories/{category-id}(month format: ISO date, e.g.,2016-12-01)List payees: Request resource
ynab://budgets/{budget-id}/payeesGet specific payee: Request resource
ynab://budgets/{budget-id}/payees/{payee-id}List payee locations: Request resource
ynab://budgets/{budget-id}/locationsList transactions: Request resource
ynab://budgets/{budget-id}/transactionsGet specific transaction: Request resource
ynab://budgets/{budget-id}/transactions/{transaction-id}
Using Tools
List budgets: Call
list-budgetstoolGet budget summary: Call
get-budget-summarywithbudgetIdparameterList accounts: Call
list-accountswithbudgetIdparameterGet account details: Call
get-account-detailswithbudgetIdandaccountIdparametersList categories: Call
list-categorieswithbudgetIdparameterGet category details: Call
get-category-detailswithbudgetIdandcategoryIdparametersList months: Call
list-monthswithbudgetIdparameterGet month details: Call
get-month-detailswithbudgetIdandmonthparameters (month format: ISO date, e.g., '2016-12-01'; also supports 'current' for current month)Get month category: Call
get-month-categorywithbudgetId,month, andcategoryIdparameters (month format: ISO date, e.g., '2016-12-01')List payees: Call
list-payeeswithbudgetIdparameterGet payee details: Call
get-payee-detailswithbudgetIdandpayeeIdparametersList payee locations: Call
list-payee-locationswithbudgetIdparameterList transactions: Call
list-transactionswithbudgetIdand optional filtersGet transaction details: Call
get-transaction-detailswithbudgetIdandtransactionIdCreate transaction: Call
create-transactionwith transaction detailsUpdate transaction: Call
update-transactionwithtransactionIdand fields to updateDelete transaction: Call
delete-transactionwithbudgetIdandtransactionId
Using Reconciliation Tools
Get reconciliation status: Call
reconciliation-status-reportwithbudgetIdFind uncleared transactions: Call
find-transactions-for-reconciliationwithbudgetIdandcleared: "uncleared"Mark transactions as cleared: Call
mark-transactions-clearedwithbudgetIdand array oftransactionIdsReconcile account: Call
reconcile-account-transactionswithbudgetId,accountId, andreconciliationDateBulk update transaction status: Call
bulk-update-transaction-statuswithbudgetIdand array of updates
Using Prompts
Analyze budget: Use
analyze-budgetprompt to get insights about a budget
Architecture
The server follows the MCP specification with three main components:
Resources: Provide read-only access to YNAB data
Tools: Execute operations and format data
Prompts: Pre-defined conversation starters for budget analysis
Security
The server requires a valid YNAB Personal Access Token
All API calls are made over HTTPS
The token is never exposed through the MCP interface
Error messages do not contain sensitive information
Error Handling
The server gracefully handles:
Invalid or expired access tokens
Network errors
Invalid budget IDs
API rate limiting
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
License
MIT
Acknowledgments
Built with the Model Context Protocol SDK
Uses the YNAB API v1
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Multi-currency budgeting: read and update your accounts, transactions, categories and budgets.
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes personal-finance tools like accounts, transactions, spending analysis, budgets, bills, reminders, portfolio, and goals via MCP, enabling any MCP client to query financial data.-
- AlicenseNot gradedqualityDmaintenanceProvides tools for managing personal finances via MCP, including accounts, transactions, debts, savings, budgets, and asset tracking, with summaries and reporting capabilities.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to manage a local SQLite personal-finance ledger by recording income and expenses, listing transactions, aggregating spending by category, summarizing income/expense/net, and setting and tracking monthly budgets.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants and other MCP clients to manage personal finance data through LunchMoney's API, including transactions, budgets, categories, tags, accounts, recurring items, and crypto.41 npmMIT