Expense_Tracker_MCP
Click on "Deploy 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_MCPadd a lunch expense of $15.50 for today"
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
๐ค AI-Powered Expense Management using Model Context Protocol
๐ Overview
Expense Tracker MCP is an AI-powered financial management system built usingModel Context Protocol (MCP ).
The system allows Large Language Models to interact with expense data throughMCP tools, enabling users to:
Add expenses
Search expenses
Analyze spending patterns
Generate financial insights
Communicate with expense data using natural language
๐ง MCP Architecture
flowchart TB
USER["๐ค User"]
CLIENT["๐ MCP Client"]
SERVER["โก FastMCP Server"]
TOOLS["๐ MCP Tools"]
FASTAPI["๐ FastAPI Application"]
MONGO["๐ MongoDB Database"]
USER --> CLIENT
CLIENT --> SERVER
SERVER --> TOOLS
TOOLS --> FASTAPI
FASTAPI --> MONGO๐ Key Features
๐ธ Expense Managementโ Create expensesโ Update expensesโ Delete expensesโ Retrieve expense recordsโ Store financial history
๐ Model Context Protocol
This project implements MCP architecture:
User|MCP Client|FastMCP Server|Expense Tools|MongoDB
Related MCP server: Splitwise MCP Server
๐ ๏ธ Technology Stack
###๐ Core Development
โก MCP Framework
๐ Backend
๐ Database
๐ฆ Validation & Configuration
Pydantic v2Pydantic SettingsEnvironment Variablespython-dotenv
๐ Project Structure
Expense_Tracker/
โ
โโโ app/
โ โโโ db/
โ โโโ database.py # MongoDB connection configurations & client initialization
โ โโโ application.py # Core FastAPI application routing and logic
โ
โโโ mcp/
โ โโโ mcp_client.py # MCP Client implementation for context bridging
โ โโโ mcp_server.py # FastMCP Server registering the operational tools
โ
โโโ .env # Local environment variable configuration
โโโ .gitignore # Specified version control exclusions (e.g., venv, __pycache__ )
โโโ .python-version # Explicit python version pinning
โโโ pyproject.toml # Project metadata, dependencies, and editable tool configurations
โโโ README.md # System documentation## โ๏ธ InstallationClone repository:
git clone https://github.com/YOUR_USERNAME/Expense-Tracker-MCP.git
cd Expense-Tracker-MCP
Install dependencies:
pip install -e .๐ Environment Configuration
Create .env
MONGODB_URI=your_mongodb_connection_string
DATABASE_NAME=expense_trackerโถ๏ธ Running Application
Start MCP Server
-expense-server
or
python mcp_server.py๐ Remote MCP Server
This project also provides a remote MCP server that users can connect to:https://expense-tracker-01.fastmcp.app/mcp
API Documentation:
http://localhost:8000/docs๐ฎ Future Improvements
-Expense prediction using ML-Budget recommendation engine-Voice-based expense entry-Multi-user authentication-React dashboard-Cloud deployment-Mobile application
๐จโ๐ป Developer
Sarim Abbas
AI Engineer | Backend Developer | Agentic AI Developer
โญ Star this repository if you find it useful!
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
A Model Context Protocol server for Wix AI tools
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
- ManiloOAuthapp.manilo
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server designed for tracking and managing personal or business expenses. It enables users to log financial transactions and organize expenditure data through integrated tools.4-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI assistants to manage Splitwise expenses using natural language, with support for voice commands, smart name matching, and advanced split configurations.74MIT
- FlicenseBqualityDmaintenanceA powerful SQLite-backed expense tracking server built with the Model Context Protocol (MCP). This server allows AI agents (like Claude) to manage your personal finances by adding, deleting, and listing expenses directly from your chat interface.3-
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for tracking personal expenses. This server provides tools to add, list, and summarize expenses, utilizing a local SQLite database for storage.3-