Skip to main content
Glama
EESHAN-ANAND

expense-tracker-postgres-mcp

by EESHAN-ANAND

expense-tracker-postgres-mcp

The persistent, remote version of the expense tracker. Backed by Neon Postgres, one generic execute_sql tool. Add expenses, edit/delete a specific row, and run analytics (GROUP BY category or date) — all in plain English.

Table expense_table

id (auto), flow ('gave'/'received'), date, amount, category (grocery/rent/travel/hygiene/luxury/food/others), note.

Created automatically on startup if it doesn't exist. No seed — data was migrated separately.

Related MCP server: Expense Tracker MCP Server

Guardrail

  • Allowed: SELECT, INSERT, UPDATE, DELETE, ALTER

  • Blocked (at all costs): CREATE, DROP, TRUNCATE, and multi-statement chaining

Setup

cd ~/Documents/Claude/expense-tracker-postgres-mcp
uv add fastmcp "psycopg[binary]" python-dotenv
cp .env.example .env        # paste your Neon DATABASE_URL (project with expense_table)
uv run main.py              # ensures the table exists; serves http://127.0.0.1:8000/mcp

Deploy to FastMCP Cloud

  1. uv lock, then push main.py, pyproject.toml, uv.lock to GitHub.

  2. On fastmcp.cloud: entrypoint main.py, Requirements uv.lock, env var DATABASE_URL = <your Neon connection string>.

  3. Deploy, then add the connector URL in Claude (desktop + mobile).

Example asks

  • "add ₹40 for chai today" → INSERT

  • "total spending this month by category" → SELECT ... GROUP BY category

  • "delete the misc ₹15 entry" → DELETE ... WHERE id = 30

  • "how much on food vs rent in July?" → SELECT ... GROUP BY category

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to manage personal expenses through natural conversation, supporting expense tracking, categorization, filtering, and financial summaries. Uses SQLite database to store expense records with full CRUD operations for comprehensive personal finance management.
    Last updated
    1
  • F
    license
    C
    quality
    D
    maintenance
    Enables personal expense management with SQLite storage, allowing users to add, update, delete, list, and summarize expenses by category through natural language interactions.
    Last updated
    5
  • F
    license
    C
    quality
    D
    maintenance
    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.
    Last updated
    12

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/EESHAN-ANAND/expense-tracker-postgres-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server