Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Expense Tracker MCP ServerHow much do I have left in my groceries budget for this month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Expense Tracker MCP Server
AI-powered budgeting, smart expense tracking, and affordability insights using the Model Context Protocol (MCP).
The Expense Tracker MCP Server provides a complete financial tracking engine that integrates budgeting, expense ingestion, smart category detection, and affordability analyticsβall via the Model Context Protocol so AI assistants can interact with your financial data safely and intelligently.
π Features
β Budget Management
Create total-only or category-based monthly budgets
Validate category allocations and auto-suggest corrections
Convert budgets from total-only β category-mode
Graceful error handling and flexible month parsing
β Expense Management
Add expenses with smart category & subcategory detection
Auto date parsing ("yesterday", "next Monday", "Jan 5")
Duplicate detection and budget impact analysis
Bulk add expenses (NLP friendly, validated, error-tolerant)
Update & delete expenses with validation & safety prompts
β Affordability Engine
Predict affordability before adding expenses
Total-budget and category-budget aware
Impact percentage + status levels
Consistent logic across all modules
β Insights & Analytics
Summaries by month, category, or date ranges
Remaining budget calculations and trend extraction
Days remaining in month tracking
Human-readable status indicators
β Smart Category Detection
AI-powered heuristics for auto-category assignment
Keyword extraction and confidence-based assignment
Fallback suggestions when uncertain
Works for both bulk and single expenses
β Human-Friendly Design
Suggestions instead of hard errors
Clarification prompts and auto-fixes for common mistakes
Safe delete operations with confirmation
Full MCP-compatible error handling
ποΈ Project Structure
βοΈ Installation & Setup
1. Clone the Repository
2. Create and Activate a Virtual Environment
3. Install Dependencies
4. Initialize the Database
The server automatically initializes the SQLite database on startupβno manual setup required.
5. Run the Server
For Claude Desktop integration:
For testing/development:
π Claude Desktop Integration
To use this server with Claude Desktop, add the following to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Replace /absolute/path/to/ with your actual path, then restart Claude Desktop.
π§° Available Tools
πΉ Budget Tools
Tool | Description |
| Set total or category-based budgets |
| Check remaining money by month/category |
| View all budget configurations |
| Transform simple budgets into category budgets |
πΉ Expense Tools
Tool | Description |
| Add expenses with smart category detection |
| Add multiple expenses at once (validated & robust) |
| Safely update amount/category/date/description |
| Safe delete with confirmation |
| Get rules for categories/subcategories |
πΉ Affordability Tools
Tool | Description |
| Predict impact before adding an expense |
πΉ Insights Tools
Tool | Description |
| Summaries of spending by month |
| Category-level insights |
| Insights with days remaining |
πΉ Search Tools
Tool | Description |
| Query expenses by text/category/date |
| Find budgets easily |
| Intelligent search ("What did I spend on food last week?") |
π§ͺ Testing
To ensure module compatibility and catch issues early:
Our tests verify that all modules load without import errors, validate API shapes, and catch schema issues before deployment.
π― Design Philosophy
β Human-First UX
Errors guide users with suggestions rather than blocking them completely.
β Strict Tool API Discipline
MCP-safe signatures (no **kwargs), predictable schemas, and consistent behavior.
β Separation of Concerns
modules/β Conversational logic and MCP tool implementationsutils/β Pure core business logicserver.pyβ MCP integration layer
β Extensible Architecture
Adding new tools or insights is straightforward thanks to the modular design.
π Future Enhancements
Machine learningβbased category predictions
OCR receipt scanning β auto expense import
Real-time spending limit notifications
Expense tagging system
Multi-user support
CSV/Excel bulk import tools
Auto-recurring expenses (rent, subscriptions)
Budget forecasting and projections
Integration with banking APIs
Mobile app companion
π¬ Contributing
We welcome contributions! Feel free to open issues or pull requests to:
Add new features
Improve category detection heuristics
Suggest new insights and analytics
Expand test coverage
Improve documentation
π License
[Add your license here - MIT, Apache 2.0, etc.]
π§ About
This project was built to serve as the backend brain for AI budgeting assistants using the Model Context Protocol. It emphasizes:
Reliability β Robust error handling and validation
Explainability β Clear feedback and suggestions
Graceful Handling β User-friendly error messages
Human-Friendly Responses β Natural language interactions
Your server is now one of the most feature-rich MCP financial engines available, ready to power intelligent personal finance assistants.
π Acknowledgments
Built with FastMCP and powered by the Model Context Protocol.