Expense MCP
Expense MCP
Open-Source-Ausgaben-Tracker mit zwei Teilen:
Ein FastMCP-Server, der Ausgaben in Postgres (Supabase) speichert.
Eine Expo-Android-App, die als MCP-Host fungiert. Du kannst eine Ausgabe sprechen oder tippen; Claude ruft die MCP-Tools für dich auf.
Live-MCP-Endpunkt:
https://indirect-olive-catshark.fastmcp.app/mcpRepo: github.com/sahaniaditya/expense-mcp
Funktionen
add_expense— speichert einen Betrag, eine Kategorie, ein Datum und eine optionale Beschreibungget_expenses— listet Ausgaben in einem Datumsbereich aufdata://categories— Lebensmittel, Transport, Bildung, Unterhaltung, Gesundheit, SonstigesSpracheingabe auf Android („Ich habe 250 für Lebensmittel ausgegeben“)
Horizon / FastMCP Cloud OAuth für den Remote-Server
GitHub-Actions-Workflow, der eine eigenständige APK erstellt
Related MCP server: Expense Tracker MCP
Architektur
Android app (MCP host)
→ Claude (Anthropic API)
→ FastMCP Cloud / local MCP server
→ Supabase PostgresDie Telefon-App kommuniziert nicht direkt mit der Datenbank. Claude entscheidet, welches Tool aufgerufen wird; die App führt dieses Tool gegen den MCP-Server aus.
MCP-Server
Voraussetzungen
Python 3.14+
Eine Postgres-Datenbank (Supabase funktioniert)
Datenbank
Erstelle eine expenses-Tabelle:
create table if not exists expenses (
id uuid primary key,
price integer not null,
category text not null,
date timestamptz not null,
description text
);Umgebung
Kopiere .env.example zu .env und setze deinen Verbindungsstring:
SUPABASE_URL=postgresql://postgres:YOUR_PASSWORD@db.YOUR_PROJECT.supabase.co:5432/postgresCommite niemals .env.
Lokal ausführen
uv sync
uv run python main.pyDer HTTP-MCP-Endpunkt ist http://127.0.0.1:8000/mcp.
Inspector:
uv run fastmcp dev inspector main.pyBereitstellen
Pushe dieses Repo zu GitHub und erstelle dann ein Projekt auf Prefect Horizon / FastMCP Cloud mit dem Einstiegspunkt main.py:mcp. Füge SUPABASE_URL als Secret in den Deployment-Einstellungen hinzu.
Clients verbinden sich mit:
https://YOUR-PROJECT.fastmcp.app/mcpDie Horizon-Authentifizierung ist standardmäßig aktiviert. Verwende einen Horizon-API-Schlüssel (fmcp_...) oder schließe die OAuth-Anmeldung von einem Client ab.
Android-App
Der Quellcode befindet sich in mobile/.
Mit Expo Go ausprobieren (Entwicklung)
Expo Go aus dem Play Store muss SDK 54 entsprechen.
cd mobile
npm install
npx expo startDu benötigst weiterhin einen Computer, auf dem Metro läuft. Für eine reine Telefoninstallation verwende die APK.
App-Einrichtung
Öffne Connect.
Bestätige die FastMCP-Cloud-URL (für den gehosteten Server bereits vorausgefüllt).
Füge einen Anthropic-API-Schlüssel ein.
Tippe auf Sign in and connect und schließe die Horizon-Anmeldung ab (oder füge einen
fmcp_-API-Schlüssel ein).Verwende Speak oder Add.
Die App speichert die Sitzung und verbindet sich beim nächsten Start erneut.
Eine APK erstellen
GitHub Actions erstellt eine Release-APK (JS-Bundle enthalten, kein Metro erforderlich):
Pushe zu
mainoderapk-github-actionsoder führe den Android-APK-Workflow über den Actions-Tab aus.Lade das expense-mcp-apk-Artefakt herunter.
Entpacke und installiere
app-release.apk.Deinstalliere zuerst einen vorherigen Debug-Build.
Lokales EAS (optional, erfordert ein Expo-Konto):
cd mobile
npx eas-cli login
npx eas-cli build -p android --profile previewProjektstruktur
main.py MCP tools and resource
connection.py Supabase / Postgres connection
mobile/ Expo SDK 54 Android client
.github/workflows/ APK buildLizenz
MIT. Siehe LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Log expenses, receipts and mileage from chat: auto-categorise, split VAT, summarise, export, rebill.
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
- ManiloOAuthapp.manilo
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables 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.12-
- FlicenseNot gradedqualityDmaintenanceEnables management of expenses via SQLite database, including adding, listing, updating, deleting, filtering, and summing expenses through natural language.-
- FlicenseNot gradedqualityDmaintenanceEnables natural language management of personal expenses, including adding, listing, and summarizing expenses with local SQLite storage.-
- FlicenseNot gradedqualityCmaintenancePersistent expense tracker backed by Neon Postgres with SQL tools for adding, editing, deleting, and analyzing expenses via 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/sahaniaditya/expense-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server