Local MCP Server Expense Tracker
A lightweight local MCP server that enables users to add, list, edit, and delete expenses via SQLite database through natural language in MCP-compatible clients.
README
Local MCP Server Expense Tracker
A lightweight, local Model Context Protocol (MCP) server built with FastMCP and SQLite to manage expenses. This server enables MCP-compatible clients (like Claude Desktop) to add, list, edit, and delete expenses directly from chat using a local database.
Features
- SQLite Database: Self-contained database (
Expense.db) created dynamically in the same directory. - Full CRUD operations:
add_expense: Add a new expense (amount, category, date, description).list_expenses: Fetch all expenses stored in the database.edit_expense: Modify an existing expense record by ID.delete_expense: Permanently delete an expense record by ID.
Prerequisites
- Python 3.10+
- uv (recommended Python package installer/runner)
Installation & Running
1. Run in Development Mode (Inspector)
To run the server and inspect/test the tools using the FastMCP web inspector:
uv run fastmcp dev inspector expense_tracker.py
2. Run the MCP Server
To start the server directly:
uv run fastmcp run expense_tracker.py
3. Install in Claude Desktop
To automatically register the server with your local Claude Desktop configuration:
uv run fastmcp install claude-desktop expense_tracker.py
4. Windows Auto-Sync & Path Fix (Optional)
If you are using the Microsoft Store version of Claude Desktop on Windows, the app is sandboxed and might fail to find uv in its PATH or fail to load the standard configuration.
You can run the included PowerShell script to fix the paths and sync configuration:
.\sync_mcp.ps1
This script:
- Resolves the absolute path of
uv.exe. - Syncs the configurations to Claude's sandboxed local packages directories.
- Restarts Claude Desktop automatically.
Database Schema
The SQLite database contains a table named expenses with the following schema:
id: INTEGER (Primary Key, Auto-increment)amount: REAL (Not Null)category: TEXT (Not Null)date: DATE (Not Null)description: TEXT (Optional)
License
MIT License
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.
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.
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.
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.