ExpenseTracker MCP Server
Enables AI assistants to manage personal finances by storing, analyzing, and exporting expense data using a persistent PostgreSQL database. Supports adding/editing expenses, generating spending summaries, detecting top categories, and creating monthly reports.
README
ExpenseTracker MCP Server
A production-ready Model Context Protocol (MCP) server that turns your AI assistant into a persistent personal finance manager using PostgreSQL.
This project allows Claude Desktop or any MCP-enabled agent to securely store, analyze, and export expense data using real database transactions instead of chat memory.
What Is It?
ExpenseTracker MCP is a local backend service exposing structured financial tools to AI agents.
It enables your assistant to:
- Store expenses permanently
- Edit and delete past records
- Summarize spending patterns
- Detect top spending categories
- Generate monthly reports
- Export data for accounting or tax use
How It Works
- Claude Desktop sends a tool request using MCP.
- ExpenseTracker MCP receives the request.
- The server executes the database operation in PostgreSQL.
- Results are returned to Claude as structured JSON.
- Logs are written to
expense_tracker.log.
The AI never invents data — it only queries your real database.
How To Run Using uv
Install dependencies
uv add fastmcp psycopg2-binary python-dotenv
Create .env file
DB_HOST=localhost
DB_PORT=5432
DB_NAME=expense_tracker
DB_USER=expense_user
DB_PASSWORD=your_password
Start MCP server
For Testing
uv run fastmcp dev main.py
For Run
uv run fastmcp run main.py
How to connect to Claude Desktop
uv run fastmcp install claude-desktop main.py
Restart Claude Desktop
Contribution
Contributions are welcome.
- Fork the repository
- Create a feature branch
- Add or improve MCP tools or documentation
- Submit a pull request with a clear description of your changes
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.