Math I Choose to Ignore MCP Server
AI-powered expense tracking MCP server that connects LLM clients to PostgreSQL for natural language expense management.
README
Math I Choose to Ignore (MCP Server)
Because your bank account won't ignore it forever.
Math I Choose to Ignore is an AI-powered expense tracking server built using the Model Context Protocol (MCP). It connects LLM clients (like Claude Desktop) directly to your PostgreSQL database, transforming your AI assistant into a personal financial analyst that can track, categorize, summarize, and manage your spending through natural language.
Features
- Natural Language Ledger: Add, edit, delete, and query your expenses just by chatting with Claude.
- Robust PostgreSQL Integration: Uses strict financial schema design (
NUMERIC(10,2)for currency precision, nativeDATEtypes, andSERIALprimary keys). - Safe Dynamic Querying: Built-in SQL injection prevention using parameterized queries and dynamic condition building.
- Built with FastMCP: Exposes both MCP Tools (for database actions) and MCP Resources (for read-only context like expense categories).
- Isolated Environment: Clean dependency management using
uv.
Tech Stack
- Language: Python
- MCP Framework:
fastmcp - Database: PostgreSQL (
psycopg/psycopg2) - Package Manager:
uv
Getting Started
1. Prerequisites
- Python 3.10+
- uv package manager
- PostgreSQL installed and running
- Claude Desktop (for client integration)
2. Installation & Setup
Clone the repository and install dependencies:
git clone [https://github.com/yourusername/math-i-choose-to-ignore.git](https://github.com/yourusername/math-i-choose-to-ignore.git)
cd math-i-choose-to-ignore
uv venv
uv sync
Database Configuration
DB_URL = "dbname=yourdbname user=yourusername password=yourpassword host=localhost port=5432"
Testing with MCP Inspector
uv run fastmcp dev inspector main.py
Claude Desktop Integration
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"Math I Choose to Ignore": {
"command": "C:\\Users\\YourUsername\\.local\\bin\\uv.exe",
"args": [
"--directory",
"C:\\Users\\YourUsername\\Desktop\\MCP\\math_i_choose_to_ignore",
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"C:\\Users\\YourUsername\\Desktop\\MCP\\math_i_choose_to_ignore\\main.py"
]
}
}
}
Important: After updating the JSON file, fully quit Claude Desktop from your Windows system tray and restart it.
Available MCP Tools And Resources
Tools (Actions)
| Tool | Description |
|---|---|
add_expense |
Adds a new expense with date, amount, category, subcategory, and optional notes. |
list_exp |
Lists all expenses within an inclusive YYYY-MM-DD date range. |
summarize |
Groups and sums expenses by category over a date range (optional category filter). |
edit_exp |
Updates an existing expense amount or record. |
delete_exp |
Safely removes an expense entry from the ledger. |
Resources (Read-Only Context)
| Resource URI | Description |
|---|---|
expense://categories |
Exposes standard budget categories from a local JSON file so the AI knows valid categorization options. |
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.