Skip to main content
Glama
ledger-mcp

ledger-mcp

by ahmadadam97

ledger-mcp

AI 에이전트를 위한 도구로 복식부기 원장을 제공하는 작은 MCP 서버입니다. MCP 서버 설계, 에이전트 도구 사용성, 그리고 평가 중심 반복 개발을 주제로 한 2일간의 연습으로 제작되었습니다.

상태: 1일 차 완료. 2일 차(평가 하네스 + 발견 사항) 진행 중.

구성 요소

  • ledger.py — SQLite 기반의 복식부기 원장 코어. 금액은 정수 센트 단위로 저장됩니다. 대차가 일치하는 거래와 명명된 계정의 무결성을 강제합니다.

  • server.py — 네 가지 도구를 제공하는 MCP 서버: create_account, record_transaction, get_balance, reconcile.

  • test_ledger.py — 원장 코어를 위한 pytest 테스트 스위트.

  • NOTES.md — Claude Desktop에서 서버를 실행하며 얻은 설계 결정과 관찰 내용을 기록한 실행 로그.

Related MCP server: ledgerkit-mcp

로컬에서 실행

uv sync
uv run pytest -v          # run the ledger tests
uv run mcp dev server.py  # launch with the MCP Inspector

Claude Desktop에서 사용하려면 claude_desktop_config.json에 추가하세요:

{
  "mcpServers": {
    "ledger": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/ledger-mcp", "run", "mcp", "run", "server.py"]
    }
  }
}

2일 차 예정

  • 에이전트가 이 도구들에서 성공하는 지점과 실패하는 지점을 측정하는 평가 하네스

  • 발견 사항 정리: 명명 vs. 문서화, 암묵적 계정 생성, 가드레일로서의 도구 vs. 실행자로서의 도구

Available Tools

4 tools
create_accountB

Create a new account in the ledger.

account_type must be one of: asset, liability, equity, revenue, expense.

Inputs: name (required), account_type (required).

get_balanceB

Get the balance of an account, in cents.

Inputs: account_name (required).

reconcileA

Check that total debits equal total credits across the ledger.

Inputs: no named parameters.

record_transactionC

Record a transaction in the ledger.

entries is a list of dicts with keys: account, amount_cents, side.
Debits must equal credits.

Inputs: entries (required), transaction_id (required), memo.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct action—account creation, transaction recording, balance retrieval, and reconciliation—with no overlapping responsibilities. The purposes are clearly separated, leaving no ambiguity for an agent to misselect.

    Naming Consistency4/5

    Most tool names follow the verb_noun pattern (create_account, record_transaction, get_balance), but 'reconcile' is a single verb without a noun object. This minor deviation is not confusing but breaks the otherwise consistent pattern.

    Tool Count5/5

    Four tools is well-scoped for a focused ledger server, covering the essential operations of account creation, transaction recording, balance queries, and reconciliation. Each tool earns its place without redundancy.

    Completeness3/5

    The core workflow (create account, record transaction, get balance, reconcile) is present, but notable gaps exist: there is no way to list accounts or view transaction history, and no update/delete operations for accounts or transactions. These missing read/audit functions could hinder some workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Double-entry accounting ledger MCP server for autonomous agents that enables creating accounts, posting journal entries, and generating financial reports.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to interact with a double-entry ledger, offering tools for account management, balanced journal entries, balance queries, trial balance, and penny-perfect allocation. Built with safety by construction: no update/delete tools, idempotent posting, and an append-only journal.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides financial audit reporting and ledger query tools for AI agents, enabling generation of compliance, risk, and transaction reports and querying of transaction data, balances, and summaries from an in-memory SQLite database via MCP.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      MCP server for hledger that exposes double-entry accounting tools to AI agents, enabling balance queries, transaction history, budget reports, and adding transactions to a journal.
      4
      -