MCPServers
Ledger CLI - MCP server logo

Ledger CLI

18
0

Summary

The mcp-server-ledger provides AI assistants with structured access to Ledger CLI, a powerful command-line accounting system. Built with Python using the FastMCP framework, it exposes nine tools that map directly to Ledger commands including balance reports, transaction registers, account listings, and budget analysis. The server requires a valid Ledger file path and includes security measures to prevent command injection. It's particularly valuable for users who want to analyze financial data, generate reports, and track budgets through natural language queries without leaving their AI assistant conversation.

Available Actions(9)

ledger_balance

Shows account balances with powerful filtering options. Inputs: query pattern, date ranges, display options. Returns: Formatted balance report.

ledger_register

Shows transaction register with detailed history. Inputs: query pattern, date ranges, sorting options. Returns: Formatted register report.

ledger_accounts

Lists all accounts in the ledger file. Input: optional query pattern. Returns: List of matching accounts.

ledger_payees

Lists all payees from transactions. Input: optional query pattern. Returns: List of matching payees.

ledger_commodities

Lists all commodities (currencies) used. Input: optional query pattern. Returns: List of matching commodities.

ledger_print

Prints transactions in ledger format. Inputs: query pattern, date ranges. Returns: Formatted ledger entries.

ledger_stats

Shows statistics about the ledger file. Input: optional query pattern. Returns: Statistical summary of the ledger.

ledger_budget

Shows budget analysis. Inputs: query pattern, date ranges, reporting period. Returns: Budget report.

ledger_raw_command

Runs a raw Ledger CLI command. Input: command arguments as a list of strings. Returns: Command output as text.

Last Updated: May 18, 2025

社区评论

0.0
0 条评论
5
0
4
0
3
0
2
0
1
0

暂无评论. 成为第一个评论的人!

登录以参与讨论

Coming soon to
HighlightHighlight AI

语言

TypeScript

分类

标签