MCP YNAB Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP YNAB Server show me my checking account balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP YNAB Server
An MCP server implementation that provides access to YNAB (You Need A Budget) functionality through the Model Context Protocol.
Features
View account balances and transactions
Create new transactions
Access YNAB data through standardized MCP resources
Related MCP server: YNAB MCP Server
Installation
uv pip install -e .Configuration
The server requires a YNAB API key to function. You can obtain one from your YNAB Developer Settings.
The API key can be provided through:
Environment variable:
YNAB_API_KEY=your_api_keyMCP secret management system
.envfile in project root
Usage
Running the Server
# Development mode with hot reload and browser launch
task dev
# Production install for Claude Desktop, Goose, or any other MCP-supported environment
task installAvailable Resources
ynab://accounts- List all YNAB accountsynab://transactions/{account_id}- Get recent transactions for a specific account
Available Tools
create_transaction- Create a new transactionget_account_balance- Get the current balance of an account
Example Usage
# Create a new transaction
result = await create_transaction(
account_id="your_account_id",
amount=42.50, # in dollars
payee_name="Coffee Shop",
category_name="Dining Out",
memo="Morning coffee"
)
# Get account balance
balance = await get_account_balance("your_account_id")
# List accounts
accounts = await ctx.read_resource("ynab://accounts")
# Get recent transactions
transactions = await ctx.read_resource(f"ynab://transactions/{account_id}")Development
# Install dependencies (uses uv)
task deps
# Run all tests including integration tests (you will need a YNAB API key for this)
task test:all
# Generate coverage report
task coverage
# Format and lint code
task fmt # Should add this to TaskfileProject Tasks
This project uses a Taskfile for common operations. Key commands:
task dev # Start dev server with auto-reload
task test # Run unit tests
task coverage # Generate test coverage report
task install # Install production build
task deps # Synchronize dependenciesSee Taskfile.yml for all available tasks.
Available Tools
10 toolscache_categoriesC
Cache all categories for a given YNAB budget ID.
Inputs: budget_id (required).
create_transactionC
Create a new transaction in YNAB.
Inputs: account_id (required), amount (required), payee_name (required), category_name, +1 more.
_find_transaction_by_idC
Find a transaction by its ID and ID type.
Inputs: id_type (required), transaction_id (required), transactions (required).
get_account_balanceC
Get the current balance of a YNAB account (in dollars).
Inputs: account_id (required).
get_accountsC
List all YNAB accounts in a specific budget in Markdown format.
Inputs: budget_id (required).
get_budgetsB
List all YNAB budgets in Markdown format.
Inputs: no named parameters.
get_categoriesB
List all transaction categories for a given YNAB budget in Markdown format.
Inputs: budget_id (required).
get_transactionsC
Get recent transactions for a specific account in a specific budget.
Inputs: account_id (required), budget_id (required).
get_transactions_needing_attentionC
List transactions that need attention based on specified filter type in a YNAB budget.
Inputs: budget_id (required), days_back, filter_type.
set_preferred_budget_idC
Set the preferred YNAB budget ID.
Inputs: budget_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes, but there is some potential overlap between 'get_transactions' and 'get_transactions_needing_attention', as the latter could be seen as a filtered version of the former. However, their descriptions clarify different use cases, so confusion is minimal.
The naming is mixed with some inconsistencies: most tools use a verb_noun pattern (e.g., 'create_transaction', 'get_accounts'), but '_find_transaction_by_id' uses a leading underscore and a different verb style, and 'cache_categories' uses 'cache' instead of 'get' or 'list'. This creates a readable but not fully consistent convention.
With 10 tools, this server is well-scoped for managing YNAB budgets, covering core operations like listing budgets, accounts, categories, and transactions, as well as creating transactions and setting preferences. Each tool serves a clear purpose without being overwhelming.
The tool set provides good coverage for YNAB interactions, including CRUD-like operations (e.g., create transaction, get various resources) and utility functions (e.g., cache categories, set preferred budget). Minor gaps might include updating or deleting transactions, but agents can likely work around this with the available tools.
Related MCP Connectors
Ask your AI about your own accounts, debts, budgets and goals. OAuth sign-in, read-only by default.
Read your accounts, budgets and net worth, and draft changes you confirm.
Multi-currency budgeting: read and update your accounts, transactions, categories and budgets.
The budget app your AI agent can use. Check budgets and log spending, with no bank logins.
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
- AlicenseAqualityAmaintenanceA Model Context Protocol server that enables AI-powered interaction with YNAB (You Need A Budget) data, allowing users to query their budgets through conversational interfaces.23513 npm171MIT
- 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 gradedqualityCmaintenanceA Model Context Protocol server that enables Claude Code to interact with You Need A Budget (YNAB) accounts, providing API access for budget management, transaction tracking, and financial insights through OAuth authentication.16MIT