Expense Tracker MCP Server
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 ServerAdd a $25 dinner expense to Restaurant, paid by credit card"
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
A blazing-fast, AI-native Expense Tracker built as an MCP (Model Context Protocol) Server using FastMCP and SQLite.
Plug it directly into Claude Desktop, Cursor, or any MCP-compatible AI client ā let your AI manage your finances for you.
š Table of Contents
Related MCP server: Expense Tracker MCP Server
š¤ What is MCP?
The Model Context Protocol (MCP) is an open standard by Anthropic that allows AI models (like Claude) to securely interact with external tools, APIs, and data sources. This project exposes expense-tracking capabilities as MCP tools, meaning you can literally tell Claude:
"Add an expense: Coffee, $4.50, Food & Drink, Cash, 2026-08-02"
...and it will call this server and record it in your local SQLite database ā no UI needed.
⨠Features
š Add Expenses ā Record expenses with title, amount, category, payment method, date, and optional description
š List Expenses ā Retrieve all stored expenses as structured data
šļø Persistent SQLite Storage ā Auto-creates a local
expenses.dbdatabase on first runā” FastMCP Powered ā Minimal boilerplate, maximum capability
š Built-in Inspector ā Visual tool inspector for debugging and testing
š MCP-Compatible ā Works with Claude Desktop, Cursor, and any MCP client
š Project Structure
expense_tracker_mcp_server/
āāā expense_mcp_server.py # šÆ Main MCP server ā all tools defined here
āāā pyproject.toml # Project metadata & dependencies
āāā uv.lock # Locked dependency versions
āāā .python-version # Python version pin
āāā .gitignore # Git ignore rules
āāā src/
ā āāā expense_tracker_mcp_server/
ā āāā __init__.py # Package entry point
āāā README.md # You are here!š ļø Prerequisites
Make sure you have the following installed:
Python 3.11+
pip (comes with Python)
uv ā Fast Python package manager
š Installation
Step 1 ā Clone the Repository
git clone https://github.com/talha963/expense_mcp_server.git
cd expense_mcp_serverStep 2 ā Install uv
pip install uvStep 3 ā Initialize the Project with uv
uv init .Step 4 ā Install FastMCP
# Via pip (global)
pip install fastmcp
# OR via uv (recommended ā adds to project)
uv add fastmcpStep 5 ā Sync Dependencies
uv syncā¶ļø Running the Server
Option 1 ā Run directly with Python
python expense_mcp_server.pyStarts an HTTP server on
http://0.0.0.0:8000
Option 2 ā Run via uv
uv run expense_mcp_server.pyOption 3 ā Run via FastMCP CLI (Recommended for MCP clients)
uv run --active fastmcp run expense_mcp_server.pyš§ Available Tools
The server exposes the following MCP tools that AI models can call:
add_expense
Adds a new expense entry to the database.
Parameter | Type | Required | Description |
| string | ā | Name/title of the expense |
| float | ā | Amount spent (e.g. |
| string | ā | Category (e.g. |
| string | ā | e.g. |
| string | ā | Date in |
| string | ā | Optional notes about the expense |
Example response:
{
"success": true,
"expense_id": 1,
"message": "Expense added successfully."
}list_expenses
Returns all recorded expenses from the database.
No parameters required.
Example response:
[
{
"id": 1,
"title": "Coffee",
"amount": 4.5,
"category": "Food & Drink",
"payment_method": "Cash",
"expense_date": "2026-08-02",
"description": "Morning coffee at the office"
}
]š„ļø Connecting to Claude Desktop
To use this server with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"expense-tracker": {
"command": "uv",
"args": [
"run",
"--active",
"fastmcp",
"run",
"/absolute/path/to/expense_mcp_server.py"
]
}
}
}Config file location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
After saving, restart Claude Desktop and the Expense Tracker tools will appear automatically.
š Development & Inspection
Use the FastMCP Inspector to visually test and explore your tools in the browser:
uv run --active fastmcp dev expense_mcp_server.pyThis opens an interactive web UI where you can:
See all registered tools
Call tools manually with test inputs
Inspect request/response payloads
š§° Tech Stack
Technology | Purpose |
MCP server framework | |
Lightweight persistent storage | |
Ultra-fast Python package manager | |
Python 3.11+ | Runtime |
š¤ Author
Talha ā @talha963
š License
This project is licensed under the MIT License ā feel free to use, modify, and distribute.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceMCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.Last updated51
- Flicense-qualityDmaintenanceA 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.Last updated
- Flicense-qualityDmaintenanceA local MCP server for tracking personal expenses using SQLite, enabling users to add, list, and summarize expenses via natural language.Last updated
- Flicense-qualityCmaintenanceAn MCP server that enables any MCP-compatible client to add, list, and summarize expenses through natural conversation, using FastMCP and aiosqlite for async database operations.Last updated
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
MCP server for Gainium ā manage trading bots, deals, and balances via AI assistants
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/talha963/expense_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server