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
git clone https://github.com/ntdef/ynab-mcp.git cd ynab-mcpCreate a virtual environment
uv venvActivate the virtual environment
- Windows:
venvScriptsactivate - Unix/MacOS:
source venv/bin/activate
- Windows:
Install dependencies using UV
# python -m pip install uv uv syncCopy
.env.exampleto.envand add your YNAB API tokencp .env.example .env # Edit .env with your favorite editor
Usage
Running the server
uv run ynab-mcp
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
uv run pytest
Code style
This project uses Black and isort for code formatting. To format your code:
uv run isort src tests
uv run black src tests
License
MIT License
Acknowledgements
- Some of the code was written with the assistance of aider
- YNAB API Documentation
- fastmcp by Anthropic
YNAB Budget Management Server
Project Details
- ntdef/ynab-mcp
- MIT License
- Last Updated: 5/2/2025
Recomended MCP Servers
Fantasy Premier League MCP Server
A FastMCP server that dynamically creates MCP (Model Context Protocol) servers from web API configurations. This allows you...
This MCP server integrates with your Google Drive and Google Sheets, to enable creating and modifying spreadsheets.
A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards.
Simple curl script to play aloud what you type, useful if your voice is suddenly broken.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect...
High-performance string search MCP server with automatic CPU core scaling
Model Context Protocol server for generating QR codes
A Model Context Protocol server that provides access to Shodan API functionality
MCP server hosted using Azure Functions





