Expense Tracker MCP Server
지출 추적기 MCP 서버
Claude와 같은 AI 어시스턴트가 로컬 SQLite 데이터베이스를 사용하여 개인 지출을 관리(추가, 분류, 요약 및 예산 설정)할 수 있게 해주는 MCP(Model Context Protocol) 서버입니다.
개요
이 서버는 Claude(또는 MCP 호환 클라이언트)가 지출을 추적하기 위해 호출할 수 있는 일련의 MCP 도구를 제공합니다. 모든 데이터는 로컬 SQLite 파일에 저장되며, 클라우드나 계정이 필요하지 않습니다.
Related MCP server: ExpenseTracker MCP Server
주요 기능
카테고리, 금액, 날짜, 설명과 함께 지출 추가 및 관리
날짜 범위 또는 카테고리별로 지출 필터링 및 목록 조회
카테고리 또는 월별 지출 요약
카테고리별 예산 설정 및 잔액 확인
CSV로 지출 내역 내보내기
완전한 로컬 환경 — 데이터가 사용자 기기에만 저장됨
MCP 도구
도구 | 설명 | 주요 매개변수 |
| 새로운 지출 기록 |
|
| 선택적 필터를 사용하여 지출 목록 조회 |
|
| 카테고리 또는 월별로 그룹화된 합계 |
|
| ID를 사용하여 기존 지출 수정 |
|
| ID를 사용하여 지출 삭제 |
|
| 카테고리별 월간 예산 한도 설정 |
|
| 예산 한도와 실제 지출 비교 |
|
| 지출 내역을 CSV 문자열로 내보내기 |
|
프로젝트 구조
expense-tracker-mcp-server/
├── main.py # MCP server entry point (all tools)
├── expenses.db # SQLite database (auto-created on first run)
├── pyproject.toml # Project metadata and dependencies
├── .venv/ # Virtual environment (created by uv)
└── readme.md사전 요구 사항
Python 3.11 이상
uv (권장) 또는
pipClaude Desktop (MCP 서버 연결용)
설치
# Clone the repo
git clone https://github.com/your-username/expense-tracker-mcp-server.git
cd expense-tracker-mcp-server
# Initialize the project and install dependencies
uv init
uv add fastmcp이 명령은 프로젝트 디렉토리 내에 .venv 폴더를 자동으로 생성합니다.
서버 실행
fastmcp run main.py서버가 시작되고 stdio를 통해 MCP 연결을 대기합니다. SQLite 데이터베이스(expenses.db)는 처음 실행 시 자동으로 생성됩니다.
Claude Desktop에 연결
Claude Desktop 설정 파일에 다음 내용을 추가하세요:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"expense-tracker": {
"command": "uv",
"args": [
"--directory",
"C:\\Learning\\Expense-Tracker-MCP-Server",
"run",
"fastmcp",
"run",
"main.py"
]
}
}
}Claude Desktop을 완전히 종료(시스템 트레이 → 종료)한 후 다시 실행하세요. 도구 패널에서 지출 추적기 도구를 확인할 수 있습니다.
예시 프롬프트
Claude에 연결되면 다음과 같이 말할 수 있습니다:
"오늘 Whole Foods에서 식료품비로 45달러 지출 추가해줘"
"이번 달 식비 지출 내역 모두 보여줘"
"지난달에 가장 많이 지출한 항목이 뭐야?"
"외식비로 월 300달러 예산을 설정해줘"
"엔터테인먼트 예산이 얼마나 남았어?"
"3월 지출 내역을 모두 CSV로 내보내줘"
개발
# Run with MCP inspector for debugging
fastmcp dev inspector main.py라이선스
MIT
Available Tools
8 toolsadd_expenseB
Add a new expense. Date format: YYYY-MM-DD (defaults to today).
Inputs: amount (required), category (required), description, date, +1 more. Returns: object
delete_expenseB
Delete an expense by ID.
Inputs: id (required). Returns: object
export_expensesC
Export expenses as a CSV string.
Inputs: start_date, end_date, category. Returns: result
get_budget_statusB
Compare budget limits vs actual spend. Month format: YYYY-MM (defaults to current month).
Inputs: month. Returns: result
get_expense_summaryB
Summarize total spending grouped by 'category' or 'month'.
Inputs: group_by, start_date, end_date. Returns: result
list_expensesB
List expenses with optional filters. Date format: YYYY-MM-DD.
Inputs: category, start_date, end_date, limit. Returns: result
set_budgetC
Set or update the monthly budget limit for a category.
Inputs: category (required), monthly_limit (required), currency. Returns: object
update_expenseC
Update fields of an existing expense by ID.
Inputs: id (required), amount, category, description, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose with no overlap: adding, deleting, updating, listing, summarizing, exporting expenses, and managing budgets. The descriptions specify unique actions (e.g., add vs. update) and resources (expenses vs. budget), eliminating ambiguity.
All tools follow a consistent verb_noun pattern (e.g., add_expense, delete_expense, get_budget_status). The naming is uniform across all eight tools, using snake_case and clear action verbs aligned with their functions.
With 8 tools, the server is well-scoped for an expense tracker, covering core operations like CRUD for expenses, budget management, summarization, and export. Each tool earns its place without being excessive or sparse.
The tool set provides complete coverage for the expense tracking domain: full CRUD for expenses (add, delete, update, list), budget management (set and status), summarization, and export. There are no obvious gaps, enabling agents to handle typical workflows end-to-end.
Maintenance
Related MCP Connectors
Track expenses from your AI chat: log, categorize, monthly CSV reports. All data is local.
Expense ledger for AI assistants: record receipts line by line, ask what you spent, export anytime.
Track expenses from receipt photos, then search, summarize and update them from your AI assistant.
Track budgets from your AI chat: envelopes, monthly limits, variance reports. All data is local.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage personal expenses by adding, querying, and summarizing expense data through a SQLite database and configurable categories.1GPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables natural language management of personal expenses, including adding, listing, and summarizing expenses with local SQLite storage.-
- FlicenseAqualityDmaintenanceEnables AI assistants to track, query, summarize, and delete personal expenses stored in a local SQLite database via natural language.4-