An MCP server for the YNAB (You Need A Budget) API
Project description
YNAB MCP Server
An MCP (Model Context Protocol) server for the YNAB (You Need A Budget) API, built with FastMCP.
This server automatically exposes all YNAB API endpoints as MCP tools, allowing AI assistants like Claude to interact with your YNAB budgets, accounts, transactions, and more.
Prerequisites
- uv package manager
- A YNAB account with API access
Setup
Get Your YNAB API Token
- Log in to your YNAB account at app.ynab.com
- Go to Account Settings → Developer Settings
- Click New Token under "Personal Access Tokens"
- Give your token a name and click Generate
- Copy the token (you won't be able to see it again!)
Add the Server to Your MCP Client
The published package runs with uvx ynab-mcp-tools. uvx downloads it from
PyPI and runs it in an isolated environment, so you do not need to clone this
repository or manage a virtualenv.
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": "uvx",
"args": ["ynab-mcp-tools"],
"env": {
"YNAB_API_TOKEN": "your-token-here"
}
}
}
}
With Claude Code
Use Claude Code's MCP CLI. The --
separates Claude's options from the server command.
For all projects (user scope):
claude mcp add ynab --scope user \
-e "YNAB_API_TOKEN=your-token-here" \
-- uvx ynab-mcp-tools
For the current directory only, omit --scope user or use --scope local. Use claude mcp list to verify and claude mcp remove ynab --scope user (or local) to uninstall.
With Cursor
Add the following to your Cursor MCP settings (~/.cursor/mcp.json for global or .cursor/mcp.json in your project):
{
"mcpServers": {
"ynab": {
"command": "uvx",
"args": ["ynab-mcp-tools"],
"env": {
"YNAB_API_TOKEN": "your-token-here"
}
}
}
}
With OpenCode
Add the following to your OpenCode configuration file (~/.config/opencode/opencode.json):
{
"mcp": {
"ynab": {
"type": "local",
"command": ["uvx", "ynab-mcp-tools"],
"enabled": true,
"environment": {
"YNAB_API_TOKEN": "your-token-here"
}
}
}
}
Available Tools
The server automatically exposes all YNAB API endpoints as MCP tools. Here are some of the available operations:
User
getUser- Get authenticated user information
Budgets
getBudgets- List all budgetsgetBudgetById- Get a single budget with all related entitiesgetBudgetSettingsById- Get budget settings
Accounts
getAccounts- List all accounts for a budgetgetAccountById- Get a single accountcreateAccount- Create a new account
Categories
getCategories- List all categories for a budgetgetCategoryById- Get a single categoryupdateCategory- Update a categorygetMonthCategoryById- Get a category for a specific monthupdateMonthCategory- Update a category for a specific month
Transactions
getTransactions- List transactionsgetTransactionById- Get a single transactioncreateTransaction- Create a new transactionupdateTransaction- Update a transactiondeleteTransaction- Delete a transactionimportTransactions- Import transactionsgetTransactionsByAccount- List transactions for an accountgetTransactionsByCategory- List transactions for a categorygetTransactionsByPayee- List transactions for a payee
Payees
getPayees- List all payeesgetPayeeById- Get a single payeeupdatePayee- Update a payee
Scheduled Transactions
getScheduledTransactions- List scheduled transactionsgetScheduledTransactionById- Get a single scheduled transactioncreateScheduledTransaction- Create a new scheduled transactionupdateScheduledTransaction- Update a scheduled transaction
Months
getBudgetMonths- List budget monthsgetBudgetMonth- Get a single budget month
Example Usage
Once connected, you can ask Claude things like:
- "Show me my YNAB budgets"
- "What's my current balance in my checking account?"
- "List my transactions from last week"
- "Create a transaction for $50 at the grocery store"
- "How much have I spent on dining out this month?"
Creating Custom Skills for Your YNAB Workflow
YNAB workflows are personal. Everyone has their own conventions for handling transactions, categorizing expenses, and managing duplicates. This repo includes a skill system that lets you encode your personal conventions so Claude can learn and apply them consistently.
Step 1: Explore Your Budget
Start by asking Claude to do something useful with your YNAB data:
"Show me all my unapproved transactions"
"Help me categorize my uncategorized transactions"
"Find duplicate transactions in my budget"
Work through the task interactively. As you do, you'll naturally develop conventions. For example:
- "Venmo transactions always have a matching withdrawal in my checking account - I delete the Venmo one and keep the bank record"
- "Transactions from 'AMZN' should be categorized as 'Shopping' unless the memo mentions 'Kindle'"
- "Any transaction over $500 should be flagged for review"
Step 2: Create a Skill to Encode Your Conventions
Once you've established patterns you want to reuse, create a skill to encode them. This repo includes the skill-creator skill in .skills/skill-creator/ to help you build custom skills.
Ask Claude:
"Load the skill-creator skill and help me create a ynab skill that encodes
the conventions we just used for processing transactions"
The skill-creator will guide you through:
- Identifying the reusable patterns from your workflow
- Creating a SKILL.md file with your conventions
- Structuring the skill for future use
Step 3: Use Your Skills
Once created, your skills live in .skills/ and Claude will automatically apply them when relevant. You can:
- Add more conventions as you discover them
- Share skills with others who have similar YNAB setups
- Build on the included examples
Included Skills
.skills/skill-creator/- Claude's official guide for creating new skills, included for convenience
Resources
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ynab_mcp_tools-0.1.0.tar.gz.
File metadata
- Download URL: ynab_mcp_tools-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f19197e56d413a20a48c5f07f2a5c227bc9b2b3ca449b29199c6dc909895d66
|
|
| MD5 |
79e323c36527057e67e19db30bd36c9b
|
|
| BLAKE2b-256 |
20f8bbca6d20e2609855f0e7bc712592a684516f18a9e63810ef6832a582afcf
|
File details
Details for the file ynab_mcp_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ynab_mcp_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f52babb91380d452631f9e5c1285e22629e970552744c092331e27397df0cc6
|
|
| MD5 |
5b33ae7cc25e01e4b45a814ccf680b61
|
|
| BLAKE2b-256 |
a535a19cb6747b3bdfd0abca10c833b06c7ba4ef17f6f32e2c8cc5f05380e353
|