MCP.so
ログイン

mcp-server-ledger: A Ledger CLI MCP Server

@minhyeoky

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

minhyeoky

投稿者

minhyeok lee

mcp-server-ledger: A Ledger CLI MCP Server について

A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables Large Language Models to query and analyze financial data through a standardized interface, making it easy for AI assistants to help with financial repo

mcp-server-ledger: A Ledger CLI MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-ledger": {
      "command": "docker",
      "args": [
        "pull",
        "minhyeoky/mcp-ledger"
      ]
    }
  }
}

mcp-server-ledger: A Ledger CLI MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is mcp-server-ledger?

mcp-server-ledger is a Model Context Protocol server for interacting with Ledger CLI, a double-entry accounting system. It allows Large Language Models to query and analyze financial data through the Ledger CLI tool, enabling AI assistants to help with financial reporting, budget analysis, and accounting tasks.

How to use mcp-server-ledger?

Install Ledger CLI and have a valid ledger file. Install mcp-server-ledger via Docker (recommended), Smithery, or uv sync. Configure the server with the LEDGER_FILE environment variable or command-line arguments, then add the server configuration to your claude_desktop_config.json. Once set up, you can ask your AI assistant natural-language questions about your finances, and it will use the appropriate ledger commands.

Key features of mcp-server-ledger

  • ledger_balance – Shows account balances with filtering options.
  • ledger_register – Shows transaction register with detailed history.
  • ledger_accounts – Lists all accounts in the ledger file.
  • ledger_payees – Lists all payees from transactions.
  • ledger_commodities – Lists all commodities (currencies) used.
  • ledger_print – Prints transactions in ledger format.
  • ledger_stats – Shows statistics about the ledger file.
  • ledger_budget – Shows budget analysis.
  • ledger_raw_command – Runs a raw Ledger CLI command.

Use cases of mcp-server-ledger

  • Ask "Show me my expenses for the last month."
  • Ask "What's my current balance in all accounts?"
  • Ask "List all transactions with Amazon."
  • Ask "How much did I spend on groceries in 2023?"
  • Ask "Show me my budget performance for Q1."

よくある質問

1

What are the prerequisites for mcp-server-ledger?

Ledger CLI must be installed and available in your PATH, and you need a valid Ledger file with your financial data.

2

How do I install mcp-server-ledger?

You can install it using Docker (`docker pull minhyeoky/mcp-ledger`), via Smithery (`npx -y @smithery/cli install @minhyeoky/mcp-ledger --client claude`), or by cloning the repository and running `uv sync`.

3

How do I configure the ledger file?

Provide the path to your Ledger file through the `LEDGER_FILE` environment variable or via command-line arguments when starting the server.

4

Can I run custom Ledger CLI commands?

Yes, the `ledger_raw_command` tool accepts a list of command arguments and returns the raw output as text.

5

Is mcp-server-ledger secure?

The server includes basic validation to prevent command injection, but you should only use it with trusted clients, be careful about which file paths you expose, and review all commands before execution.

コメント

「開発者ツール」の他のコンテンツ