Expense MCP
Expense MCP
Трекер расходов с открытым исходным кодом, состоящий из двух частей:
Сервер на базе FastMCP, который хранит расходы в Postgres (Supabase).
Android-приложение на Expo, которое работает как MCP-хост. Вы можете произнести или ввести расход; Claude вызывает инструменты MCP за вас.
Рабочий MCP endpoint:
https://indirect-olive-catshark.fastmcp.app/mcpРепозиторий: github.com/sahaniaditya/expense-mcp
Возможности
add_expense— сохраняет сумму, категорию, дату и необязательное описаниеget_expenses— выводит расходы за периодdata://categories— продукты, транспорт, образование, развлечения, здоровье, другоеГолосовой ввод на Android (например, “Я потратил 250 на продукты”)
OAuth Horizon / FastMCP Cloud для удаленного сервера
Рабочий процесс GitHub Actions, который собирает автономный APK
Related MCP server: Expense Tracker MCP
Архитектура
Android app (MCP host)
→ Claude (Anthropic API)
→ FastMCP Cloud / local MCP server
→ Supabase PostgresМобильное приложение не обращается к базе данных напрямую. Claude решает, какой инструмент вызвать; приложение выполняет этот инструмент на MCP-сервере.
MCP-сервер
Требования
Python 3.14+
База данных Postgres (подойдет Supabase)
База данных
Создайте таблицу expenses:
create table if not exists expenses (
id uuid primary key,
price integer not null,
category text not null,
date timestamptz not null,
description text
);Окружение
Скопируйте .env.example в .env и укажите строку подключения:
SUPABASE_URL=postgresql://postgres:YOUR_PASSWORD@db.YOUR_PROJECT.supabase.co:5432/postgresНикогда не коммитьте .env.
Локальный запуск
uv sync
uv run python main.pyHTTP MCP endpoint — это http://127.0.0.1:8000/mcp.
Inspector:
uv run fastmcp dev inspector main.pyДеплой
Отправьте этот репозиторий на GitHub, затем создайте проект на Prefect Horizon / FastMCP Cloud с точкой входа main.py:mcp. Добавьте SUPABASE_URL как секрет в настройках деплоя.
Клиенты подключаются к:
https://YOUR-PROJECT.fastmcp.app/mcpАутентификация Horizon включена по умолчанию. Используйте API-ключ Horizon (fmcp_...) или выполните вход через OAuth из клиента.
Android-приложение
Исходный код находится в mobile/.
Попробуйте с Expo Go (разработка)
Версия Expo Go из Play Store должна соответствовать SDK 54.
cd mobile
npm install
npx expo startВам все еще нужен компьютер с запущенным Metro. Для установки только на телефон используйте APK.
Настройка приложения
Откройте Connect.
Подтвердите URL FastMCP Cloud (уже предзаполнен для размещенного сервера).
Вставьте API-ключ Anthropic.
Нажмите Sign in and connect и завершите вход в Horizon (или вставьте API-ключ
fmcp_).Используйте Speak или Add.
Приложение сохраняет сессию и переподключается при следующем запуске.
Сборка APK
GitHub Actions создает релизный APK (включая JS-бандл, Metro не требуется):
Отправьте в
mainилиapk-github-actions, либо запустите рабочий процесс Android APK из вкладки Actions.Скачайте артефакт expense-mcp-apk.
Распакуйте и установите
app-release.apk.Сначала удалите предыдущую debug-сборку.
Локальный EAS (необязательно, нужна учетная запись Expo):
cd mobile
npx eas-cli login
npx eas-cli build -p android --profile previewСтруктура проекта
main.py MCP tools and resource
connection.py Supabase / Postgres connection
mobile/ Expo SDK 54 Android client
.github/workflows/ APK buildЛицензия
MIT. См. 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