MCP YNAB Server
A Model Context Protocol (MCP) server for integrating with You Need A Budget (YNAB) API.
Description
This MCP server provides a bridge between AI assistants and the YNAB budgeting application, allowing for seamless budget management and financial data access through conversational interfaces.
Features
- Tools: Placeholder tools for YNAB operations (to be implemented)
- Resources: Access to YNAB budget data (to be implemented)
- Prompts: Budget-related prompt templates (to be implemented)
Installation
Clone this repository:
git clone https://github.com/richdooz/mcp-ynab.git cd mcp-ynab
Install dependencies:
npm install
Set up environment variables:
cp .env.example .env # Edit .env with your YNAB API key and other configuration
Configuration
Create a .env
file based on .env.example
and configure the following:
YNAB_API_KEY
: Your YNAB Personal Access TokenYNAB_BUDGET_ID
: (Optional) Specific budget ID to target- Other configuration options as needed
Usage
Development
npm run dev
Production
npm start
As an MCP Server
This server is designed to be used with MCP-compatible clients. Configure your MCP client to use this server:
{
"mcpServers": {
"ynab": {
"command": "node",
"args": ["path/to/mcp-ynab/src/index.js"]
}
}
}
Development
This is currently a placeholder implementation. The following areas need development:
Tools to Implement
- Budget retrieval
- Account management
- Transaction operations
- Category management
- Goal tracking
Resources to Implement
- Budget summaries
- Account balances
- Transaction histories
- Category spending reports
Prompts to Implement
- Budget analysis prompts
- Spending advice templates
- Financial goal setting
API Reference
Tools
Currently includes placeholder tools. Real YNAB integration tools will be added.
Resources
Currently includes placeholder resources. Real YNAB data resources will be added.
Prompts
Currently includes placeholder prompts. Real budget-related prompts will be added.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details
Requirements
- Node.js >= 18.0.0
- YNAB Personal Access Token
- MCP-compatible client
Support
For issues and questions, please use the GitHub issue tracker.