Skip to main content
Glama
ahmadadam97

ledger-mcp

by ahmadadam97

ledger-mcp

一个小型 MCP 服务器,将复式记账账本作为工具暴露给 AI 代理。 作为一次为期两天的练习而构建,涉及 MCP 服务器设计、代理工具人机工程学以及评估驱动的迭代。

状态: 第 1 天已完成。第 2 天(评估框架 + 发现)进行中。

包含内容

  • ledger.py — 复式记账核心,由 SQLite 支持。金额以整数分存储。强制交易平衡和命名账户完整性。

  • server.py — MCP 服务器,暴露四个工具:create_accountrecord_transactionget_balancereconcile

  • test_ledger.py — 针对账本核心的 pytest 测试套件。

  • NOTES.md — 设计决策和观察的运行日志,源自针对 Claude Desktop 运行服务器。

Related MCP server: Agent Ledger

本地运行

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 天计划

  • 评估框架,衡量代理在这些工具上成功和失败的地方

  • 发现报告:命名与文档、静默账户创建、工具作为护栏与工具作为执行者

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A personal financial management tool that enables AI assistants to record transactions, check balances, and provide monthly financial summaries via the Model Context Protocol. It allows users to manage their expenses and income through natural language interactions using standardized MCP tools and resources.
  • A
    license
    -
    quality
    A
    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
    C
    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

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/ahmadadam97/ledger-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server