YNAB MCP Server
A Model Context Protocol (MCP) server for interacting with YNAB (You Need A Budget) via their API.
Features
- Get budgets, accounts, and categories
- Get, create and update transactions
- Create new categories
- Update budgeted amounts for categories
- Get budget summaries
Prerequisites
- Python 3.13 or higher
- A YNAB account with an API token (Get your token here)
- UV package manager (optional but recommended)
Installation
- Clone this repository
- Create a virtual environment
- Activate the virtual environment
- Windows:
- Unix/MacOS:
- Windows:
- Install dependencies using UV
- Copy
.env.example
to.env
and add your YNAB API token
Usage
Running the server
The server will start in stdio mode, so you won't see any output.
Available tools
The YNAB MCP Server provides the following tools:
Budget management
get_budgets
: Retrieve all budgets for the authenticated userget_budget_summary
: Get a summary of the budget, optionally for a specific month
Account management
get_accounts
: Retrieve all accounts for a specific budget
Category management
get_categories
: Retrieve all categories for a specific budgetcreate_category
: Create a new category in the specified budget groupupdate_category_budgeted
: Update the budgeted amount for a category in a specific month
Transaction management
get_transactions
: Retrieve transactions for a specific budget, optionally filtered by date, account, or categorycreate_transaction
: Create a new transaction in the specified budgetupdate_transaction
: Update one or more fields of a specific transaction
Development
Running tests
Code style
This project uses Black and isort for code formatting. To format your code:
License
MIT License
Acknowledgements
- Some of the code was written with the assistance of aider
- YNAB API Documentation
- fastmcp by Anthropic
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A 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.
Related MCP Servers
- AsecurityFlicenseAqualityAn 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.Last updated -101Python
- -securityAlicense-qualityA Model Context Protocol server that helps track expenses and calculate reimbursements for social events, making it easy to settle balances between friends.Last updated -PythonApache 2.0
- -securityFlicense-qualityProvides access to YNAB (You Need A Budget) functionality through the Model Context Protocol, allowing users to view account balances, access transaction data, and create new transactions.Last updated -Python
- AsecurityAlicenseAqualityA 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.Last updated -1151TypeScriptMIT License