Enables loading environment variables from a .env file for configuration, particularly for storing the YNAB Personal Access Token securely.
YNAB MCP Server
A Model Context Protocol (MCP) server for seamless integration with You Need A Budget (YNAB). This server enables AI assistants to interact with your YNAB budgets, providing powerful automation and analysis capabilities.
📦 Quick Installation (Claude Desktop)
🌟 Features
- 📊 Complete Budget Management
- View and manage multiple budgets
- Track account balances and transactions
- Monitor category spending and goals
- 💰 Transaction Control
- List and search transactions
- Update transaction details
- Manage payees and categories
- 📈 Financial Analysis
- Get comprehensive financial overviews
- Track spending patterns
- Monitor budget progress
📋 Table of Contents
- Installation
- Platform-Specific Setup
- Configuration
- Available Tools
- Usage Examples
- Development
- Contributing
- License
🚀 Installation & Usage
No installation needed when using uvx
:
For development:
🔧 Platform-Specific Setup
Claude Desktop
- Locate your configuration file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- MacOS:
- Add the YNAB MCP server configuration:
Goose
- Open Goose settings
- Navigate to the MCP Servers section
- Add a new server with:
- Name:
ynab-mcp
- Command:
uvx ynab-mcp-server
- Environment Variables:
- YNAB_PAT: your_token_here
- Name:
Other Platforms
For other MCP-compatible platforms, configure using these parameters:
- Server Name:
ynab-mcp
- Command:
uvx
- Arguments:
ynab-mcp-server
- Required Environment Variable:
YNAB_PAT
⚙️ Configuration
- Get Your YNAB Token
- Go to YNAB Developer Settings
- Create a new Personal Access Token
- Copy the token value
- Set Up EnvironmentCreate a
.env
file in your working directory:Or set the environment variable directly:
🛠️ Available Tools
Budget Management
Tool | Description |
---|---|
list-budgets | List all available YNAB budgets |
list-accounts | List all accounts for a given budget |
list-categories | List categories with budgeted amounts |
Transaction Management
Tool | Description |
---|---|
list-transactions | List account transactions |
list-monthly-transactions | List transactions by month |
update-transactions | Update transaction details |
Financial Overview
Tool | Description |
---|---|
get-financial-overview | Get current financial status |
refresh-financial-overview | Update overview with latest data |
Budget Planning
Tool | Description |
---|---|
move-budget-amount | Transfer between categories |
assign-budget-amount | Set category budget |
📝 Usage Examples
Basic Budget Overview
Category Management
Transaction Updates
🔨 Development
Local Setup
- Clone the repository:
- Install dependencies:
- Run the server:
Debugging
Use the MCP Inspector for debugging:
For local development debugging:
You can also view logs with:
Building and Publishing
👥 Contributing
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please ensure your PR:
- Follows the existing code style
- Includes appropriate tests
- Updates documentation as needed
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- YNAB API for providing the core functionality
- Model Context Protocol for enabling AI assistant integration
Tools
An MCP to give AI agents extensive knowledge of your personal finances and control of your budgeting.
- 📦 Quick Installation (Claude Desktop)
- 🌟 Features
- 📋 Table of Contents
- 🚀 Installation & Usage
- 🔧 Platform-Specific Setup
- ⚙️ Configuration
- 🛠️ Available Tools
- 📝 Usage Examples
- 🔨 Development
- 👥 Contributing
- 📄 License
- 🙏 Acknowledgments
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that lets AI assistants interact with your Lunchmoney data, enabling natural language queries about transactions, budgets, and spending patterns.Last updated -438TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that helps AI assistants manage expense-sharing for social events, enabling the creation of gatherings, tracking of expenses, and calculation of fair reimbursements among participants.Last updated -PythonApache 2.0
- -securityFlicense-qualityControl AI agents creation and modification via MCP.Last updated -257JavaScript
- AsecurityFlicenseAqualityAn MCP server that transforms AI assistants into personal chefs by providing recipe recommendations and meal planning features based on the HowToCook repository.Last updated -4389478TypeScript