Skip to main content
Glama
Expense Tracker MCP Server

Expense Tracker MCP Server

by simran-mehta

지출 추적기 MCP 서버

Claude와 같은 AI 어시스턴트가 로컬 SQLite 데이터베이스를 사용하여 개인 지출을 관리(추가, 분류, 요약 및 예산 설정)할 수 있게 해주는 MCP(Model Context Protocol) 서버입니다.


개요

이 서버는 Claude(또는 MCP 호환 클라이언트)가 지출을 추적하기 위해 호출할 수 있는 일련의 MCP 도구를 제공합니다. 모든 데이터는 로컬 SQLite 파일에 저장되며, 클라우드나 계정이 필요하지 않습니다.


Related MCP server: ExpenseTracker MCP Server

주요 기능

  • 카테고리, 금액, 날짜, 설명과 함께 지출 추가 및 관리

  • 날짜 범위 또는 카테고리별로 지출 필터링 및 목록 조회

  • 카테고리 또는 월별 지출 요약

  • 카테고리별 예산 설정 및 잔액 확인

  • CSV로 지출 내역 내보내기

  • 완전한 로컬 환경 — 데이터가 사용자 기기에만 저장됨


MCP 도구

도구

설명

주요 매개변수

add_expense

새로운 지출 기록

amount, category, description, date, currency

list_expenses

선택적 필터를 사용하여 지출 목록 조회

category?, start_date?, end_date?, limit?

get_expense_summary

카테고리 또는 월별로 그룹화된 합계

group_by (category 또는 month), start_date?, end_date?

update_expense

ID를 사용하여 기존 지출 수정

id, amount?, category?, description?, date?

delete_expense

ID를 사용하여 지출 삭제

id

set_budget

카테고리별 월간 예산 한도 설정

category, monthly_limit, currency?

get_budget_status

예산 한도와 실제 지출 비교

month? (기본값은 현재 월)

export_expenses

지출 내역을 CSV 문자열로 내보내기

start_date?, end_date?, category?


프로젝트 구조

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 (권장) 또는 pip

  • Claude 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 tools
add_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

    A3.6/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      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.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage personal expenses by adding, querying, and summarizing expense data through a SQLite database and configurable categories.
      1
      GPL 3.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language management of personal expenses, including adding, listing, and summarizing expenses with local SQLite storage.
      -